To access the API and its documentation, authentication on the Data Fabric is mandatory.
It's possible to use :
- basic HTTP authentication providing login credentials
- the url `/login_check` (used by the UI with a classic form). This responds with a cookie creation containing a token that can be used to call the API. For security, this token has a very short life (one minute) but will be automatically renewed when it expires. This will be done via a new cookie creation in the same HTTP response as the result requested from the API.
You will find all the necessary information for the use of this API here : DATAFABRIC_URL/api/doc
For API use, we recommend to use basic HTTP authentication.
Example
To retrieve your platforms list:
curl https://manager.prod.saagie.io/api/v1/platform -u myUser:myPassword
To retrieve your jobs list:
curl https://manager.prod.saagie.io/api/v1/platform/3 -u myUser:myPassword