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

Rest-assured. Is it possible to extract value from request json?

I'm getting response this way:Response response = expect().statusCode(200).given().body(requestBody).contentType("application/json").when().post("/admin");String responseBody =...

View Article


Make Geneos to send HTTP GET request

I am using Geneos for monitoring, and want it to monitor a rest api endpoint of an app, so geneos should perform GET http request and take a response. Is there a way to do this?As far as I know, there...

View Article


cant acces Hono api on vercel test branch

I am trying to run a hono api on vercell. However, it shows some strange behavior that i can't solve.The api runs as a proxy and therefore needs a cors header.on the local host the api runs fine and...

View Article

POST request in rest assured

I am using rest assured for the post request containing the JSON bodyMy post request code is :-RestAssuredResponseImpl stat= (RestAssuredResponseImpl)given(). header("Accept", "application/json")....

View Article

Should I have double HTTP Patches?

I'm coding a simple todo list app in Flask for study. My todo model has title, description and a check attribute. When false is a "to do" task, and when the user click on a checkbox it will change to...

View Article


How to call tanstack's vue-query get request inside a method?

I need to query an API as a side-effect of an action and I am trying to use @tanstack/vue-query. Whenever I try to call useQuery inside a function, it throws an error, vue-query hooks can only be used...

View Article

Geoserver: How to set custom gridset to default caching using REST

I've successfully added a custom gridset using the Geoserver REST API, but now I don't know how to add it as the default caching grid set. In addition I would also like to adjust the default caching...

View Article

Response is "None" when using Rest Assured for API automation (within...

Trying to start off API automation project for organization projectI am trying to automate a API case using RestAssured and started off with a simple test case - to get details.I am doing this in my...

View Article


Timeout is not set for OkHttpClient in java service

I have a Java service that is using OkHttpClient to make some calls to some third-party providers from which we are getting some data that we are using in our business logic.The issue that encountered...

View Article


Unable to post a share using Jive REST API - getting 400 Bad Request error

I am trying to post a share on Jive using the /Shares REST API in .net using C#. However I am not able to do this and getting the following error:"The remote server returned an error: (400) Bad...

View Article

Download raw raster values from ESRI REST API using arcpullr

I am attempting to download raw values from a digital surface model (DSM) from and ESRI REST API in R using the "arcpullr" package. I have the code that works to download the image tiles (i.e., the RGB...

View Article

How do I write a retrieve endpoint when the `id` is not url safe

I am writing an API using DRF to interact with a DynamoDB table via pynamo-db. I want to include a retrieve endpoint that will accept a resource_id and return the corresponding row from...

View Article

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


Spring Boot + Spring Security + Spring Rest Issue: 'Access Denied' error

I created a Spring Boot application from the Spring initializer, included no dependencies at all. Then I imported this application into STS-4.4.2. I created a rest controller and added a single POST...

View Article

Overloading a REST endpoint with different QueryParams

I am trying to determine the best way to interact with a Jersey Client endpoint with a variable being Collection<String>. I am not 100% sure this would be correct to do it but I was wondering if...

View Article


How to solve maven 2.6 resource plugin dependency?

ERROR:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for...

View Article

Parse JSON response to apollo-client query

How can I parse a stored JSON response in React and pass to a component that is expecting graphQL response?Is there a way to add the __typenames from the query RatingQuery?This is what I am trying, but...

View Article


How to integrate ZKTeco K40 attendance device with Salesforce

I want to integrate my integrate my Salesforce Org to this Attendance device to store all the attendance records.I am already familiar with socket based PHP libraries and SDKs but I am required to...

View Article

How to use post method to create API in Laravel

I am a beginner to Laravel and Rest API creation. I am trying to create an API to search trader if exists or not depending on contact number using post method.My api.php page...

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
Browsing all 3607 articles
Browse latest View live


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