C# .NET Implement DHL API Tracking [closed]
I have a negative score for this question and I can't submit any new questions on stackoverflow. I can't delete this question or make it generic as it referred to a particular API. Any ideas?I have...
View ArticleIntelliJ Http client: Conditional header
I want to use the Intellij Http client to do some HTTP requests. I have different environments. On one of them, I want to login with a JWT and on the other with OAuth2. Both need different headers. I...
View ArticleOAUTH2 Login with Google without JWT, Rest Api
I want to implement login with google to my application. I looked at tutorials and trying to do something but nothing worked properly. My last error is thisCannot invoke...
View ArticleWhat's the REST way to verify an email?
When a user register to my web application I send an email to verify his inbox.In the email there are a link to a resource like this:GET /verify/{token}Since the resource is being updated behind the...
View ArticleWhat is the proper way to make my REST API protected?
I'm a newbie go developer and I make my first rest api service that is a backend part of the Telegram Mini App(just a website btw). I have some methods like post, patch, delete and the client(React +...
View ArticleRestClientException: Could not extract response. no suitable...
Using the curl command:curl -u 591bf65f50057469f10b5fd9:0cf17f9b03d056ds0e11e48497e506a2 https://backend.tdk.com/api/devicetypes/59147fd79e93s12e61499ffe/messagesI am getting a JSON...
View Articlenestjs ConfigModule.forRoot() asynchronuous
I want to load config in Nestjs from a configuration server with a REST API to allow for centralized application configuration. However there is no async version of the ConfigModule.forRoot() function...
View ArticleHow to resolve CORS issue in Angular 12?
I am working on an Angular project and I have login page and during submitting login API, I am facing CORS error. I am attaching screenshot of it also. Any suggestion would be appreciated. API...
View ArticleSupporting multiple languages in a REST API
I have a collection of cities for which I'm creating a REST API (my first REST API). Each city has a number of language independent things, such as founding date and population count. Cities also have...
View ArticleSpring Boot 3 REST API Authentication [closed]
What is the best-practice for securing a backend REST API in Spring Boot 3?I don't want these services knowing anything about the authenticated user (this security impl will happen in the frontend app...
View ArticleIssue with Surepass API: "Base URL is missing or is not configured properly"
I'm trying to use the Surepass API for driving license verification. Despite using the correct endpoint and headers, I keep encountering the error message: "Base URL is missing or is not configured...
View ArticleHow to reduce pressure on server for when client calls APIs every moment
I am working on a game development with pygame. It is multiplayer simple card game. So, each time Player 1 does something, lets say getting a new card from the deck, an API is used to POST to the...
View ArticlePostman Chrome: What is the difference between form-data,...
I am using the Postman Chrome extension for testing a web service.There are three options available for data input.I guess the raw is for sending JSON.What is the difference between the other two,...
View ArticleGetting error as "java.lang.NumberFormatException: For input string: "[null,...
package Day8;import static io.restassured.RestAssured.*;import static io.restassured.matcher.RestAssuredMatchers.*;import static org.hamcrest.Matchers.*;import org.json.JSONObject;import...
View ArticleREST API python for current Stocks information for trading
)I search for some information about REST API python opportunity for get the currentstocks information as CVS file or something like that.So that I can retrieve the information about many stock and...
View Articlegetting connection error while making rest call in glue?
I need to call rest api from a glue job .The flask api is running in container in EC2.I get a connection Error when i try to do it.I understand both need to be in same vpc.But no clear method is given...
View ArticleTestRestTemplate returns 200 OK at a GET request, when no Controller is present
I am trying to develop a simple books API to learn Spring Boot. I wrote a (hopefully) failing test to check if the TestRestTemplate returns an HttpStatus of OK. Of course, I did it before writing the...
View ArticleHow can I implement retry policy with httpx in Python?
I need to communicate with other services in my Python and FastAPI application, therefore I use the httpx library to be able to communicate asynchronously. So, I have the following code for POST...
View ArticleFetch error when trying to do 'DELETE' operation
I'm trying to do a DELETE operation of a json resource via react. But my code isn't working when I'm trying to declare id as numeric. but it will work when id is a string.like:{"items": [ {"id":...
View ArticleSpring: Returning empty HTTP Responses with ResponseEntity doesn't work
We are implementing a REST API with Spring (4.1.1.). For certain HTTP requests, we would like to return a head with no body as a response. However, using ResponseEntity<Void> doesn't seem to...
View Article