Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live
↧

HTTP GET 200 vs 204

We are designing a public API, and trying to figure out what is the best practice for GET with following cases:Path param:/orders/{orderId}Found: 200 with a response body.Not Found: 404.Query...

View Article


aiohttp: how-to retrieve the data (body) in aiohttp server from requests.get

Could you please advise on the following?On the localhost:8900 there is aiohttp server runningWhen I do a request like (using the python2 module requests) from...

View Article


How to connect to the Copernicus Land Monitoring Service API with R

I am trying to connect to the CLMS API in order to download data with R. I have already created a token, and saved it in the file land-copernicus.json.Here is my attempt to connect:## Connection# 1....

View Article

How can i implement paging rest spring without repository

I'm trying to create a mock service I've created the rest endpoint /OrderLine/lists/_generic?limit=3&_paging=NEXTon service layer I'm doing List<OrderLineDTO> listPOL =...

View Article

REST client in C++

Has anybody successfully tried any C++ REST library (client) in their enterprise product? It can be collection of software stack, but it should have the capability to run on all platforms, i.e.:...

View Article


How (if possible) can I run Gatling test with REST request with changing...

I am writing a load test with Gatling for a REST web service. The service's endpoint receives a parameter in the path like this:http://localhost:8080/api/v1/palindrom/revert/{word}I am not familiar...

View Article

Linkedin Ads API What's the format of the `dateRange` request parameter?

What's the right format for dateRange for rest-li v2?The current examples in the documentation do not support it, and I don't understand from the rest-li documentation what's the format for it,...

View Article

How to Send a List of Objects with MultipartFile[] and Metadata in a Single...

The official documentation describes what to do if you need to get both json and multipart data from a request:@PostMapping("/")public String handle(@RequestPart("meta-data") MetaData metadata,...

View Article


Does Google expose "Find my Device" APIs?

Google has its "Find my Device" service allowing you to find your phone, make it ring (even when silenced), remotely wipe it, etc. by entering here: https://myaccount.google.com/find-your-phoneWhat I...

View Article


How can I fix my add method to insert information into rest api database

I have a model class called Incident and of the attributes is assignee which is intended to hold a username that is coming from the model class User. When i test my api endpoint it sends back a 403...

View Article

How to build restful API using virtual threads

With the introduction of virtual threads since Java 21, it seems like it will become the future to use instead of the reactive model (ref. Do Java 21 virtual threads address the main reason to switch...

View Article

Best Practices for Implementing Dynamic Filters in Spring Boot REST API

I'm designing a RESTful API using Spring Boot and need to implement dynamic filtering based on certain properties. I want to allow clients to filter resources by checking if specific properties exist...

View Article

Getting data as 'undefined' at the backend when sending data using formdata...

I have a project made using React for the frontend and Express for the backend. I want to create a feature to edit data. The data being sent includes a file, so I am using formData() from React. Before...

View Article


Is exposing Authority, ClientID and Scope through unprotected endpoint secure?

Recently I found an unprotected endpoint in BFF API that exposes:ClientIdScopeAuthorityFrontend consuming this endpoint uses this response to kick off AuthorizationCode + PKCE flow.Is this secure?

View Article

Understanding Optimistic vs Pessimistic Concurrency Control in Real-World Use...

I'm having trouble understanding the difference between optimistic and pessimistic concurrency control when applied to real-world scenarios. Let's consider this example:Scenario 1: Updating order...

View Article


How to implement unsend messages in Instagram Graph API

I have integrated Instagram graph API with Salesforce and it's working fine. Now I want to implement unsend messages but Instagram webhook is not sending any notificationI tried after subscribing...

View Article

How services communicated before RPC

I recently found out that RPC and REST are just API constructs and not different protocols through which two services communicate and send data to each other over the network. The underlying protocol...

View Article


openapi-generator-cli-7.9.0 is adding useless import...

We have received a .yaml definition and I was tasked with defining an ant target (my company hates simpler tools like maven, I don't know why) to generate the corresponding client implementation that...

View Article

What 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 Article

REST API using POST instead of GET

Let's assume a service offers some funcionality that I can use like this:GET /service/function?param1=value1&param2=value2Is it right to say that I can use it with a POST query?POST...

View Article
Browsing all 3607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>