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 16:35] – 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 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. | + | |
+ | 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. | ||
---- | ---- | ||
- | **FUNCTION:** <color # | + | **Purpose:** <color #22b14c>**Get Supported Repository Names With Payload Counts.**</ |
Line 89: | Line 87: | ||
- | **FUNCTION: | + | **FUNCTION: |
Line 100: | Line 98: | ||
**Variables: | **Variables: | ||
+ | {{tablelayout? | ||
^ Variable ^ Usage ^ Description ^ | ^ Variable ^ Usage ^ Description ^ | ||
| {repository} | Required | The name of the repository | | | {repository} | Required | The name of the repository | | ||
Line 106: | Line 105: | ||
**Arguments: | **Arguments: | ||
+ | {{tablelayout? | ||
^ Variable ^ Usage ^ Description ^ | ^ Variable ^ Usage ^ Description ^ | ||
| {filter} | Optional | Collection of {column_name}: | | {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:** | ||
- | {filter} - Filter options for the return value list. | ||
- | Type: Optional | + | {{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 | < | ||
Line 187: | Line 285: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | |||
guides/ws_payloads.1569256512.txt.gz · Last modified: by brett.zamora