Putting detailed REST error message in HTTP Warning header, good/bad idea?

We are developing a standard REST service using HTTP status codes as its response code if something went wrong. (e.g. invalid user input would return "400 Bad Request" to the client) However, we...

REST Complex/Composite/Nested Resources

I'm trying to wrap my head around the best way to address concepts in a REST based API. Flat resources that don't contain other resources are no problem. Where I'm running into trouble are the...

What are the differences between django-tastypie and djangorestframework?

Why would you use one over the other, for exposing an API for your Django app? http://pypi.python.org/pypi/djangorestframework/ http://pypi.python.org/pypi/django-tastypie

Returning plain String in Rest service does not return json?

I have created the following rest methods in my rest based web service @GET @Produces("application/json") @Path("plain") public String getPlain() { return "hello...

Is it possible to send an array with the Postman Chrome extension?

I've been using Postman Chrome extension to test out my API and would like to send an array of IDs via post. Is there a way to send something list this as a parameter in Postman? { user_ids:...

Design RESTful query API with a long list of query parameters

I need to design a RESTful query API, that returns a set of objects based on a few filters. The usual HTTP method for this is GET. The only problem is, it can have at least a dozen filters, and if...

Access Https Rest Service using Spring RestTemplate

Can anybody provide me with a code sample to access the rest service URL secured with HTTPS using the Spring Rest template? I have the certificate, username and password. Basic Authentication is...

REST fileupload in Spring controller using multipart/form-data

Is it possible to upload file with additional data (like description etc.) with use of multipart/form-data? I'm using backbone.js in my frontend and I call REST api with it (jQuery). I don't use...

Swagger API documentation

I saw swagger documentation of Flask and Django. In Flask I can design and document my API hand-written.(Include which fields are required, optional etc. under parameters sections). Here's how we...

Getting error while creating rest service using apache camel

Since i am prety much new to Apache camel and especially Rest DSL, I thought of trying a sample of Rest DSL. So i created a camel-config.xml as: <?xml version="1.0" encoding="UTF-8"?> <beans...

Warning client about deprecated REST API

We are deprecating the REST service and we want to inform the client about this. what is the best practice followed? I can think of following options Pass the deprecation warning message as part...

Unable to create call adapter for class example.Simple

I am using retrofit 2.0.0-beta1 with SimpleXml. I want the retrieve a Simple (XML) resource from a REST service. Marshalling/Unmarshalling the Simple object with SimpleXML works fine. When using...

Posting a file and JSON data to Spring rest service

I am building a Spring rest service for uploading a file. There is a form that consists of various field and one field for uploading a file. On submitting that form, I am sending a multipart form...

cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html

Hi I am trying to fetch profile data using the google+ rest API but i,m getting this error : Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException' with message 'cURL error 60:...

GDS Implementation (Sabre,Amadeus,worlspan)

We want to develop a system which will communicate to various GDS's (Sabre,Amadeus,worlspan) for the Car rentals.which will push/ pull the data from GDS, we don't have any documents as such right...

How do I change merchant sku using jet.com api

I am newbie to jet.com api. Earlier I have worked in amazon api now i have a task of working with jet.com api. However I have a simple query that can we change merchant sku using jet api. I have...

PNG file displayed as red question mark after download with HttpWebRequest

I face the following issue: I downloading a png file from google drive, all bytes are successfully received (as it seems), but when I try to construct a Texture2D and set it as Sprite in an Image,...

Executing 100K Promises in Javascript in small 50 Chunks

I have a function that makes a REST call to a service and returns a promise. lets call that function Execute(). The function takes an ID and sends the ID as a GET parameter to a REST end point...

RestSharp "Not found" response

I'm trying to use the Youtube Data API v3 with RestSharp. Problem is: I get the response: "Not found" when I try to send a request. var client = new...

Has been blocked by CORS policy: Response to preflight request doesn’t pass access control check

I have created trip server. It works fine and we are able to make POST request by Insomnia but when we make POST request by axios on our front-end, it sends an error: has been blocked by CORS...

.Net C# RESTSharp 10 Minute Timeout

I have embedded a browser control into a .Net form and compiled it as a window's executable. The browser control is displaying our HTML5 image viewer. The application opens sockets so it can...

Testing Chi Routes w/Path Variables

I'm having trouble testing my go-chi routes, specifically the route with path variables. Running the server with go run main.go works fine and requests to the route with the path variable behaves...

In RESTful API, Are Resources need to be directly in relation to domain models?

Consider I have a User resource on database and it contains a list of Addresses with in it. GET /users -> Returns list of users [ { "name":"Rick", "email":"[email protected], ...

How to use Jackson to parse JSON from Rest Web Service

I'm building a simple Java client to call a Rest Web Service. I would like to use JACKSON to parse JSON response. So I'm try to build this code: public Object clearF3A(@RequestBody ImportRRData...

REST API EXPRESS JS: Can not download file in Reactjs, which is send by back-end

I created REST API using Express JS to send Excel file: app.get('/download/', async (req, res) => { try { await res.download('./ExcelCopy.xlsx'); } catch (e) { ...

Querying "Pepper Public API" with requests

I'm trying to query the HotUKDeals API. The page says This API follow some of the REST idioms. It is available under the https://%7Bhostname%7D/rest_api/v2 root URI. At the top of the page, it...

Increase session timeout in web application using Angular 8 and Rest API

In my web application developed in angular 8 and Rest API, I have a POST API call that takes a long time than usual (> 1 hour or more) in uploading and processing certain large documents in...

how place the select (dropdown) elements from backend in angular formly

I am new to the angular formly .My requirement is to place the cities (coming from the backend )in dropdown but I have tried but I am unable to do this. .service.ts getcitiNames(): Observable<any>...

How to upload an image to Firebase storage via API (AppGyver)

I have a question regarding AppGyver specifically. I am trying to upload an image via a dedicated node, however, no luck as the error's simply saying "Error", therefore I would like to try a more...

Sign error for bybit using c# when sending post request

I am trying to send a simple post request to the bybit api and I keep getting the 10004 sign error. Here is the response: {"ret_code":10004,"ret_msg":"error sign! origin_string[api_key=(my api...