Category "rest"

vCenter REST API authentication

I am following this VMware documentation. What headers are to be provided to authenticate to vCenter Server while using REST API?

Keycloak Rest API get all available resources

i am trying to list all resources client have access to. I am unable to figure out how to to make the call. I have used this curl curl -X GET \ http://$URL/au

REST API How to generate a 500 Error status when using a Postman Request

I need to test the 500 'internal server error' but Need to test this new API with calls from postman. Does anyone know how to make a call that will trigger it?

PHPUnit - REST API testing

I have REST API written in php, i want to test it with phpunit. I wrote test like this, it works but response body was empty. I tested it with fiddler, it se

RESTful - What should a DELETE response body contain

Let's say I have an API where you can get users: GET /RESTAPI/user/ And you can delete users by: DELETE /RESTAPI/user/123 What is the RESTful convention on wh

I cannot get my JavaScript REST API to return data

I know there are many similar questions about this issue and most of them are already answered, but I am a beginner on this. This code is a code from a YouTube

400 Bad Request - while POSTing JSON data to RESTful controller implemented with Spring MVC

I am trying to POST some JSON data to RESTful spring controller. But getting "400 Bad Request" as response status. Giving below code from the key configuration

Sending the bearer token with axios

In my react app i am using axios to perform the REST api requests. But it's unable to send the Authorization header with the request. Here is my code: tokenP

FastAPI - How to upload file via form

I am making a REST API that requires uploading files. For testing purposes, I am uploading files through postman, but I don't know how to access the files on se

Newbie- API to get Ethereum's latest blocks

I am looking for an ethereum api to get the N latest blocks. I will use javascript (react) to make the requests. I have looked into https://etherscan.io/apis#b

Blueprint and factory pattern work together?

I am working on a restful service using flask-restful, and I want to leverage both factory pattern and blueprint in my project. in app/__init__.py I have a crea

Developing a Spring REST service with OData interface

I'm developing a RESTful service using the spring framework. This service has a few different controllers. Some of the controllers allow the user to query data

split json response in Qt

I have created a Restful Web Service in ASP.NET and would like to use it in my own Qt project. I can post to and get the data from my Web Service in the SoapUi

How do I set up a Google Cloud Function with Authentication?

Disclaimer: I'm completely new to Google Cloud Functions and serverless functions in general. I've set up a basic Google Cloud Function, set it to HTTPS trigger

How do I use Django piston to return a response in text/plain?

I want to NOT serialize anything. I just want to return what is equivalent to HttpResponse(blah)

In Hexagonal architecture, can a service rely on another service, or is that tight coupling?

I am creating a banking application. Currently, there is one primary service, the transaction service. This service allows getting transactions by id, and creat

Symfony post request body parameters?

I'm sending POST request by postman with header application/json and the body: { "name": "user" } And when I try to get this parameter from the request obj

Posting a File and Associated Data to a RESTful WebService preferably as JSON

In an application I am developing RESTful API and we want the client to send data as JSON. Part of this application requires the client to upload a file (usuall

How to call a REST web service API from JavaScript?

I have an HTML page with a button on it. When I click on that button, I need to call a REST Web Service API. I tried searching online everywhere. No clue whatso

How to call a REST web service API from JavaScript?

I have an HTML page with a button on it. When I click on that button, I need to call a REST Web Service API. I tried searching online everywhere. No clue whatso