diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-30 17:34:22 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-30 17:34:22 -0700 |
commit | f4064c19ec140987e15c64e80a3bf0c70025b31b (patch) | |
tree | e89548d5d5f350f65e9c294a34c71a2225a14099 /rust/fatcat-api/api.yaml | |
parent | 3ed7db573438d3620d295813a81237acb91155cb (diff) | |
download | fatcat-f4064c19ec140987e15c64e80a3bf0c70025b31b.tar.gz fatcat-f4064c19ec140987e15c64e80a3bf0c70025b31b.zip |
history for container entities
Diffstat (limited to 'rust/fatcat-api/api.yaml')
-rw-r--r-- | rust/fatcat-api/api.yaml | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/rust/fatcat-api/api.yaml b/rust/fatcat-api/api.yaml index 1796f32f..bdcb3ca8 100644 --- a/rust/fatcat-api/api.yaml +++ b/rust/fatcat-api/api.yaml @@ -181,21 +181,19 @@ definitions: <<: *ENTITYPROPS work_type: type: string - entity_history: - type: array - items: - type: object - required: - - edit - - editgroup - - changelog - properties: - edit: - $ref: "#/definitions/entity_edit" - editgroup: - $ref: "#/definitions/editgroup" - changelog: - $ref: "#/definitions/changelog_entry" + entity_history_entry: + type: object + required: + - edit + - editgroup + - changelog + properties: + edit: + $ref: "#/definitions/entity_edit" + editgroup: + $ref: "#/definitions/editgroup" + changelog: + $ref: "#/definitions/changelog_entry" entity_edit: type: object required: @@ -394,6 +392,27 @@ paths: schema: $ref: "#/definitions/container_entity" <<: *ENTITYRESPONSES + /container/{id}/history: + parameters: + - name: id + in: path + type: string + required: true + - name: limit + in: query + type: integer + format: int64 + required: false + get: + operationId: "get_container_history" + responses: + 200: + description: Found Entity History + schema: + type: array + items: + $ref: "#/definitions/entity_history_entry" + <<: *ENTITYRESPONSES /container/lookup: get: operationId: "lookup_container" |