-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from AO-StreetArt/thumbnailSupport
#2: Add support for thumbnails and querying asset metadata
- Loading branch information
Showing
9 changed files
with
276 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. _thumbnail_api: | ||
|
||
Thumbnail API | ||
============= | ||
|
||
A Thumbnail is an Asset with asset-type = 'thumbnail'. In general, these are | ||
2D images which can be displayed in a UI for an asset or scene. | ||
|
||
In general, thumbnails are not expected to be updated or versions like other | ||
assets. Because of this, users should delete an old thumbnail and add a new | ||
one, rather than calling the Asset Update API. | ||
|
||
Asset Thumbnail Retrieval | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. http:post:: /v1/asset-thumbnail/{parent} | ||
Get an asset thumbnail by the Id of it's parent asset. | ||
|
||
:statuscode 200: Success | ||
|
||
.. include:: _examples/asset/get_asset_thumbnail.rst | ||
|
||
Scene Thumbnail Retrieval | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. http:post:: /v1/scene-thumbnail/{scene} | ||
Get a scene thumbnail by the Id of it's scene. | ||
|
||
:statuscode 200: Success | ||
|
||
.. include:: _examples/asset/get_scene_thumbnail.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. http:example:: curl wget httpie python-requests | ||
GET /v1/asset?file-type=obj HTTP/1.1 | ||
Host: localhost:5635 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. http:example:: curl wget httpie python-requests | ||
GET /v1/asset-thumbnail/{parent} HTTP/1.1 | ||
Host: localhost:5635 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. http:example:: curl wget httpie python-requests | ||
GET /v1/scene-thumbnail/{scene} HTTP/1.1 | ||
Host: localhost:5635 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.