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/10/03 18:07] – 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 209: | Line 207: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | **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.1570126075.txt.gz · Last modified: by brett.zamora