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

HTTP Status 405 - Method Not Allowed Error for Rest API

Am asking this question after doing some research. I did followed the solutions given for this kind of error but did not work for me. Any suggestions as where am going wrong in the below code.I am...

View Article


"407 Proxy Authentication Required" error during java rest request occationally

I am trying to perform a REST request to one of my client URL to get the response using proxy.Most of the time i am able to get the response using my code.But sometimes when i try to send a request...

View Article


How to send a JSON response from an API route in Next.js?

I am developing a tiny REST API for a Next.js app. If I place my route.ts in rootDir -> app -> api -> hello -> route.ts that looks like this, then it works://route.tsexport async function...

View Article

Error 415 Unsupported Media Type: POST not reaching REST if JSON, but it does...

I am actually new to REST WS but really I don't get this 415 Unsupported Media Type. I am testing my REST with Poster on Firefox and the GET works fine for me, also the POST (when it's a...

View Article

How to fix "Unable to generate an IRI for the item of type" in ApiPlatform?

Using both the documentation and playground for Subresources in ApiPlatform, I tried to build a one country to many counties setup.I can't figure out why is that when I call the...

View Article


C# REST API complex filter [closed]

I'm working on an API project at my company that uses EF Core for database access, and we're implementing an approach for complex API filtering similar to the one outlined in this article.However, I've...

View Article

How to run data driven testing with Complex JSON Request Body in Postman?

I am currently testing microservices and creating a request body to run the data driven testing postman, but I ran into a problem that my JSON Request body is bit complex (multiple level of data and...

View Article

Code with Jquery having update issue for select control [closed]

I am trying to update a dropdown or select field dynamically from a text box. depending on what is entered in the textbox.if FTW is entered then it updated the state to texas, if OKC then oklohama and...

View Article


Image may be NSFW.
Clik here to view.

Proper way to set response status and JSON content in a REST API made with...

I am playing around with Nodejs and express by building a small rest API. My question is, what is the good practice/best way to set the code status, as well as the response data?Let me explain with a...

View Article


Trello Attachment By API

I am able to create a Trello card and send the attachment by API through VBA Access code. The attachment is PDF, and I am sending it by encoding(often base64), but sometimes, the attachment file does...

View Article

Gmail Firebase login API request failed

const userDetails = { displayName: user.displayName ?? `${input.firstname} ${input.lastname}`, email: user.email ?? '', photoURL: user.photoURL ?? '', user: { firstname: input.firstname, lastname:...

View Article

Can some one simplify jwt authentication and authorisation in Django Ninja?

I have recently started using Django ninja for REST API.I found it extremely easy but for the authentication flow. I just can't understand what exactly I can do for the following.Create a registration...

View Article

How and where to store secret key(s) of your REST API with HMAC based signing

I'm building REST API that should be accesible for other developers. To authenticate clients I decided to use HMAC-SHA256 request signing with API key and secret key.So the process of authentication...

View Article


Image may be NSFW.
Clik here to view.

How to POST a multipart/form data with files in a REST API

I am trying to write a REST API to upload an attachment. I have written the API. But when I am trying to call from POSTMAN, It's throwing an exception.REST API: @Consumes(MediaType.MULTIPART_FORM_DATA)...

View Article

How to check the status of a spring batch job whether an instance of the job...

I have a requirement where i have created a custom UI for spring-batch monitoring using the spring-batch-admin JSON api. I have a requirement where i dont want to allow the user to start job when an...

View Article


Can I simulate a Data Transfer Object in RAP application?

I'm trying to use the Restful ABAP Programming model (RAP) to cover the following use-case:Data is received with field a, field b, field c and field dLogic is executed to transform the inbound...

View Article

What is the recommended approach for structuring data in REST APIs for web...

My colleagues and I recently had a heated debate regarding the best practices for structuring REST APIs in web applications, especially when dealing with complex data and relationships.To keep things...

View Article


Image may be NSFW.
Clik here to view.

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

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: See...

View Article

Parsing a REST XML API response

I am currently trying to parse a rest XML API response from a STANDS4 API...The XML file would look something like this:<results><result><quote> To be free it is not enough to beat...

View Article

Implementing DDD relation/child/aggregate with a HTTP API as persistence

We are doing a REST web API in C#. We have some form of clean/onion architecture with application, domain and infrastructure layers. I would like to inject some DDD ideas into the project so that the...

View Article
Browsing all 3607 articles
Browse latest View live


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