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

Developing a Spring REST service with OData interface

I'm developing a RESTful service using the spring framework. This service has a few different controllers. Some of the controllers allow the user to query data from a datastore. On investigating, it...

View Article


404 not found on app httpProxyMiddleware Nextjs

I am sending an api request to linkedin via the nextjs client but reached a cors access error and found I had to proxy the request via the nextjs server. I'm struggling to setup the proxy becuase I...

View Article


What is mean by Global API [closed]

I'm currently learning about different APIs in programming, and I keep coming across the term "global API." However, I'm not entirely sure what this term specifically means or refers to.From my...

View Article

Image may be NSFW.
Clik here to view.

Netsuite OAuth 2.0 refresh token expire how to get new one without going to...

I'm integrating Netsuite with PHP using OAuth 2.0 and it is successfully done. By default netsuite access token stay for 60 minutes and refresh token for 7 days. Once accessToken expires I can get the...

View Article

Corrupted Excel file getting downloaded through API gateway

I am using a lambda function to generate a excel file. I am accessing this generated excel file in my react frontend via API gateway. However when I am trying to download this file in through my...

View Article


Getting 400 http bad request error while accessing WCF rest service using GET

the Exact error is System.Net.WebException: The Remote server returned an Error: (400) Bad Request. at system.Net.HttpWebRequest.GetResponse()i have a WCF rest service hosted in IIS..I have created a...

View Article

Unable to read response object on react

My django api responds with the username if the user is authenticated and a not authenticated details msg if not authenticated, but I am unable to read the status code or console log or catch the 401...

View Article

Laravel - Validate input body is a list

I'm trying to write a validation in Laravel 11 for a POST call which passes a list of objects like this[{"id": 1, "name": "One"}, {"id": 2, "name": "Two"}]All documentation I've found explains how to...

View Article


How to distinguish between network/server/serialization errors in granular...

I have a simple REST client written using RestSharp.var opts = new RestClientOptions("http://api.muyservice.com/"){ // ResponseStatus should not be an Error when deserialisation failed....

View Article


Customized error in REST - response entity's body is null even though error...

I have the following REST endpoint:@PostMapping(path = "/dispatchJob") public ResponseEntity<Void> dispatchJob(@RequestBody(required = false) JobDispatchRequestBody dispatchRequestBody) throws...

View Article

Calling external API's in a Go+Gin project

Im using Gin framework with Golang to create a Web App. I created some API's that can reach routes. I tested them in Postman, But how I can call inside my App? I have another Go+Gin project and I want...

View Article

X-Auth header or Authorization Bearer token for a randomly token [closed]

I have a token that my application generates randomly with 32 characters. This token will be used for authentication and authorization for some resources in my api, this token is token to submit...

View Article

React-django npm errors

Folder Structure: (https://i.sstatic.net/oJ63TecA.png)Error message: (https://i.sstatic.net/FybPFJ9V.png)I am trying to implement the index.html. I created it with my React-Django framework. I am using...

View Article


2000 Device Dashboard + Status History

I am looking at building a dashboard that will tell us if a device (screen) is Offline. We have 2000 devices that I use an API GET to grab the data. It is returned with various data points including...

View Article

How do you force a JSON response on every response in Laravel?

I'm trying to build a REST api using Laravel Framework, I want a way to force the API to always responed with JSON not by doing this manulaly like:return Response::json($data);In other words I want...

View Article


How to pass Refinement filters in PNPJS search in spfx

i am using Sprest from @pnp/sp@1.3.4, i am not sure how to pass the refinement filters I have tried different ways but the results are getting 0, with out passing any refiners its working as expected,...

View Article

best scenario to extend a backend-for-frontend API [closed]

Currently there is a backend-for-frontend (BFF) pattern API URL like@Get(/data)byte[] getData(param1, param2)This functionality serves one file as byte array to the frontend. Which is then imported...

View Article


how to link a REST Api with login page?

I have built the backend of my web app using springboot. Currently, I'm able of creating new users (sign up) or log in via http requests. But I want to use a form login instead. how can I send the...

View Article

Fuzzy search in Oracle REST SODA

I am trying to do a fuzzy search using rest from a c# script and have tested a few different ways without success.This payload works:string payload = "{ \"name\" : \"Peter\"}";...which is a normal...

View Article

Image may be NSFW.
Clik here to view.

"X-WP-Nonce" Header was not mentioned in Thunder Client

i create a little react application where i want to caught some date from the api.Fetch Data:try { const response = await fetch(uri, { method: 'POST', credentials: 'include', headers: {'Content-Type':...

View Article
Browsing all 3607 articles
Browse latest View live


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