log out a stateless app
Here is what my project structure look like UI: AngularJS appBackend: Java + MongoDB stateless appThe UI authenticates a given user and the REST api responds with a JWT token. For every subsequent...
View ArticleNVX RestAPI does not return CREST-XSRF-TOKEN in request via Postman
Following the authentication steps using Postman in https://sdkcon78221.crestron.com/sdk/DM_NVX_REST_API/Content/Topics/Authentication.htm, I can do the first GET to get the TRACKID and other cookies,...
View ArticleAdd header to http request
My first post here. I'm using droidscript and I have to include an header that contains a specific user and a password in order to retrieve a token. I'm having trouble because I don't know where to...
View ArticleError when restoring the idToken - MicroStrategy Modeling service REST API
I am trying to hit '/MicroStrategyLibrary/api/model/securityFilters/{SF_ID}' getting error -{"code": "8004cb07","message": "Error when restoring the idToken: JWT signature does not match locally...
View ArticleHow can I pass a list of strings within a request?
I'm using Refit library for my app and I need to make a call to another service. I need to get all entities with ids that I'm passing.I tried [Body] attribute and it still doesn't work. I manage to...
View ArticleGetting Exception with message "http protocol is not supported" when using...
I'm trying to hit a URL using a GET request using RestTemplate. It gives an exception stating http protocol is not supported.I'm able to get the expected response using the plain old HttpURLConnection...
View ArticleWhat is "406-Not Acceptable Response" in HTTP?
In my Ruby on Rails application I tried to upload an image through the POSTMAN REST client in Base64 format. When I POST the image I am getting a 406 Not Acceptable Response. When I checked my...
View ArticleHow to add a test run to ALM using REST API
I searched high and low trying to figure out how to create a test run using the REST API for ALM. If anyone has found a better way then I would love to see it! Just figured this out last night.I used...
View ArticleHow can I get array from API in flutter? [closed]
I want to get following array with JSON instead of static.How can I get it ?static final List<String> states = ['ANDHRA PRADESH', 'ARUNACHAL PRADESH', 'ASSAM',];This array I want to get from API...
View ArticleFedEx Freight Pickup Cancellation API -...
I'm trying to cancel a freight pickup using the FedEx API, but I keep receiving the following error:{"transactionId": "APIF_SV_PUDC_TxIDd7cc20b2-bee1-4131-89eb-a8bf3216057f","errors": [ {"code":...
View ArticleResilient data processing with external api calls
I'm trying to build a little java test project to handle data coming from different sources. Let's say I want to build an app which will need to call external APIs. I receive an event and need to...
View Article"The underlying provider failed on Open" when executing stored procedure in...
I am working on a VB.NET REST API that interacts with a SQL Server database using Entity Framework. I am trying to execute the stored procedure rpt_Invalid in my database through Entity Framework, but...
View ArticleCould not find acceptable representation
I'm new to Spring Boot and I might be doing some silly mistake so Appologies in advance for such question.I'm trying to write POST API which accept following JSON :{"id" : null,"a": 1.3,"b":...
View ArticleAuth::user() Returns null Even with Valid Token (Laravel Sanctum)
I'm working on a Laravel 11 API using Sanctum for authentication. I have a route protected by the auth:sanctum middleware, and I'm sending a valid token in the request header. However, when I try to...
View ArticleWordpress REST API _fields and _embed parameters are not working simultaneously
If you call the REST API using _embed parameter you will be able to get the embedded objects as "_embedded" JSON object of returned JSON as following:/?rest_route=/wp/v2/posts&_embedAnd if you use...
View ArticleControl what can be uploaded in AEM sling
I was asked to restrict what can be uploaded in Adobe Experience Manager (author) - limit the size, content, name etc. As AEM is built on Sling, which has a REST-ful interface, almost everything can be...
View ArticleGetting 'fetch has been blocked by CORS policy: No...
while I am experienced in .NET and JavaScript, I am currently learning React and during the fetch to my REST API I am getting this error.Access to fetch at 'https://localhost:7142/api/Campaign' from...
View ArticleDefault REST API project controller actions cannot be found
I created a default ASP.NET Core Web API project and used the .http file to debug my API. However, none of the URLs are working. I used the endpoint explorer to generate the base URLs and added the...
View ArticleHow to create JWT token in Symfony5?
I'm trying to create REST API with JWT authentification in Symfony5. At first I've tried to do as written here...
View ArticleDataDog Trace Analytics Not triggering alerts with URLParam and type GET...
I have a use case requiring a URL query string to trigger an alert. As part of the API requests, the parameter longrun=1 is being sent.Created trace analytics monitor with GET type as...
View Article