Category "rest"

How to mock Spring WebFlux WebClient?

We wrote a small Spring Boot REST application, which performs a REST request on another REST endpoint. @RequestMapping("/api/v1") @SpringBootApplication @RestC

Hangfire Not Getting Configurations when I try to run Test Case for the method containing hangfire activation .net Core REST Web API

public async Task<IActionResult> SendOrders() { try { RecurringJob.AddOrUpdate("powerfuljob", () => _lab.SendOrders("

Data changes during fetch on a service on IIS

I am facing quite an interesting error. I have services hosted on IIS, on a server which is an application server. I have two services in focus. 1 - One is a pu

Django REST: Files\Images Uploading

Im want to upload an image using Vue.js and Django-rest. And have few problems with it. Im trying to use put request (as in docs) and FileUploadParser for it,

deploy spring boot rest application on wildfly10

I have a spring boot rest api which is developed on Java 1.8 and deployed on Wildfly 15. when I try to deploy it on wildfly 10 errors are reported and deploymen

deploy spring boot rest application on wildfly10

I have a spring boot rest api which is developed on Java 1.8 and deployed on Wildfly 15. when I try to deploy it on wildfly 10 errors are reported and deploymen

How to get relationship data with spring boot rest api?

I'm building a REST API with Spring Boot to retrieve boat information. I'm using Spring Data Rest and Spring Data JPA. When I get the data from the API, I don't

Query parameter with http PUT method - REST API

I am passing request object and path variables in my http PUT method to update a record. Is it ok to pass additional data (such as timestamp) as query parameter

Return id of Many-To-One relation in Java Spring rest api

I have 2 models: Student and Teacher. Teacher has One-To-Many relation with Student, Student has Many-To-One with teacher. I want to build API what gonna have i

Retrofit2 post request is successful but I'm not able to retrieve token from response body

So I'm trying to making a login(post) request to an API (https://reqres.in/api/login) with retrofit 2. The connection was successful as the response code is 200

JSONObject always returns "empty": false

There is a Spring Rest Controller : @RestController @RequestMapping("secanalytique") public class SectionAnalytiqueController { @GetMapping(value = "/sect

Vendor Machine API's Postman Collection Issue

I am trying to create a postman collection for a Vendor machine API but when I try to send a login request localhost:3000/auth/login I get connect ECONNREFUSED

RestSharp body always empty

I need to call a Post service with RestSharp var client = new RestClient(url); var request = new RestRequest(url,Method.POST); request.AddHeader("Content-t

How to get image in response with postman

I have an endpoint to get the image i uploaded earlier, it works but not well I don't know if i can get the image in response my controller endpoint: @PreAuth

AWS SNS API4 authentication fails

I'm stuck around the production of the signature to perform an AWS SNS post, to be honest, I'm going for my 4th day of searching and trying:/ I found this AWS w

Spring post method "Required request body is missing"

@PostMapping(path="/login") public ResponseEntity<User> loginUser(@RequestBody Map<String, String> userData) throws Exception { return ResponseE

Spring Boot : Token authentication(bearer) in request headers in rest api when token also comes from calling another api

In my spring boot Application i have a scheduler which calls an API to generate token which expires in 15 min. Time of scheduler is also 15 min. please find bel

C# Service HttpClient reponse null

I have gone through all the possible posts and I have not found any solution that works for me (There is no more to see the mess in imports), please help. :( I

Coinbase API returns Cloudflare captcha check and fails to execute [closed]

After a year of my server working perfectly fine, since last week, I am no longer able to successfully hit the Coinbase API, even though no co

API resolved without sending a response in Nextjs

I have to make same changes in my nextjs project because my enpoint API doesn't support many calls and I would like to make a refresh from the original data eve