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

CORS error in node express REST API (PATCH Request)

I'm getting cors error for patch request. I'm using cors npm package, It's working well for get and post request. for patch method throwing cors error.const express = require("express");const cors =...

View Article


Why does the Laravel API return a 419 status code on POST and PUT methods?

I am trying to create a RESTful API by using Laravel. I have created my controller using php artisan make:controller RestController and this is my controller code: <?phpnamespace...

View Article


How to store API-side temporary data for the lifecycle of a mobile app?

I am developing an API with FastAPI for an Android application using Jetpack Compose. When the user logs in, I generate a JWT token and send it to the server like this:class TokenModel(BaseModel): jwt:...

View Article

Why is FedEx API returning encoded characters?

FedEx Address Validation API is returning encoded characters and a 400 bad request error. Here is my request body with the secret key blocked out for obvious reasons:POST /address/v1/addresses/resolve...

View Article

How can I protect my Node.js API from excessive use to prevent spamming of...

What are some effective strategies or best practices to protect my API from excessive usage or abuse?I want to avoid that somebody could Spam Mails to a Mail inbox through my Api.I'm currently using...

View Article


How to make https request and encrypt POST parameters?

I have developed a Mobile application that connect to my Web Servie via RESTful API.Now, I need to protect my API by someone who could sniff it via WireShark. I just need to hide my URL and POSTed...

View Article

HTML form submit giving 400 bad request

I'm submitting a HTML form to REST(eXist db) web service using POST method.A normal submission is giving 400 bad requestHere is my HTML code<html><script type="text/javascript"> /* function...

View Article

Not working - Registering User in Api Programatically

I'm trying to register a user in my API. When I do it in Postman, it registers the user and returns the status as true and message as User Created, but when I try to create a new user from swift...

View Article


Ajax JQuery to Spring @RequestBody? How do I pass data?

Ajax JQuery to Spring @RequestBody? How do I pass data? I being doing spring for sometime now with passing form fields but I am working on a new system and we would like to use Ajax and RESTful to pass...

View Article


WooCommerce REST Client API - Not able to hit create orders webhook without...

I am trying to create a webhook for orders create in a plugin settings. But unfortunately i am not able to hit the api without consumer key and consumer key in wp_woocommerce_api_keys table is hashed...

View Article

Spring controller that accepts both MultipartFile and also a JSON Object

I need to make a POST endpoint in Java Springboot that accepts a MultipartFile (a raw file like xlsx, doc that we can upload from windows explorer) and also a JSON Object (metadata).The JSON Object...

View Article

Spring RestTemplate POST Query with Headers and Body

I need to consume the given API definition, But I am not able to find a function call that takes both headers and request body at documentation. Please suggest which function of RestTemplate to use...

View Article

OpenBankingProject, for api call `create custom view`. How to grant the...

I am using the Open Bank Project API Sandbox. My issue is when performing the api call Create a custom view on bank accountI am getting{code: 400, message: OBP-20022: View does not permit the access....

View Article


eBay errorId 25002 API_INVENTORY "A user error has occurred. Add at least 1...

My code will create an generate authorization code, then exchange for access token, createOrReplaceInventoryItem, getOffer, deleteOffer, createOffer in Sandbox and Production.But when I try to...

View Article

HTTP/1.1 422 Unprocessable Entity Error when sending data to LoopBack from...

I am doing an HttpPost to send data to LoopBack and get the response. I am getting an error as below from LoopBack :HTTP/1.1 422 Unprocessable Entity [X-Powered-By: Express, Vary: Origin,...

View Article


Java, How to return different status codes 400, 404, 500 when calling Rest...

I am calling a RestAPI from Ui. RestAPI then calling Soap API. I did the mapping between rest and soap. Issue is that how to return status codes/status message to UI when calling REST API.In case of...

View Article

REST API being stateless

I hear that RESt API is stateless. This means that server application will not be able to differentiate among many calls to the same route.I have two questions with respect to this:Then every API call...

View Article


How to return different status codes 400, 404, 500 when calling Rest API from...

I am calling a REST API from UI. REST API then calls a SOAP API. I did the mapping between REST and SOAP. The issue is how to return status codes/status message to UI when calling the REST API.In case...

View Article

Which is easy to use Afnetworking/Nsurlsession/Alamofire [closed]

I want to make rest API call. I m confused to use Afnetworking or NSurlsession or Alamofire with SWIFT 3.0. Can anyone suggest me to use which one?

View Article

REST API filter operator best practice

I am building a REST API that uses a filter parameter to control search results. E.g., one could search for a user by calling:GET /users/?filter=name%3DfooNow, my API should allow many different filter...

View Article
Browsing all 3607 articles
Browse latest View live


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