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

Image may be NSFW.
Clik here to view.

How to Send Axios Multipart File with JSON Body to Springboot

I am working on a react native project, which is leveraging Axios, that hits our Springboot backend.We have a support endpoint that looks like this:@PostMapping(consumes =...

View Article


LinkedIn: share post API returns 401 unauthorized

I want to share a post using the LinkedIn Post API.async function shareOnLinkedin(authCode:string,accessToken: string) { const ME_RESOURCE = 'https://api.linkedin.com/v2/userinfo'; const POSTS_RESOURCE...

View Article


Arduino aRest no matching function issue

Using aRest api library, II get 78:525: error: no matching function for call to 'HardwareSerial::print(ApiCommandClass&) at the linereturn apiReturn.indexOf(ERROR) > 0 ? INVALID : SUCCESS;in the...

View Article

Power Automate upload image to wordpress through REST API wp-json/wp/v2/media...

Good afternoon,I am facing issues while trying to upload an image to wordpress through power automate.I am using the wp-json/wp/v2/media endpoing through POST method.At the moment I am getting my auth...

View Article

Java Maven Jersey code giving error MessageBodyWriter not found for media...

I have a Jersey Code containing AlienResource file for handeling request and Alien.java code and some dependencies. i am trying to render xml content on web page but it is giving error as...

View Article


How do I have selenium get oauth access tokens from a web app?

This is completely maddening... I have OAuth2.0 requests going to a web app and I want to retrieve my access token using python selenium.I've tried using rauth, requests, and oauthlib.oath2 to get an...

View Article

Need help solving media type problem doing REST POST from Jenkins script

I'm trying to do a REST POST from a Jenkins pipeline script:def data = ['markdown': params.message,'roomId': params.roomid]echo "Webex data: ${data}"def response = httpRequest url:...

View Article

in spring web, get parameter from URL

I have this URL.http://localhost:9000/api/datos-generales?page=0&size=20&sort=id,asc&filter=7588and I want to recover the value of the last parameter. "filter".this is the signature of the...

View Article


Getting 500 Exception response on my entity Booking due to @Future Annotation

I am building a web application based on hotel room booking and testing my REST API through postman and this @Future annotation from import jakarta.validation.constraints.Future; is giving me 500...

View Article


FedEx rates API does not return both one_rate and weighted packages, despite...

FedEx API documentation states: Note: FedEx customers can request both One Rate and weight based (non-One Rate) rates in a single Rate Request by specifying "FEDEX_ONE_RATE" as a Service Option Type in...

View Article

Image may be NSFW.
Clik here to view.

UML diagram (Class Diagram) of whole Spring project in STS

I have developed a REST API's Project and I want to draw a class diagram for every API individually. I have downloaded the eclipse plugin of PlantUML but this doesn't generate the complete API class...

View Article

JWT headless wordpress with javascript (custom plugin)

how to implement securly jwt with (vanilla or jquery) javascript and headless wordpress (php) not by using any plugini have 2 servers*server 1 (vanilla js + html) app.example.comserver 2 (wordpress...

View Article

HTTP response code for POST when resource already exists

I'm building a server that allows clients to store objects. Those objects are fully constructed client-side, complete with object IDs that are permanent for the whole lifetime of the object.I have...

View Article


openapi 3.0: how to add examples of objects having nested objects inside it?

I want to add examples of my response schema in openapi 3.0 YAML. I have went through the idea on link https://swagger.io/docs/specification/adding-examples/ but my issue is that my response schema...

View Article

Should I use Singular or Plural name convention for REST resources?

Some RESTful services use different resource URIs for update/get/delete and Create. Such asCreate - using /resources with POST method (observe plural) at some places using /resource (singular)Update -...

View Article


Image may be NSFW.
Clik here to view.

.NET 5 API update only fields on JSON (Partial Update)

I'm building a .NET 5 API restful and I'm facing some issues.I would like to know if is possible to update only fields that I send on JSON.e.g.:JSON on Postman{"id": 14,"name": "Pillar 1"}My...

View Article

nodemon app crashed - waiting for file changes before starting... HOW TO MAKE...

From time to time it does happen, but restarting the node bypass this. I really don't have how to debug and see the actual error and the site needs to be online anyway.I wish to know a way to restart...

View Article


custom path to get all the subressource of an entity

I'm new with Api-platform 2.6 and i kind of succeeded to do what i attempted but i don't know if it's the "right" or easiest way to do it.Here's what i'm trying to do:i got an esirius_site entity that...

View Article

java.net.SocketException: Unexpected end of file from server using Spring's...

I've already checked several questions / answers regarding similar subjects, but can't find the proper answer for my case.I'm using Spring's RestTemplate but fails to get the response from a third...

View Article

Why am I getting a bad request error when trying to create a folder in...

I am trying to create a Sharepoint folder in my C# app, and keep getting a 400 Bad Request response. My code seems to match the examples I find online. What am I doing wrong?public async Task...

View Article
Browsing all 3619 articles
Browse latest View live


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