About 671,000 results
Open links in new tab
  1. How do I make calls to a REST API using C#? - Stack Overflow

    Mar 8, 2012 · The ASP.NET Web API has replaced the WCF Web API previously mentioned.. I thought I'd post an updated answer since most of these responses are from early 2012, and this thread is one of the top results when doing a Google search for "call restful service C#".

  2. Returning JSON object as response in Spring Boot

    Jun 30, 2017 · More correct create DTO for API queries, for example entityDTO: Default response OK with list of entities: @GetMapping(produces=MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public List<EntityDto> getAll() { return entityService.getAllEntities(); } But if you need return different Map parameters you can use next two examples 2.

  3. convert JSON object into REST API - Stack Overflow

    Oct 26, 2018 · So according to this JSON file, REST API methods should be generated for the function described in the JSON. For ex: A function named set and it is accepting one argument num of int type and returning a value of int type. Is it possible to generate REST API method for this function like GET and POST from the knowledge of JSON file only?

  4. Is a REST request normally JSON output or something else?

    Feb 26, 2013 · A full REST API like with Java's jax-rs contains definitions for defining a path for a resource, uses the full GET, POST, PUT requests. But, typically when I encounter a REST API, it is typically a standard HTTP GET request and the response is a JSON output.

  5. REST vs JSON-RPC? - Stack Overflow

    JSON-RPC is quick and easy to consume, but as mentioned resources and parameters are tightly coupled and it tends to rely on verbs (api/deleteUser, api/addUser) using GET/ POST where-as REST provides loosely coupled resources (api/users) that in a HTTP REST API relies on several HTTP methods (GET, POST, PUT, PATCH, DELETE).

  6. Differences between REST and JSON APIs - Stack Overflow

    Nov 10, 2010 · Wondering what the differences between REST and JSON APIs are, how you interface with them, and how to go about parsing the results. My goal is to build a small application for my android phone to tell me when the next train will get to the subway station by my house, using the developer API provided by the transit agency.

  7. REST API - Use the "Accept: application/json" HTTP Header

    Apr 4, 2017 · The most common scenario is that your server consumes a third party REST Api. To do so your server-side code forges a proper GET (/PUT/POST/DELETE) request pointing to a given endpoint (URL) setting (when needed, like your case) some headers and finally (maybe) sending some data (as typically occurrs in a POST request for example).

  8. Is there any standard for JSON API response format?

    Depending on the API I would choose 2 or 3 (I prefer 2 for json rest apis). Another thing I have experienced in designing REST Api is the importance of documentation for each resource (url): the parameters, the body, the response, the headers etc + examples.

  9. java - Can a RESTful service return both JSON and XML for the …

    @PostMapping(produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE} ) public postmethod { //your logic} Step 3: OUTPUT in POSTMAN In header section add Key and value For XML output add -> Key as Accept and Value as application/xml as below For JSON output add -> …

  10. rest - How do I POST JSON data with cURL? - Stack Overflow

    Posting JSON to REST API. 1. REST webservice using Spring MVC returning null while posting JSON. 0.

Refresh