How to enable CORS in ASP.net Core WebAPI
What I am trying to doI have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Add default security headers in .Net Core).I also have a Client Website which I want to make consume that API....
View ArticleRESTful DELETE with reason
For a resource that will be deleted, ultimately with a soft delete (isDeleted flag), I am looking to provide a reason to store along with the resource for audit purposes.The options I have encountered...
View ArticleCan I compose variable to create new varibales in Postman?
I have a variable as BASE_URL. When I am using the localhost, I am composing it with one more variable PORT that reflects the port on which the service is running on my local. These two variables...
View ArticleHow to setup Factory Album to map custom REST API json body
I'm new to Flutter and attempting to use the http package to fetch data from an external REST API. My code below successfully hits the host server (200), but throws an exception 'Failed to load...
View ArticleHow to change a Todoist task's duration with the update_task Python and REST...
I've tried Todoist APIs' update_task and I get error code 400:"Client Error: bad request for url https://api.todoist.com/rest/v2/tasks/[...]" with# Define the task ID and the new durationtask_id =...
View ArticleWhat would I include on a form to capture details about how to make requests...
Need: I need other developers' API informationGoal: Make successful requests to the aforementioned APIs dynamically.Real question: Am I missing anything?I have a project I'm working on that I want to...
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 ArticleREST vs gRPC: when should I choose one over the other?
I see more and more software organizations using gRPC in their service-oriented architectures, but people are also still using REST. In what use cases does it make sense to use gRPC, and when does it...
View ArticleAccessing file outside of Glassfish
I've created an xml file using a REST web service (which isn't located in glassfish) and I then need a php file located within quercus inside of glassfish to be able to access this file to modify it....
View ArticleWhy are freely hosted backend services or api on render.com take around 500ms...
I have been wondering why this happens after hosting the APIs, when I make a request to it, it usually takes 500-600ms to bring a response to the client side am using.I have tried to host different...
View ArticleSharePoint REST API - HttpClient
In my SharePointREST Service I can make a call to add a folder to a library as follows:public async Task<string> AddFolderAsync(string library, string folderName){ var _serverRelativeUrl =...
View ArticleUsing POST in Rest API just like get to add 2 numbers
I am new to REST and web services. I am trying to add two numbers with the below code.import javax.ws.rs.GET;import javax.ws.rs.POST;import javax.ws.rs.Path;import javax.ws.rs.PathParam;import...
View ArticlePower Automate Custom Connector Authorization Header
I am trying to make a custom connector in Power Automate with an API that I have used before with Powershell. The issue is that the one parameter I need in the header is Authorization, which is not...
View ArticleHow to send images as a binary data with the request
Here's what I havemodels.pyclass Post(models.Model): id = models.AutoField(primary_key=True) text = models.TextField(max_length=165) author = models.ForeignKey(settings.AUTH_USER_MODEL,...
View ArticleHow can I fix the following error "Invalid JSON...
I am having a hard time figuring out what could be wrong with my POST request to OANDA. I have been trying to submit limit and stop orders with no success so far. In terms of setup I am using Python...
View ArticleError registering user in Keycloak: username required while using Keycloak...
Problem:When I try to register a user by sending a POST request to the /register endpoint with a payload like this:{"username": "asas","email": "asas@gmail.com","password": "asas"}The system fails, and...
View ArticleMake HTTP request from Cadence SKILL program?
Is it possible for Cadence SKILL code to make an HTTP request? If so, how?I have Googled and read the SKILL manuals I can find with no clear answer. I found this integration with a Python program which...
View ArticleSpringboot Database JDBC URL [Connecting through datasource 'HikariDataSource...
I am learning Springboot and wanted to make an application that lets me use postgres to make simple APIs. I have been trying to establish the connection to the JDBC to be able to create a table,...
View ArticleRecursive Call to get and update all folders and files on a SharePoint...
I am struggling to find out how to get ALL Files and Folders inclusive all Subfiles and Folders (thresholdlimit off) recursively.Just by sticking together one URL would be helpful to put this later on...
View ArticleCan I re-use browser authentication with python REST?
I am trying to run a REST API with python. I can invoke the API successfully from the browser, but I get authentication errors when doing so from python or from the command line.I've already...
View Article