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

What's the most appropriate HTTP status code for an "item not found" error page

I'm curious what's the most appropriate HTTP status code for an "item does not exist" page.If the page itself doesn't exist, I'll obviously use 404. However, one of my pages has a userid argument (it's...

View Article


How to generate JWT token in react js

I'm new to JWT concept. I have a signup form and login. Signup.js: I have created signup formimport React, { Component } from 'react';import { Button } from 'react-bootstrap';export class SignUp...

View Article


when i am using the form data with rest robot framework i am getting...

when we are using the form data with rest robot framework i am getting multipart EOF error. can some one helpit should work as expectedwhen we execute in postman if we give space before content-type...

View Article

PayPal REST API Create Invoice with Template

Has anybody ever successfully created a PayPal invoice with a specific chosen template?I can't seem to get it to work.Have tried specifying the template_id in the call, and have also tried setting the...

View Article

Token Bucket | Fatal Error: The string is not 64 bit long. PHP 8.2 | Api Rate...

Fatal error: Uncaught bandwidthThrottle\tokenBucket\storage\StorageException:The string is not 64 bit long. in \bandwidth-throttle\token-bucket\classes\util\DoublePacker.php: 41Having this error when...

View Article


Could not find any REST API documentation regarding FCM v1 subscribe to a topic

In the FCM legacy version, I could subscribe to a topic by using REST API by this url and used FCM server key for authentication.https://iid.googleapis.com/iid/v1/{device_token}/rel/topics/{topic}But...

View Article

I want to verify bitbucket webhook secret. I wrote following code for lambda...

import hmacimport hashlibimport reimport osBITBUCKET_SECRET = os.environ.get('BITBUCKET_WEBHOOK_SECRET') # Secret from Bitbucket webhook settingsdef calculate_signature(bitbucket_signature,...

View Article

soapUI: multipart/form-data REST API with multiple file attachments

I am using soapUI for testing a REST API . How can I define multiple files in query Param value ?The solution that I have found consists in attaching only one file : (soapUI: multipart/form-data REST...

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


What is the difference between Spring and Spring Boot?

There are many people who advised me to use Spring Boot instead of Spring to develop REST web services.What is the exact difference between Spring and Spring Boot?

View Article

How can I fix this 'Unable to connect to the Parse API' error

Unhandled Runtime ErrorError: XMLHttpRequest failed: "Unable to connect to the Parse API"Call StackhandleErrornode_modules\moralis\lib\browser\RESTController.js (445:0)

View Article

Using a Trino client with external authentication rather than BasicAuth

I am using Trino to communicate with OpenSky, which is a flight record (ADSB) historical database. I am a contributor to the OpenSky network and have approved credentials.The OpenSky Quick Guide shows...

View Article

Where to use Date.now function for saving data to database

I have a REST API server with Express, connects to MongoDB. Basically my app accept an input form to save some reports daily and of course the timestamp has to be that current time.My question is,...

View Article


Spotify WebAPI RefreshToken Request Error

I wanted to create a request to get the RefreshToken of a user. The problem is that I got the HTTP Error 400. I changed this code from an already existing code where everything worked normally with the...

View Article

How to add a line item to an existing Woocommerce order via REST API?

I am looking to add a line item to an order. I am POSTing to this endpoint:/wp-json/wc/v3/orders/7691with some pretty basic json:{"name": "Product Name","product_id": 123,"quantity": 1}Authorization...

View Article


Is there a nlp project that can convert text to API requests? [closed]

I found a NLP project for automated conversion of query text to SQL queries to vanna.ai and I wanted to know if there was a similar project with respect to API conversion from text using swagger docs...

View Article

Getting this error while running the test runner file....

I am practicing the RestAPI end to end scenario. Below are the details. Please help me to resolve the issue.My Test Runner file:package cucumber.Options;import org.junit.runner.RunWith;import...

View Article


Same python package to use with two servers in the same project [closed]

I have a python client package for an API, now I have two first of this API and I want to use both of them in the same project using this package, the issue here is that when I want to change the...

View Article

request for creating page-access-token for facebook graph API returns blank...

Making get request for creating page-access-token for facebook graph API returns blank data object.The request is like below according to the official...

View Article

API Request Works on Client but Fails on Next.js Server

I'm encountering an issue where an API request works successfully on the client-side but fails on the server-side in my Next.js application."use server";export const searchPlaces = (async (query:...

View Article
Browsing all 3607 articles
Browse latest View live


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