How do I grant permission for an application to read Azure billing data?
I am trying to set up an application to automatically download consumption and billing data from the Azure management APIs. I have set up an app registration and installed it as an Enterprise...
View Articledisable auth for OPTIONS method in apache
We have third party authentication and it was configured in apache.conf as below.<Location /myapi> MyRequireAuth on</Location>means, when anyone send request to /myapi, it has to be...
View ArticleHow to make a REST call through terraform to a private Azure resource?
I do not this this question needs to be Azure resource-specific, but I will provide my background. I currently have Terraform code that creates an Azure AI Search service, disables public network...
View Articlehow does a SpringBoot App itself ask for some of the static content it serves?
I have a SpringBoot App which serves some static content.Let's say I run it on port 8080I can see for example the file index.html if I go to http://localhost:8080/index.htmlI can see for example the...
View ArticleSend email using smartlead api [closed]
How to send email reply with attachment in airtable using javascript and smartlead API.
View ArticleWix REST API: Create a draft post using html directly in content
When using the WIX Rest API to create a draft post I am sending the following in the request:post_params = { draftPost : { memberId: member_id, title: 'My New Post', richContent: { nodes: [{ type:...
View ArticleAn established connection was aborted by the software in your host machine...
Below is a stacktrace I get when my rest service tries to fetch a large data set (database and tomcat are on my local machine, so everything is local). It works on smaller ones, but in some cases user...
View ArticleInvoke-WebRequest, POST with parameters
I'm attempting to POST to a uri, and send the parameter username=meInvoke-WebRequest -Uri http://example.com/foobar -Method POSTHow do I pass the parameters using the method POST?
View ArticleAPI handler unable to access middleware's context value in Golang
I am trying to append value of my ID to context in my auth middleware, which verifies user and pass it to my API handler.I want to verify JWT in middleware and pass the id to handler for further use.I...
View ArticleHow to delete data from database by using React js and REST API
I am learning REST API. I am using the react app for front end and backend for Node js and express server. For API I am using REST API. I am using MongoDB for the database. I successfully display all...
View ArticleAlways getting 400 - Bad request when posting data in a REST/JAX-RS
Person.java@XmlRootElementpublic class Person { private int id; private String fname; private String lname; // getter and setter}REST POST service@POST @Consumes({MediaType.APPLICATION_JSON}) public...
View ArticleHow to recover deleted API from AWS API Gateway?
I accidentally deleted one of REST API from API Gateway. Is there a way to restore it by myself or AWS support can help it?If I have to recreate the API, is there a way to keep the same API ID, so that...
View ArticleUse a custom logger, with go echo framework
i am trying to apply a format to my loggin, with request specific details in the format. EX: when i log "Test log" I should expected to be logged like:2024-06-22T19:36:48+01:00 INFO...
View ArticleApache camel SSL connection to restful service
I am busy with a project where I have to do a GET on an exposed rest service using specific certificates. I am using the apache camel framework with the https4 component. I created a keystore and...
View ArticleShould pass and get id from params or should get from JWT token?
When modeling a resource in REST way. We use hierarchical pattern.I will model my User resource at /users and profile of a user at /users/:id/profileAlso, a user must be authenticated using a token to...
View ArticleCannot map JSON to List in Dart in Flutter project (NoSuchMethodError: The...
I am working with a Flutter project where I am trying to learn simple http method to work with API where I can make a call and represent the data in a listview. The problem I am facing has to do with...
View ArticleTrying to call rest APIs, but get http request exception
I'm trying to create in Xamarin, with some restful API calls. I have already tested the API in swagger and after authorizing I get a success 200 response. However when I moved to my Xamarin project it...
View ArticleHow to fix 404 Not Found when sending GET/POST requests to express server via...
I am trying to create an Angular app that sends GET & POST requests to an express server using NodeJS.When I serve the app, GET & POST requests are meant to be sent to my local server, but I'm...
View ArticleRESTful API accepting multiple POSTS as a batch
I'm building a RESTful API to create a new customer POST /customers. This works well for creating customers on a per transaction basis. However a new scenario has come to light whereby the recent...
View ArticleProblems creating simple rest ws with Tomcat 10, eclipse, jakarta. Error: No...
I am trying to create a simple REST ws using Tomcat 10, jakarta and java 17 in Eclipse. When I do it according to the documentation, I get an error "No servlet class has been specified for servlet...
View Article