Merge pull request #755 from hippolyt/patch-1

Appended API example
This commit is contained in:
CameronDiver 2018-11-07 16:37:08 +01:00 committed by GitHub
commit c9b7ebd74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -617,6 +617,16 @@ Response:
}
```
Remotely via the API proxy:
```bash
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <auth token>' \
-d '{"uuid": "<uuid>", "method": "GET"}' \
"https://api.resin.io/supervisor/v2/applications/state"
```
### GET /v2/applications/:appId/state
Added in supervisor version v7.12.0.

View File

@ -30,6 +30,7 @@
},
"devDependencies": {
"@types/bluebird": "^3.5.20",
"@types/dockerode": "2.5.5",
"@types/event-stream": "^3.3.34",
"@types/express": "^4.11.1",
"@types/knex": "^0.14.14",