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
-1
votes
1 answer

What's the correct RESTful way to structure API for process which is part of another process?

I have VAT registration process and once it is completed user will proceed for VAT E-Filing process. My VAT APIs are like below : /api/vat Now E-Filing is part of VAT process so does below API make sense and is as per REST API…
I Love Stackoverflow
  • 6,738
  • 20
  • 97
  • 216
-1
votes
1 answer

REST API integration in PHP

My client has got some RESTful services written in ASP.net and front end code in PHP. He is providing me DTO classes and API url. Can anyone help me how to call these API services from PHP? I do not know how to make use of DTO classes in PHP
Dee
  • 49
  • 5
-1
votes
2 answers

How to get param in url like /api/groups?sdk&type=1 with java?

For example, URL can be: /api/groups?sdk&type=1 or /api/groups?app&type=1 In java, I want to know the param in the url is sdk or app. I have tried something like: @RequestMapping(method = RequestMethod.GET) public ResponseResult…
Danni Chen
  • 343
  • 1
  • 3
  • 14
-1
votes
2 answers

Is using query parameter in URL regarded as 'RESTFUL"?

After going through several posts on StackOverflow, I still do not quite understand whether using query parameter in URL is regarded as RESTFUL or not. For example, given an address http://www.example.com/product.php?productID=123. Is it a RESTFUL…
jackycflau
  • 1,101
  • 1
  • 13
  • 33
-1
votes
1 answer

Do we need to know about the database schema for designing Rest API?

I have to develop an android application where I may not be provided with the database schema for security purposes. The way they are suggesting is to use Restful API as an interface between the application and the database. Is it possible to design…
-1
votes
1 answer

Passing @FormParam values to a rest service without using an HTML form

We have an existing rest web service that does a certain online transaction. It was created to receive input of @FormParam type. When we call this web service, we initially just passed the values by appending it to the…
-1
votes
1 answer

Running the same method multiple times with different parameters in c#

I am Calling API to get a list of contacts(they might be in 100's or 1000's) and list only lists 100 at a time and its giving me this pagination option with an object at the end of the list called 'nextpage' and with URL to next 100 and so on.. so…
Bokbob
  • 89
  • 1
  • 9
-1
votes
1 answer

specify an action to run via REST API

Just wondering what the best practice is for specifying an endpoint in rest to say "runSomeAction"? I'm aware of the uses for GET,POST,PUT,DELETE operations and using nouns to specify those endpoints, but what is the preferred method for exposing…
weagle08
  • 1,763
  • 1
  • 18
  • 27
-1
votes
1 answer

HTTP PUT method confusing

I want to learn how HTTP PUT method is used with PHP? I googled at the web and found some tutorials about it with cURL. But I dont know how to use it (Like REST API).
-1
votes
1 answer

Grails how to write a RESTful post call for my grails application

I am new in writing RESTful calls, and I am also new in Grails. However I am trying to write my first Rest API in my Grails application. Based on this link: http://grails.github.io/grails-doc/3.0.10/guide/webServices.html#versioningResources I…
Ectoras
  • 1,297
  • 3
  • 13
  • 33
-1
votes
2 answers

RESTFUL formatting of URLs

Simple question, in terms of best practice is it better to format my URL like this: http://www.example.com/search?query=hello&page=1 or like this: http://www.example.com/search/hello/page/1 Can you provide a valid reason for your choice please.
Imran Azad
  • 1,008
  • 2
  • 12
  • 30
-1
votes
2 answers

URLConnection: unable to make get request

I am trying to access restful resource from Android app using URLConnection, public void onClick(View v) { try { URL url = new URL("http://192.168.43.45:8080/entity"); HttpURLConnection urlConnection = (HttpURLConnection)…
Kuldeep
  • 191
  • 1
  • 6
  • 17
-1
votes
2 answers

Packaging a REST webservice

I want to create a REST webservice and want to know if it can be packaged as a jar file. Basically, is it possible that we do not create a war file of this webservice, rather just package as a jar and then put it on Tomcat lib folder? If that is…
user1703096
  • 115
  • 6
-1
votes
1 answer

url manager restful api in yii2

1.how make this url http://localhost/travia-api/backend/web/v1/flight?id=4FR996IN2F829M to this http://localhost/travia-api/backend/web/v1/flight/4FR996IN2F829M this is my config 'urlManager' => [ 'class' => 'yii\web\UrlManager', …
Mohsen
  • 1,295
  • 1
  • 15
  • 45
-1
votes
1 answer

apache HttpGet with params

I want to execute this URL: curl -X DELETE -H "Authorization: Basic myToken=" "https://foo.com/iot/developers/apps.json?id=173217639" that deleted 1 object on the server side. import org.apache.http.HttpResponse; import…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301