Vridlo/api/vridlo.assemblers: Difference between revisions

From ALT Linux Wiki
Line 22: Line 22:
  [
  [
   {
   {
   "slug": "ca"
   "slug": "ca",
   "name": "Core Assembler"
   "name": "Core Assembler"
   "host": "assembler.altlinux.org"
   "host": "assembler.altlinux.org"
Line 34: Line 34:
  [
  [
   {
   {
  "slug": "ca",
   "error_code": 3
   "error_code": 3
   }
   }

Revision as of 09:38, 22 August 2019

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

This method requires NO arguments.

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:
[
 {
  "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.