Skip to content

Commit

Permalink
Documentation on the http-based Worker Replication service
Browse files Browse the repository at this point in the history
  • Loading branch information
iagaponenko committed Jan 8, 2025
1 parent 0992a95 commit b5b2f7f
Show file tree
Hide file tree
Showing 5 changed files with 638 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/dev/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. note::

Information in this guide corresponds to the version **40** of the Qserv REST API. Keep in mind
that each implementation of the API has a specific version. The version number will change
if any changes to the implementation or the API that might affect users will be made.
The current document will be kept updated to reflect the latest version of the API.

##############################
The internal REST API of Qserv
##############################

.. toctree::
:maxdepth: 2

introduction
repl-worker
22 changes: 22 additions & 0 deletions doc/dev/api/introduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _qserv-api-introduction:

Introduction
============

The Qserv REST API is a collection of RESTful web services that provide access to various components of the Qserv system.
The API enforces a specific interaction model between the client and the server. The following highlights are worth mentioning:

- All ``POST``, ``PUT`` and ``DELETE`` requests must be accompanied by a JSON payload.
- Responses of all but a few select services are in JSON format. Exceptions are documented in the API documentation.
- Schemas of the JSON requests and payloads are defined in the API documentation.
- The API is versioned. The version number is included in the URL path of the ``GET`` requests, and it's
included into the JSON payload of the ``POST``, ``PUT`` and ``DELETE`` requests.
- All API services are protected by an authentication mechanism. The client must provide a valid
authentication token in the JSON payload of the ``POST``, ``PUT`` and ``DELETE`` requests.
No authentication is required for the ``GET`` requests.

The general information on the structure of the API can be found in the following document:

- :ref:`ingest-general`

The rest of the current document provides detailed information on the individual services that are available in the Qserv API.
Loading

0 comments on commit b5b2f7f

Please sign in to comment.