Category "rest"

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

can't watch multiple files with json-server

I've read about Fake json-server and I'd like to watch more than 1 file. In the instructions it is listed --watch, -w Watch file(s) but I'm not able to

HTTP response code for POST when resource already exists

I'm building a server that allows clients to store objects. Those objects are fully constructed at client side, complete with object IDs that are permanent for

How to Configure/Access Bitbucket Server REST API via OAuth Client Credentials

I don't understand how to generate the secret that is used for the Bitbucket Server REST API using the client credential grant type. For example: $ curl -X PO

How to extract the list of all repositories in Stash or Bitbucket?

I need to extract the list of all repos under all projects in Bitbucket. Is there a REST API for the same? I couldn't find one. I have both on-premise and clou

Modify WooCommerce REST API product image upload

I have to create and update products via WooCommerce REST API, without image uploads to media library (only the image source is need to be stored, because they

Modify WooCommerce REST API product image upload

I have to create and update products via WooCommerce REST API, without image uploads to media library (only the image source is need to be stored, because they