guides:ws_payloads
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:ws_payloads [2019/09/23 15:32] – brett.zamora | guides:ws_payloads [2020/08/23 15:46] (current) – brett.zamora | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Web Service: Payloads | + | ==== payloads:get_repository_names |
+ | The payloads web service is a REST structured service that derives its functionality based on syntax used when calling the web service. In it's simplest form, with no parameters supplied, the payload service returns a list of supported repository names and a count of the number of payloads in each repository. | ||
- | The Payloads web service is a general purpose web service that derives its functionality based on syntax used when calling the web service. The following paragraphs outline the various functions and syntax supported by the Payloads web service. Each function is shown in a green font. | + | ---- |
- | **Function:** <color # | + | **Purpose:** <color #22b14c>**Get Supported Repository Names With Payload Counts.**</ |
Line 81: | Line 82: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | **FUNCTION: | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Method ^ URL ^ | ||
+ | | GET | < | ||
+ | |||
+ | **Variables: | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Variable ^ Usage ^ Description ^ | ||
+ | | {repository} | Required | The name of the repository | | ||
+ | |||
+ | |||
+ | **Arguments: | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Variable ^ Usage ^ Description ^ | ||
+ | | {filter} | Optional | Collection of {column_name}: | ||
+ | | {page_size} | Optional | A positive integer representing the number of items returned for a single page of results. | ||
+ | | {page} | Optional | A positive integer representing the page index of the result set. First index is 0. | | ||
+ | | {order} | Optional | Sort order of the returned data. Format {column_name}: | ||
+ | |||
+ | |||
+ | **Filter Usage:** | ||
+ | |||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Column Name ^ Comparators ^ Allowed Values ^ | ||
+ | | FILE_NAME | Equals, Contains, StartsWith, EndsWith | Any string data. | | ||
+ | | LOCK_STATUS | Equals | Locked, Unlocked, All | | ||
+ | | DATE_CREATED | Equals, Greater, GreaterEqual, | ||
+ | | DATE_MODIFIED | Equals, Greater, GreaterEqual, | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | N/A | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Key ^ Value ^ | ||
+ | | access_token | {soft-token} | | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | N/A | ||
+ | |||
+ | **Notes:** | ||
+ | |||
+ | Any condition that results in an unsuccessful call to the payloads web service will produce a JSON formatted response with a code and message property populated. | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | **Endpoint: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | Status Code: 200 | ||
+ | |||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | **OR** | ||
+ | |||
+ | Status Code: 500 (When an error occurs.) | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **FUNCTION: | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Method ^ URL ^ | ||
+ | | GET | < | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | N/A | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Key ^ Value ^ | ||
+ | | access_token | {soft-token} | | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | N/A | ||
+ | |||
+ | **Notes:** | ||
+ | |||
+ | Any condition that results in an unsuccessful call to the payloads web service will produce a JSON formatted response with a code and message property populated. | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | **Endpoint: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | <color # | ||
+ | |||
+ | Status Code: 200 | ||
+ | |||
+ | |||
+ | <code json> | ||
+ | [ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | |||
+ | **OR** | ||
+ | |||
+ | Status Code: 500 (When an error occurs.) | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
guides/ws_payloads.1569252729.txt.gz · Last modified: by brett.zamora