Convert Curl to Restassured
I have a cURL that takes a file checksum and xml along with multiple headers in order to upload an image to a server.Im not very familiar with RestAssured so my question is;How do i represent the -F...
View ArticleHow to get Xbox Live session from XUID using the Xbox REST API?
I'm attempting to get Xbox Live sessions by an XUID like this:curl -is -X GET...
View ArticleRestrict particular Rest API not to be accessed but deploy the code
I have deployed my .net core code in IIS and NGINX. Is there any way that I can restrict user not to use the particular API and not to deploy code again?Or if i have to deploy again, is there any way...
View ArticleError using REST API Basic Authentication in Azure ADF
I am getting an error as below while using REST API POST method, Basic Authentication.Error: Input is malformed. Reason: Could not get entity details for DandB Test. If this entity is a linked service,...
View Articleexporting CSV data using rest API python
I am trying to get a CVS file from a database using the rest API but I am only getting the top row of the CVS filepayload = "SELECT * FROM so WHERE num = 26254" headers = {'Content-Type':...
View ArticleConsuming RESTful service over https with certificate using Java
I'm a new user to REST services. I need to consume a RESTful API service generated with Jersey. The problem comes because that service is hosted on remote host and it requires https access with...
View ArticleRest API POST/PATCH/DELETE for an intermediate entity in Spring
right now I am working on a java project with Spring, but I got really confused about something. In my domain I have the following three entities.Museum, MuseumReview and Visitor.A visitor can review...
View ArticleDetermining where to place logic connecting multiple aggregate roots and...
I am kindly asking for your guidance on where the logic connecting various entities and aggregate roots should reside. In our upcoming project, the code architecture will combine Domain-Driven Design...
View ArticleThere was an error running the selected code generator: 'Package restore...
Whilst working on an old Visual Studio 2022 asp.net core web API project, that uses the .NET 6 framework and the database first approach - albeit hosted on Azure, I've come to find that after adding...
View ArticleAngular - service request either to server1 or server2 depending in user...
Currently for development I have this environment config:export const environment = { production: false, envName: 'dev', apiEndpoint: 'https://url.to.server1/api/'};In the module.service.ts services I...
View ArticleLogging out: GET or POST?
This question is not about when to use GET or POST in general; it is about which is the recommended one for handling logging out of a web application. I have found plenty of information on the...
View Articlecan you add HTTPS functionality to a python flask web server?
I am trying to build a web interface to Mock up a restful interface on networking device this networking device uses Digest Authentication and HTTPS.I figured out how to integrate Digest Authentication...
View ArticleGetting data as 'undefined' at the backend when sending data using formdata...
I have a project made using React for the frontend and Express for the backend. I want to create a feature to edit data. The data being sent includes a file, so I am using formData() from React. Before...
View ArticleHow do I maintain consistency between third-party API and my own database?
I am working with REST API and have the following scenario for processing request to make a payment:A client sends the request (payment information) to my own API.My API calls third-party REST API,...
View ArticleCombine [FromBody] and [FromRoute] attributes in one model
I am trying to create model, which I could use for Body and Route at once. I found solution here, but I would like to move it little bit further. Not using extra "body" class, but include everything in...
View ArticleHandling 404 Errors Gracefully with Spring's RestClient
I am currently working with the new RestClient in Spring Boot 3.2/Spring Framework 5.1, and I have encountered a challenge with handling 404 errors. My goal is to gracefully handle these errors without...
View ArticleHTTP 403 error when trying to follow the "Vector search by using REST" guide...
I was trying to follow this guide to learn how to use OpenAI embeddings using Azure AI search. I completed all the steps exactly as instructed but when I tried to create an index using the code below I...
View ArticleWCF REST API returned type .net application
I have an API that can returns multiple things that I don't know in advance so I have to put as return type System.Object.I have some problems for some types. Like when it returns different objects its...
View ArticlePost Rest API to upload pdf or jpg file from Oracle 21c
I need to send some documents to my server from my Oracle application, for this reason I created an API on my server using phpThe API tested by PostMan and I can upload any file type.Now I need to...
View ArticleWebsocket vs SSE vs REST underlying TCP connections
If each of them maintains only 1 TCP underlying connection, is the complexity in the logic / memory / cpu resources allocated on server and client only?
View Article