| 1 |
# HTTP Storage |
| 2 |
|
| 3 |
## Fetch |
| 4 |
|
| 5 |
### Request |
| 6 |
|
| 7 |
Endpoint: `GET <BaseURL>/<domain>` |
| 8 |
|
| 9 |
### Response |
| 10 |
|
| 11 |
Response status code 200. |
| 12 |
|
| 13 |
Response body (account): |
| 14 |
|
| 15 |
```json |
| 16 |
{ |
| 17 |
"fulldomain": "foo.example.com", |
| 18 |
"subdomain": "foo", |
| 19 |
"username": "user", |
| 20 |
"password": "secret", |
| 21 |
"server_url": "https://example.com" |
| 22 |
} |
| 23 |
``` |
| 24 |
|
| 25 |
## Fetch All |
| 26 |
|
| 27 |
### Request |
| 28 |
|
| 29 |
Endpoint: `GET <BaseURL>` |
| 30 |
|
| 31 |
### Response |
| 32 |
|
| 33 |
Response status code 200. |
| 34 |
|
| 35 |
Response body (domain/account mapping): |
| 36 |
|
| 37 |
```json |
| 38 |
{ |
| 39 |
"foo.example.com": { |
| 40 |
"fulldomain": "foo.example.com", |
| 41 |
"subdomain": "foo", |
| 42 |
"username": "user", |
| 43 |
"password": "secret", |
| 44 |
"server_url": "https://example.com" |
| 45 |
}, |
| 46 |
"bar.example.com": { |
| 47 |
"fulldomain": "bar.example.com", |
| 48 |
"subdomain": "bar", |
| 49 |
"username": "user", |
| 50 |
"password": "secret", |
| 51 |
"server_url": "https://example.com" |
| 52 |
} |
| 53 |
} |
| 54 |
``` |
| 55 |
|
| 56 |
## Put |
| 57 |
|
| 58 |
### Request |
| 59 |
|
| 60 |
Endpoint: `POST <BaseURL>/<domain>` |
| 61 |
|
| 62 |
### Response |
| 63 |
|
| 64 |
Response status code: |
| 65 |
- 200: the process will be stopped to allow the user to create the CNAME. |
| 66 |
- 201: the process will continue without error (the CNAME should be created by the server) |
| 67 |
|
| 68 |
No expected body. |
| 69 |
|
| 70 |
## Save |
| 71 |
|
| 72 |
No dedicated endpoint. |