How to prevent time out on a long-running HTTP request?
I have an API that executes a potentially long-running task that can take up to 10 minutes. This works fine when I hit the API from Postman, but when I use the API from a browser (Chrome, Safari,...
View ArticleGo: Get path parameters from http.Request
I'm developing a REST API with Go, but I don't know how can I do the path mappings and retrieve the path parameters from them.I want something like this:func main() { http.HandleFunc("/provisions/:id",...
View ArticleDropbox list_folder limit does not work as expected
I have a curl call curl -X POST https://api.dropboxapi.com/2/files/list_folder--header 'Authorization: Bearer {{ACCESS_TOKEN}}'--header 'Content-Type: application/json'--data...
View ArticleWhat is the best way to return different types of ResponseEntity in...
I have written simple REST application in Spring Boot (Spring Framework).It returns ResponseEntity<Success> as Success response in the controller level. But I want to return a completely...
View ArticleIHttpContextAccessor: IsAuthenticated always false
I'm building a .NET8 web app with a REST API where I'm trying to check if the requesting user is an admin to execute different code paths based on that but for some reason the code which is supposed to...
View ArticleHTTP server behavior and REST API specification for unsupported operations
I have a specification of some REST API, and I am also developing some implementation of the corresponding API.The question arises, what HTTP status code should my implementation return for operations...
View ArticleJavascript "arraybytes" format in Delphi
I'm receiving a JSON response from an API with the following format:{"type": "Buffer","data": [23, 23, 23, 23, 23]}In NodeJS, decoding this is simple. Here's the code:const response = await...
View ArticleGetting a menu delivered via REST
I am trying to get a menu via REST and I've created a new module and rest resource plugin that allows for GET on /entity/restmenu/{menu_name}.I can successfully return this example json using this...
View ArticleSorting data from Tableau REST API
I am retrieving Tableau view data via the REST API. I can filter for the data I want by appending a view filter. Example...
View ArticleSAP ARIBA REST API - Rate Limit
Hi I am new and hope to finde some information here.For a customer we are retrieving data from SAP ARIBA via the REST API.To build daily reports we want e.g. retrieve information from the...
View ArticleDelphi REST Client cookies
I am trying to read cookies of a Delphi REST Client Response (TRestResponse) but I can't see how's that possible. There is no straight method (like Cookies or GetCookies) and inside response headers...
View ArticleJackson Processing Issue
I've been pulling my hair out on this one for days. I can't figure out what is happening. I am developing a WebApp using GWT which communicates with a different server using RestAPI. I use Jersey...
View ArticleGetting image path for API post request
I am using an API post request in order to get a modified image.curl \ -F 'image=@/path/to/your/file.jpg' \ -H 'api-key:[myKey]' \ [api url]It worked fine directly on my Mac's terminal using:curl \ -F...
View ArticleHierarchy in Restful Url
Suppose there are resource likeuser - users registeredbook - books available in the libraryfavourite books - users favourite books.What is the RESTful way to construct the URL for favourite books of a...
View ArticleHow to send a getForObject request with parameters Spring MVC
I have a method on the Server side which gives me information about an specific name registered in my database. I'm accessing it from my Android application. The request to Server is done normally....
View ArticleUpload image to Flickr
I am trying to upload image to Flickr from my app. I have referred some Objective-C code to do so but with no success.The code I am using currently is:func calUploadImageAPI(image:UIImage){...
View ArticleConverting REST response body to ANSI using server side javascript
I have a scenario where I need to import a file from OpenText (OT) to ServiceNow and then export it back to OpenText (kind of moving the file which is not possible locally) using REST. We are talking...
View ArticleProtocol Buffer vs Json - when to choose one over the other?
Can anyone explain when to use protocol buffer instead of JSON (and vice versa) for a microservices architecture? Both for synchronous and asynchronous communication.
View ArticleWebServices Calculator Example using Java
I have created an sample application of calculator for sum of two numbers using webservices in Java by using Jersey service.My code is : Calculator.javapackage p1;import javax.jws.WebService;import...
View ArticleIs it a good practice to send authentication info every time I request...
I have a Wordpress web site and I am using its APIs to build a mobile application.Some of them require authentication and others don'tI want help. should I send username and password with every...
View Article