Vridlo/api/vridlo.assemblers

From ALT Linux Wiki
< Vridlo/api
Revision as of 09:22, 22 August 2019 by Majioa (talk | contribs) (Created page with "==== vridlo.assembler.show ==== Returns a list of assemblers, which are presented in the system. Do not poll this method more than once an hour. Added into API v1.0. ===== P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

vridlo.assembler.show

Returns a list of assemblers, which are presented in the system. Do not poll this method more than once an hour. Added into API v1.0.

Path

GET: /v1/assemblers/<slug>

Authentication

This method requires NO authentication.

Arguments
  • per_page (Optional)
Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50.
  • page (Optional)
The page of results to return. If this argument is omitted, it defaults to 1.
Example Response
Good response:
[
 {
  "slug": "ca"
  "name": "Core Assembler"
  "host": "assembler.altlinux.org"
  "source_path_count": 3
  "export_path_base": "/export/path/to"
 }
]
Error response:
[
 {
  "slug": "ca",
  "error_code": 3
 }
]
Error Codes
  • 423.3 (SSL is required)
SSL is required to access the Vridlo API.
  • 404 (Not Found)
The record with provided slug is not found.
  • 500 (Internal Server Error)
The Internal Server Error has occurred.