Documentation

This commit is contained in:
Fabio Sinibaldi 2022-07-07 18:40:54 +02:00
parent c5bd6f29d3
commit 74e2795161
1 changed files with 18 additions and 7 deletions

View File

@ -37,6 +37,10 @@ The suite comes with a pre-built set of implemented lifecycles with their STEPS,
.. figure:: _static/imgs/2phase_lc.png .. figure:: _static/imgs/2phase_lc.png
:alt: 2 - PHASES Lifecycle :alt: 2 - PHASES Lifecycle
TBD : steps phases, involved events
==================== ====================
3 - Phases Lifecycle 3 - Phases Lifecycle
==================== ====================
@ -44,6 +48,8 @@ The suite comes with a pre-built set of implemented lifecycles with their STEPS,
:alt: 3 - PHASES Lifecycle :alt: 3 - PHASES Lifecycle
TBD : steps phases, involved events
***************** *****************
Operation on documents Operation on documents
***************** *****************
@ -51,18 +57,21 @@ Operation on documents
.. warning:: Read and write permissions on *projects* are defined in :doc:`ucd` .. warning:: Read and write permissions on *projects* are defined in :doc:`ucd`
Common operations
*****************
While **projects** lifecycle can vary depending on the configuration declared in its related :doc:`ucd`, following operations are common and available for every **project**. While **projects** lifecycle can vary depending on the configuration declared in its related :doc:`ucd`, following operations are common and available for every **project**.
Checkout the `swagger`_ documentation.
=================
Basic operations
=================
- Create New : The starting operation of every *project*. It expects a JSON metadata document, which will constitute the :ref:`document` section of the **project**. - Create New : The starting operation of every *project*. It expects a JSON metadata document, which will constitute the :ref:`document` section of the **project**.
- Edit : Allows for the replacement of :ref:`document`. - Edit : Allows for the replacement of :ref:`document`.
- Delete : Deletes the specified **project** - Delete : Deletes the specified **project**
- List / get by Id : allows access to projects. - List / get by Id : allows access to projects.
========
Querying Querying
===== ========
Querying allows for the filtered access of subsets of **projects**. Querying allows for the filtered access of subsets of **projects**.
The following options are allowed in query operations The following options are allowed in query operations
@ -73,9 +82,10 @@ The following options are allowed in query operations
- paging : limit and offset - paging : limit and offset
- projection : projects fields selection to return in result - projection : projects fields selection to return in result
====================================
Registering / Unregistering FileSets Registering / Unregistering FileSets
================================== ====================================
:ref:`filesets` are sets of files representing a single entity, which need to be handled together (e.g. a dataset and its index, a file and its crc). :ref:`filesets` are sets of files representing a single entity, which need to be handled together (e.g. a dataset and its index, a file and its crc).
Each :ref:`filesets` is (un)registered at a particular path of the :ref:`document` with requests with the following information : Each :ref:`filesets` is (un)registered at a particular path of the :ref:`document` with requests with the following information :
@ -100,9 +110,10 @@ Each :ref:`filesets` is (un)registered at a particular path of the :ref:`documen
.. warning:: Paths are required to match a single field for fileset registration. .. warning:: Paths are required to match a single field for fileset registration.
===============
Executing STEPS Executing STEPS
=============== ===============
In order to expose a common API while serving varying / customizable possible scenarios, the service expose only a single method for STEP execution. In order to expose a common API while serving varying / customizable possible scenarios, the service expose only a single method for STEP execution.
The method **perform STEP** allows for the execution of the configured STEPs by serving requests with the following information: The method **perform STEP** allows for the execution of the configured STEPs by serving requests with the following information: