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

C# post JSON data to REST API

I am new to REST API JSON but have been able to consume a few API with asp.net. Here is the problem I am currently facing.I have been able to send JSON data to an API using this method.public void...

View Article


How can I debug my retrofit API call?

I'm using retrofit to get some data from the Flickr api. The method I'm making the call in looks like this:public static List<String> getImageIds(int size) { Call<PhotosList> call =...

View Article


Python integration for space and other metric consumption using Netdata

I am working on a python script which should be able to send the messages to google chat space via webhooks. I do not want alot of data. In my case, I have multiple hosts connected to a central server...

View Article

Spring is not throwing MethodArgumentNotValidException when an invalid...

I am working on an ecommerce backend. I have this CheckoutRestController class with this reserveCartItems(@RequestBody @Valid ReserveItemsRequest reserveItemsRequest) web service. I am sending a...

View Article

Can users be redirected to airlines for payment using the Amadeus Flights API?

I’m creating an Mobile App with ReactNative + Rails, using the Amadeus Flights API. My goal is to search for flights, retrieve prices, and book flights. This part is well-documented and already...

View Article


How do I design a generic Response builder / RESTful Web Service using Spring...

Trying to build a RESTful web service using Spring MVC. The controller should return specific Java types, but the response body must be a generic envelope. How can this be done? The following sections...

View Article

Smart Slider available via Wordpress REST API [closed]

I'm working on a project to use Wordpress Headless with NextJS 14. I've tried to implement the Smart Slider as a banner manager on the home page, but I'm having trouble making it available in the...

View Article

Springboot POST API is returning 200 but no JSON

I am a little confused as to why my Spring service is not returning any content. I tried mvn clean install and I also see that the response POJO at the return statement line has actual data when I hit...

View Article


How do i post form data as JSON format

Posting argument data from my form works perfectly but i need to post the same information using JSON. How can this be done.My form looks like this.<form enctype="multipart/form-data" method="post"...

View Article


apex_web_service.make_rest_request POST has bad json or returns ORA-06502...

I cannot get successful POST /authentication/login with E-verify/DHS using PLSQL using apex_web_service.make_rest_request(). I tried in Apex first but got numeric/value error and swtiched to PLSQL to...

View Article

Quarkus REST Client: How to serialize a query parameter with custom date...

I have a REST API to call that expects dates in the format yyyyMMddMy REST Client code looks like this@GET@Path("/atl/")RestResponse<AtlResponse> getAtlResponse( @QueryParam("from") LocalDate...

View Article

Framework for a networked iOS? [closed]

I'm trying to build a basic social iOS app in the new iOS 6 beta as a proof-of-concept project to improve my iOS development skills. In essence I want to allow users to generate an account, store some...

View Article

VS code: Java file that fetches api url throws a weird form of...

I am trying to create a program that fetches data from a url. When I try to debug it with VS code it outputs nothing. Even if I put "System.out.print("Something");" after the catch {} block or...

View Article


how to set max connections for camel Http component

I used servlet and camel rest dsl to define the routes.I'm not using xml file in my application.how can i set max connections for http component using http component options?

View Article

Image may be NSFW.
Clik here to view.

Sending file using RestSharp does Contain File

I want to upload a File using Post. When using Postman everything works fine and the file is uploaded as expected, but when I try the same with RestSharp my File is always empty.Am I doing something...

View Article


Is gRPC(HTTP/2) faster than REST with HTTP/2?

The goal is to introduce a transport and application layer protocol that is better in its latency and network throughput. Currently, the application uses REST with HTTP/1.1 and we experience a high...

View Article

swagger returns 403 error even though object not found

`@PostMapping("/insert")@Operation(summary = "Создатьразделиподразделы")@SecurityRequirement(name = "Bearer Authentication")@ApiResponses(value = { @ApiResponse(responseCode = "200", description =...

View Article


Image may be NSFW.
Clik here to view.

How to get access token in Azure

I'm trying to fetch the secrets from the Azure key vault from .Net console application using REST API. Below is the code I'm trying to use for this from net.Below way I'm trying to get access token and...

View Article

GraphDB API: question about import method

I am using GraphDB 10.8 (Free), and want to use the GraphDB API to import an RDF file into the default graph. I have been reading and trying out the API documentation, but I'm failing to run the import...

View Article

How can I delete an attribute from a JSON object using a put call [closed]

I have a few JSON object with the structure:{"id": "2","data": {"name": "Preeti Priya","age": "23","yoe": "7"}},I want to make it like:{"id": "6","name": "sam","age": "22","yoe": "33"}Through a put...

View Article
Browsing all 3607 articles
Browse latest View live


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