In spring boot RESTful application, how to prevent logged in user to log in...
I created a simple restful application using springboot. It only has two api, login and signup. After user signs in, it returns a jwt. Here is my configurationprotected void configure(HttpSecurity...
View ArticlePython requests: How to PUT a string in body?
I need to PUT data from a string (no dict) as the body of the call to a REST API.When I callr = requests.put(url, data = string)then I can see in r.request.body after this call that it is None. Also,...
View ArticleStop processing Flask route if request aborted
I have a flask REST endpoint that does some cpu-intensive image processing and takes a few seconds to return. Often, this endpoint gets called, then aborted by the client. In these situations I would...
View ArticleFabric Capacity metrics data REST API or alternate ways to pull it
I have quite a few activities going on on Power BI.I have admin access and want to be able to pull in information like CPU usage, usage spike with respect to time etc.I came across an inbuilt app that...
View ArticleHow to handle paging of child collections in REST
I have an entity where there are several child collections. Some of these collections can in some cases contain many items (> 100). In most cases however, there are about 1-10, which is fine.When I...
View ArticleApache HttpComponents URIBuilder rest with multivalue params
I am trying to send a GET request to an endpoint similar to this: http://{hostname}api/search/artifact?name=junit&repos=snapshot,deploy,releaseI have a parameter (repos) with comma separated...
View Articlerun jasper report using rest request in C# asp.net
I have been trying for days to get jasper reports integrated with my .net website. I have tried several ways including the soap and rest service as well as a custom library suggested in another...
View ArticleJUnit test error: java.lang.AssertionError: No value at JSON path "$.id" for...
So I am writing a Junit for a simple Post method controller. and I wrote the following Junit and it is throwing an error:I have the test here,This is my Jnit code written: Does anything look...
View ArticleGetting an UNAUTHENTICATED error when using my token on a Firestore REST API...
I am developing a Kotlin Multiplatform / Compose Multiplatform app for Android and Desktop.I want to store data on a Cloud Firestore database and on Cloud Storage.For my requests, I use Ktor.I first...
View Articleunable to add member to channel in twilio ip messaging
i created a channel using rest api in twilio,next i am trying to add member to it but i was failed.here is my code require('Services/Twilio.php');// Find your Account Sid and Token at...
View ArticleDelphi/Android application error : "Unsupported Media Type"
I made a multi-platform applet with Delphi 11.3. I'm using the TNetHTTPClient component to POST an XML formatted text to a REST API. Running it in Win32 mode works fine. Running it in Android mode...
View ArticleSpring Rest Controller with Byte Array file
I am trying to send a byte array of a file content from angular to the rest api. But I am getting Http 403 forbidden. I don't have any security enabled. I am not sure what I am doing wrong. I tried...
View Articleorg.springframework.http.converter.HttpMessageConversionException: Type...
I try return object with Resource and simple Object, but get error:org.springframework.http.converter.HttpMessageConversionException:Type definition error: [simple type,...
View ArticleFirebase : Send notification with REST API
Is it possible to send push notification with REST API on Firebase? I can send notifications with Firebase console but i need to send notifications with REST API.
View ArticlePostman not sending @requestparams to spring application, but it works if i...
I am trying to implement pagination in my spring application,however I am using @requestParams. Howver Postman is unable to send the parameters to my get methods which results in them picking the...
View ArticleGetting an UNAUTHENTICATED error when using my login token on a Firestore...
I am developing a Kotlin Multiplatform / Compose Multiplatform app for Android and Desktop.I want to store data on a Cloud Firestore database and on Cloud Storage.For my requests, I use Ktor.I first...
View ArticleADO - REST - Cannot find a way to get pipeline creator id
I need to know the person who created a pipeline in ADOhttps://dev.azure.com/mycompany/myproject/_apis/pipelines/***?api-version=7.1I get everything but a "createdby" field{"_links": {"self": {"href":...
View ArticleAn error occurred (InvalidToken) when calling the PutObject operation: The...
So I have a DRF project that was deployed to AWS Lambda functions, my static/media files are stored in an S3 bucket and I am using CloudFront as a global CDN.The issue is that in development,...
View ArticleNGINX reverse proxy - Returns 403 on POST request
ISSUE : When a POST request is triggered from Angular hhtp restClient, nginx gateway returns 403On /etc/nginx/sites-available/default : server { listen 443 ssl; server_name peertube-seeker.com; root...
View ArticlePosting a file and JSON data to Spring rest service
I am building a Spring rest service for uploading a file. There is a form that consists of various field and one field for uploading a file. On submitting that form, I am sending a multipart form...
View Article