Skip to content

Instantly share code, notes, and snippets.

@dsdenes
Created January 24, 2017 11:52
Show Gist options
  • Save dsdenes/eb62f0105883960a7f98e9eb215ce3e3 to your computer and use it in GitHub Desktop.
Save dsdenes/eb62f0105883960a7f98e9eb215ce3e3 to your computer and use it in GitHub Desktop.
POST /jobs
{
"images": [
"https://somewhere/ImageName1.jpg",
"https://somewhere/ImageName2.jpg",
"https://somewhere/ImageName3.jpg",
"https://somewhere/ImageName4.jpg",
"https://somewhere/ImageName5.jpg",
"https://somewhere/ImageName6.jpg",
"https://somewhere/ImageName7.jpg"
]
}
GET /jobs/{id}/status
pending|processing|finished|error
GET /jobs/{id}/results
{
'ImageName1.jpg': {
tags: ['tag1', 'tag2', 'tag3'],
error: null
},
'ImageName2.jpg': {
tags: [],
error: {
message: 'Error message'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment