Prejsť na obsah
Accquix Register
Esc
↑↓navigácia↵otvoriť⌘Jnáhľad

Data freshness per source

GET/v1/sources
Autorizácia
AuthorizationBearer token · headerpovinné
Odpovede
200

OK

attributionstring[] | nullpovinné
bootstrappingbooleanpovinné

true until every source is first published

demobooleanpovinné

true on a demo database: fictional subjects, not register data (accquix-register demo)

licencesobjectpovinné
setupPendingbooleanpovinné

true until the operator confirms the objections of this installation; the data endpoints answer 503 reason=setup

sourcesSourceInfo[] | nullpovinné
Zobraziť vlastnosti
Pole typu SourceInfo
diagnosticstring
maxAgeDaysinteger<int64>povinné
publishedAsOfstring

Date the published data was stamped by the agency

skippedItemsinteger<int64>

Items of the published file left out: no identifier at all, or (in the DIČ list) an IČO without a DIČ yet. More than 100 blocks the list

sourcestringpovinné
stalebooleanpovinné
statestringpovinné
Povolené hodnoty:emptybootstrapdailygap_waitreconcileblocked
401

Unauthorized

codestringpovinné

Stable error code: invalid_request, invalid_identifier, unauthorized, forbidden, not_found, rate_limited, fuzzy_disabled, unavailable, internal

detailstring

Explanation specific to this occurrence

errorsErrorDetail[] | null

Validation details

Zobraziť vlastnosti
Pole typu ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

reasonstring

For unavailable: bootstrapping, setup, source_stale, timeout, database, overloaded

statusinteger<int64>povinné

HTTP status code

titlestringpovinné

Short summary of the problem type

typestring

A URI reference for the problem type

500

Internal Server Error

codestringpovinné

Stable error code: invalid_request, invalid_identifier, unauthorized, forbidden, not_found, rate_limited, fuzzy_disabled, unavailable, internal

detailstring

Explanation specific to this occurrence

errorsErrorDetail[] | null

Validation details

Zobraziť vlastnosti
Pole typu ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

reasonstring

For unavailable: bootstrapping, setup, source_stale, timeout, database, overloaded

statusinteger<int64>povinné

HTTP status code

titlestringpovinné

Short summary of the problem type

typestring

A URI reference for the problem type

503

Service Unavailable

codestringpovinné

Stable error code: invalid_request, invalid_identifier, unauthorized, forbidden, not_found, rate_limited, fuzzy_disabled, unavailable, internal

detailstring

Explanation specific to this occurrence

errorsErrorDetail[] | null

Validation details

Zobraziť vlastnosti
Pole typu ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

reasonstring

For unavailable: bootstrapping, setup, source_stale, timeout, database, overloaded

statusinteger<int64>povinné

HTTP status code

titlestringpovinné

Short summary of the problem type

typestring

A URI reference for the problem type

Požiadavka
curl -X GET 'http://localhost:8080/v1/sources' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Odpoveď
{
  "attribution": [
    "string"
  ],
  "bootstrapping": true,
  "demo": true,
  "licences": {
    "property1": "string",
    "property2": "string"
  },
  "setupPending": true,
  "sources": [
    {
      "diagnostic": "string",
      "maxAgeDays": 0,
      "publishedAsOf": "string",
      "skippedItems": 0,
      "source": "string",
      "stale": true,
      "state": "empty"
    }
  ]
}