How do I call the accounts endpoints over HTTP?

Table of Contents

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

List accounts. It needs a session.

It forwards to iam.v1.accounts.list.

The request is:

GET /api/v1/access/accounts
GET {{base_url}}/api/v1/access/accounts
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.2. GET /api/v1/access/accounts/__none__

Get one account. It needs a session.

It forwards to iam.v1.accounts.get.

The request is:

GET /api/v1/access/accounts/__none__
GET {{base_url}}/api/v1/access/accounts/__none__
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.3. POST /api/v1/access/accounts/get-many

Get many accounts. It needs a session.

It forwards to iam.v1.accounts.get_many.

The request is:

POST /api/v1/access/accounts/get-many
POST {{base_url}}/api/v1/access/accounts/get-many
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.4. GET /api/v1/access/accounts/__none__/versions

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

It forwards to iam.v1.accounts_versions.list.

The request is:

GET /api/v1/access/accounts/__none__/versions
GET {{base_url}}/api/v1/access/accounts/__none__/versions
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

1.5. GET /api/v1/access/accounts/__none__/versions/0

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

It forwards to iam.v1.accounts_versions.get.

The request is:

GET /api/v1/access/accounts/__none__/versions/0
GET {{base_url}}/api/v1/access/accounts/__none__/versions/0
Accept: application/json
Authorization: Bearer {{token}}
HTTP 200

Emacs 29.3 (Org mode 9.6.15)