-
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.
- Loading branch information
1 parent
c01291f
commit 91cb036
Showing
8 changed files
with
50 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. _property_api: | ||
.. _asset_api: | ||
|
||
Asset API | ||
========= | ||
|
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,17 @@ | ||
.. _history_api: | ||
|
||
Asset History API | ||
================= | ||
|
||
An Asset History is a record of all the versions of a particular asset. | ||
|
||
Asset History Retrieval | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. http:get:: /v1/asset/(asset_key) | ||
Get a list of Asset Histories associated to a particular Asset. | ||
|
||
:statuscode 200: Success | ||
|
||
.. include:: _examples/asset/asset_history_get.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,5 @@ | ||
.. http:example:: curl wget httpie python-requests | ||
:response: asset_history_get_response.rst | ||
|
||
GET /v1/asset-history/{key} 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/1.1 200 OK | ||
Location: http://localhost:5635/v1/asset-history/{key} | ||
|
||
[] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
HTTP/1.1 200 OK | ||
Location: http://localhost:5885/v1/asset/{key} | ||
Location: http://localhost:5635/v1/asset/{key} | ||
|
||
new-asset-key |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ API Documentation | |
:caption: Contents: | ||
|
||
Asset_API.rst | ||
Asset_History_API.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
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