How do I call the currency_pairs endpoints over HTTP?

Table of Contents

This file documents the currency_pairs 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/currency_pairs

List currency pairs. It needs a session.

It forwards to refdata.v1.currency_pairs.list.

The request is:

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

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

Get one currency pair. It needs a session.

It forwards to refdata.v1.currency_pairs.get.

The request is:

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

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

Get many currency pairs. It needs a session.

It forwards to refdata.v1.currency_pairs.get_many.

The request is:

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

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

Create one currency pair. It needs a session.

It forwards to refdata.v1.currency_pairs.put.

The request is:

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

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

Replace one currency pair. It needs a session.

It forwards to refdata.v1.currency_pairs.put.

The request is:

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

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

Write many currency pairs. It needs a session.

It forwards to refdata.v1.currency_pairs.put_many.

The request is:

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

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

Delete one currency pair. It needs a session.

It forwards to refdata.v1.currency_pairs.delete.

The request is:

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

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

Delete many currency pairs. It needs a session.

It forwards to refdata.v1.currency_pairs.delete_many.

The request is:

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

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

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

It forwards to refdata.v1.currency_pairs_versions.list.

The request is:

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

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

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

It forwards to refdata.v1.currency_pairs_versions.get.

The request is:

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

Emacs 29.3 (Org mode 9.6.15)