Device Authorization Grant Flow returns error requiring client_secret after...
I am currently trying out Microsoft Entra Device Authorization Grant Flow according to this page: Microsoft identity platform and the OAuth 2.0 device authorization grant flow. I was able to follow the...
View ArticleSetting Authorization Header of HttpClient
I have an HttpClient that I am using for a REST API. However I am having trouble setting up the Authorization header. I need to set the header to the token I received from doing my OAuth request.I saw...
View ArticleHow to make a restricted IP API work with Microsoft Fabric
My company uses a specific application for tracking of data. I now have been asked to report on this data. The application itself can only be reached via our VPN. If the VPN is not enabled, the app...
View ArticleGrouping path & query request parameters for Swagger UI doc (Spring Boot)
Let's assume that I got two GET method implementations@RestController@RequestMapping("/products/{id}")public class ProductController { @GetMapping(path = "/one") public...
View ArticleHow to use the Washington, DC Metro API
I've been researching how I can take the transit info API that The Washington DC Metro Rail offers, and display it as HTML.The documentation is on their web site, but It does not include many examples....
View ArticleLinkedIn Rich Media Shares API error 'Not enough permissions to access media...
I have LinkedIn app (Created from here https://www.linkedin.com/developer/apps) with scope of r_basicprofile, r_emailaddress, rw_company_admin, w_shareAfter completing auth process successfully I got...
View ArticleIs it possible to make a Patch endpoint in .NET that only receives some...
Is it possible to create a Patch endpoint in .NET that only receives some entity properties in JSON and not a JSON full of things like what happens when we use JsonPatchDocument? I have a User entity...
View ArticleRun collection in Insomnia
I'm looking for a way to run requests sequentially within my Insomnia collection, similar to how it's done using the collection runner in Postman. My collection contains a series of requests, and I'd...
View ArticleHTTP Status Code for Resource not yet available
I have a REST endpoint accepting a POST request to mark a code as redeemed. The code can only be redeemed between certain dates.How should I respond if someone attempts to redeem the code early? I...
View ArticleFile upload works from Swagger, but fails in REST API client , says 413...
My .net core rest api with IIS server setup is able to upload files through the Swagger UI, but it fails when I try to upload from REST API client (Postman or Insomnia) saying "413 Request Entity Too...
View ArticleHow to use _spPageContextInfo in sharepoint Application
I am working on SharePoint RESTful API using JavaScript. when using _spPageContextInfo it doesn't work. Error: Uncaught ReferenceError: _spPageContextInfo is not defined here is code i used<html...
View ArticleeBay REST API getOrders returning an empty array
I have successfully authenticated my application, created an access token through Oauth and refreshed it without any issues. I now need to be able to request orders for fulfilment. I have the correct...
View ArticleCreating a Feign configuration just for one client?
I have a whole bunch of Feign clients that uses a shared configuration(MyFeignConfiguration.class):@FeignClient(name = "clientA", url = "http://serviceA.com", fallbackFactory =...
View Article{"the request was aborted: the connection was closed unexpectedly."}. I got...
the first request i=1 is done but the next is getting this message:{"the request was aborted: the connection was closed unexpectedly."}.Here is my code for (var i = 1; i <= 4; i++) { var token =...
View Articleapach nifi 1.16.3 no return __Secure-Request-Token cookie when calling...
i have a single instance of apache nifi 1.16.3 with self-sign certification. when using postman to test call the rest api https://localhost:8443/nifi-api/access/token, it only returns 1 cookie:...
View ArticleMy Component in React JS application don't read the Headers from REST-Api -...
I created a Web application built with React.Js and Asp.Net core with C#.When I do Request from Postman or Swagger I have the headers from Response.From Swagger:And for the postman is the same...
View ArticleREST API design: one endpoint with if/else logic or two separate role based...
I have an API design/versioning conundrum.Let's say I have an endpoint /api/customers which GETs all customers (ignore pagination). There's a twist though: if a regular user accesses this endpoint,...
View ArticleRefresh Token Laravel Passport
When I implemented the refresh token from the client, why was I redirected to the server URL afterwards? My guess was because the client had previously made an Authorization Requestserver :...
View ArticleDelete all items from a sharepoint list with the REST Api
Is there a method to delete all items from a sharepoint list using the REST API ? Preferably not using a Loop over all items and deleting individual item ?I have got to the point where I can delete...
View ArticleImport "rest_framework" could not be resolved. But I have installed...
Here's my settings.py:INSTALLED_APPS =...
View Article