Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3619 articles
Browse latest View live
↧

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 Article


Python 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 Article


Stop 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 Article

Fabric 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 Article

How 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 Article


Apache 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 Article

run 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 Article

JUnit 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 Article


Getting 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 Article


unable 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 Article

Delphi/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 Article

Image may be NSFW.
Clik here to view.

Spring 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 Article

org.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 Article


Firebase : 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 Article

Postman 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 Article


Getting 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 Article

ADO - 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 Article


An 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 Article

Image may be NSFW.
Clik here to view.

NGINX 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 Article

Posting 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
Browsing all 3619 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>