How do I call the currencies endpoints over HTTP?

Table of Contents

This file documents the currencies resource over HTTP, one section per endpoint. Every section exports its own Hurl file into projects/ores.http/scripts/library/. Running a file sends that one request, so a failure names the endpoint it came from.

1. Endpoints

1.1. GET /api/v1/reference-data/currencies

List currencies. It needs a session.

It forwards to refdata.v1.currencies.list.

The request is:

GET /api/v1/reference-data/currencies
GET {{base_url}}/api/v1/reference-data/currencies
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.2. GET /api/v1/reference-data/currencies/__none__

Get one currency. It needs a session.

It forwards to refdata.v1.currencies.get.

The request is:

GET /api/v1/reference-data/currencies/__none__
GET {{base_url}}/api/v1/reference-data/currencies/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.3. POST /api/v1/reference-data/currencies/get-many

Get many currencies. It needs a session.

It forwards to refdata.v1.currencies.get_many.

The request is:

POST /api/v1/reference-data/currencies/get-many
POST {{base_url}}/api/v1/reference-data/currencies/get-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.4. POST /api/v1/reference-data/currencies

Create one currency. It needs a session.

It forwards to refdata.v1.currencies.put.

The request is:

POST /api/v1/reference-data/currencies
POST {{base_url}}/api/v1/reference-data/currencies
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.5. PUT /api/v1/reference-data/currencies

Replace one currency. It needs a session.

It forwards to refdata.v1.currencies.put.

The request is:

PUT /api/v1/reference-data/currencies
PUT {{base_url}}/api/v1/reference-data/currencies
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.6. POST /api/v1/reference-data/currencies/put-many

Write many currencies. It needs a session.

It forwards to refdata.v1.currencies.put_many.

The request is:

POST /api/v1/reference-data/currencies/put-many
POST {{base_url}}/api/v1/reference-data/currencies/put-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.7. DELETE /api/v1/reference-data/currencies/__none__

Delete one currency. It needs a session.

It forwards to refdata.v1.currencies.delete.

The request is:

DELETE /api/v1/reference-data/currencies/__none__
DELETE {{base_url}}/api/v1/reference-data/currencies/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.8. POST /api/v1/reference-data/currencies/delete-many

Delete many currencies. It needs a session.

It forwards to refdata.v1.currencies.delete_many.

The request is:

POST /api/v1/reference-data/currencies/delete-many
POST {{base_url}}/api/v1/reference-data/currencies/delete-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.9. GET /api/v1/reference-data/currencies/__none__/versions

List the recorded versions of one currency. It needs a session.

It forwards to refdata.v1.currencies_versions.list.

The request is:

GET /api/v1/reference-data/currencies/__none__/versions
GET {{base_url}}/api/v1/reference-data/currencies/__none__/versions
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.10. GET /api/v1/reference-data/currencies/__none__/versions/0

Get one recorded version of one currency. It needs a session.

It forwards to refdata.v1.currencies_versions.get.

The request is:

GET /api/v1/reference-data/currencies/__none__/versions/0
GET {{base_url}}/api/v1/reference-data/currencies/__none__/versions/0
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

Emacs 29.3 (Org mode 9.6.15)