Gamma API

Get a login for the converter image

GET
/api/organizations/{slug}/registry-token

A 12-hour docker login for the gamma-parser image, which the organization's own workers run: docker login <registry> -u AWS with password, then docker pull <image>:<version>. Docker talks to the registry, not to this server. Through an API key, the key needs converter:read. The organization gets the same login back while it has more than an hour left, whoever asks; then a new one. Refused with 503 when this server does not hand the image out.

Who may call it: An owner or security admin of the organization. API keys: yes.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

Response Body

OK.

application/json
  1. response

A short-lived docker login for the gamma-parser image, which the organization's own workers run.

registry*string

Where to docker login: the image's registry host.

image*string

What to docker pull, followed by :<version>.

username*string
password*string

The login's password; shown to nobody else.

expiresAt*string

When the login stops working: 12 hours on.

Formatdate-time
Example Request
curl -X GET 'http://localhost:3000/api/organizations/string/registry-token'
Example Response
{  "registry": "string",  "image": "string",  "username": "AWS",  "password": "string",  "expiresAt": "2019-08-24T14:15:22Z"}