Questions tagged [restful-url]

Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

https://en.wikipedia.org/wiki/Representational_state_transfer

1351 questions
0
votes
2 answers

REST Webservice - Sample Code - Gives HTTP 302 response

I am just trying REST webservice; Standard Sample; While I am able to create the war and load it into WSO2 AS, when I try to connect it with client I get a response of HTTP 302; I was wondering where the mistake could be; Following are my file…
0
votes
1 answer

Rails: restful resource routing with action_controller_path

I am putting a randomize def in my controller and would like to access it with a restful route. The route should be accessed with the following: <%= link_to "Randomize", random_reader_path %> But I cannot figure out how to get this route to appear…
Ken W
  • 962
  • 4
  • 12
  • 19
-1
votes
2 answers

how to i get data with multiple parametres while get data from api to flutter

i want to use multiple parametres for restful api in flutter. i can get data by id but i want to get data by id and userId. how could i do? class NetworkService { Future> fetchData(int id) async { final response = await…
Ozan
  • 53
  • 6
-1
votes
1 answer

How to make an restful API to add data or block into block chain

I am new to block chain , my project is to just by using restful API I need to add data on to block chain. But to do that I need to make my own private block chain I don't know how to do it. And I also don't know which language or framework to use…
-1
votes
1 answer

Is the character "|" valid for URL parameter names?

Is this a valid URL? Should the character "|" be included in it? Sure, this works but I don't think it's the right way to do it https://sales-stage-api.techsg.cloud/requests/statistics?"meetingTime"|date:timeZone={"start":"2022-02-01 00:00:00…
-1
votes
1 answer

What's the correct way to create an endpoint in a API REST

I'm drawing my API routes. A user has projects, projects have actors, actors have addresses. There is no address without an actor, there is no actor without a project, and there is no project without a user. Would this be the correct way to build…
-1
votes
1 answer

What is the best way of fetching dependent data from the API in React?

So, I have dependent data that I need to fetch from the REST API. The data A have some key information in data B, so it is necessary to make sure to fetch (and LOAD) data B before data A. What is the best way of doing this in React?? I solved this…
vl4d1m1r
  • 31
  • 1
  • 3
-1
votes
1 answer

How to insert a params in Fetch GET request?

I created a simple Flask's jsonify that I do not sure if I can call it as API, but I receive a JSON Object. @app.route('/searchData/',methods=["GET"]) def searchData(id): return jsonify(searchData(id)) Now using Fetch function, I cant…
Shinomoto Asakura
  • 1,473
  • 7
  • 25
  • 45
-1
votes
1 answer

Can two rest resources have same methods and request mapping but different @path(url) in Restful service

@Path("/users/A") public class UserResource1 { @GET @Produces("text/xml") public String getUser(@PathParam("username") String userName) { ... } } @Path("/users/B") public class UserResource2 { @GET …
-1
votes
2 answers

Rest Api url versioning scheme : Resource vs Service

In our application we have adapted URI versioning scheme. Eg: server.com/v2/resource1 Now there are two school of thought in the team: We should not expose resource level version to client, instead we should give one version to them. If they call …
-1
votes
2 answers

How to change data from API by changing the parameters in URL ? Restfull API on javascript?

I set a slash endpoint. I want to make it so when the user enters: http/website.com/date=2019-08-01&station=41027&daysForward=5 be able to change three parameters to obtain different data. date="first parameter" station="second parameter"…
Pizhev Racing
  • 466
  • 1
  • 6
  • 23
-1
votes
1 answer

RESTful syntax. Is it Eager/Lazy or both?

I am trying to follow RESTful principles and a little confused on how "Eager" or "Lazy" endpoints would be set up. For example, a Shop has many Products Products have many Ingredients. Products have many Packging Of course a "bad" endpoint that…
Jcov
  • 2,122
  • 2
  • 21
  • 32
-1
votes
2 answers

No converter found for return value of type: class java.util.ArrayList

I'm following a spring boot example from a tutorial which implements a Restful service to get the list of persons from Database table, but I'm getting an error when I call: http://localhost:8080/person on IE : No converter found for return value of…
Omar B.
  • 441
  • 11
  • 39
-1
votes
1 answer

inputstream restful api is returning null

anyone knows why InputStream responseBody = conn.getInputStream(); gives me null ? basically, the error here is in the first few lines of code. I have a restful API XML link that i am trying to parse as a JSON object. And the…
BitcoinKing
  • 875
  • 7
  • 11
-1
votes
1 answer

How to make PHP function restful web service?

I am new to rest API. I have this below function which returns HTML data I want this to be accessed from anywhere. I am using Zend with PHP 5.6 please give your suggestion. fheader('Access-Control-Allow-Origin:…
user9320601