Category "rest"

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

Flutter fetched Japanese character from server decoded wrong

I am building a mobile app with Flutter. I need to fetch a json file from server which includes Japanese text. A part of the returned json is: { "id": "

Send POST data via raw JSON with Postman

I've got Postman (the one that doesn't open in Chrome) and I'm trying to do a POST request using raw JSON. In the Body tab I have "raw" selected and "JSON (appl

Is it problematic that Spring Data REST exposes entities via REST resources without using DTOs?

In my limited experience, I've been told repeatedly that you should not pass around entities to the front end or via rest, but instead to use a DTO. Doesn't Sp

How to display WordPress Post LIST Rest API By Category? ReactJS

I am new to ReactJs and Need to implement wordpress Rest api, I am trying to figure out post list by category, My code is here. getPostsByCategory = async () =

how to exclude properties of super class when generating open API spec using swagger in java

We have a class which is inherited from third party library class. While generating open API spec using swagger, in schema all the properties of the third part