-
Notifications
You must be signed in to change notification settings - Fork 0
API
Ted Benson edited this page Jan 11, 2017
·
2 revisions
To auth an request, include the header
Authorization: Bearer tokenvalue
POST https://cloudstitch.com/api/1/login
Headers:
-
User-Agent=cloudstitch-cliBody: - username|email and password
On succsess
{ "token": "XXX" }On failure
{ "error": true, "message": "Some reason here." }The message will be appropriate for displaying to user.
POST https://cloudstitch.com/api/1/signup
Headers:
-
User-Agent=cloudstitch-cliBody: - username, email, and password
On succsess
{ "token": "XXX" }On failure
{ "error": true, "message": "Some reason here." }The message will be appropriate for displaying to user.
GET /api/1/user/app/files (TODO(eob) -- this already exists..)
TODO(eob) make sure md5s in there.
POST /api/1/user/app/files
Body Zip file. Only files with different md5s are necessary to perform an update to save time.
Response
{
.. a token that represents the job status ..
}
GET /api/1/user/app/job-status
Url params:
UserApp (ted/app)
JobName
Response:
{
"updateTime": 111,
"status": success | failed | progress | waiting,
"message": "hi there"
}
GET /api/1/user/app/files
Response Returns a zip file of everything.