This service acts as a proxy API to authenticate and submit FAIR assessment components comming from FAIR Wizard authoring tool on behalf of a user, facilitating integration with external tools like:
- FAIRsharing
- OSTrails Github assessment metadata repository
- FAIR Data Point
version: '3'
services:
api:
image: pabloalarconm/proxy-fs:1.2.0
ports:
- "8000:8000"
environment:
- AUTH_URL=https://api.fairsharing.org/users/sign_in
- DATA_URL=https://api.fairsharing.org/fairsharing_records/
- USERNAME=*****
- PASSWORD=*****
- GITHUB_TOKEN=*****Note: Update the environment variables with your FAIRsharing user credentials. Also, you can modify URLs to change from dev to production
| Variable | Description |
|---|---|
| AUTH_URL | FAIRsharing authentication endpoint. |
| DATA_URL | FAIRsharing submission endpoint. |
| USERNAME | Your FAIRsharing username. |
| PASSWORD | Your FAIRsharing password. |
| GITHUB_TOKEN | Your Github access token. |
| Method | Path | Description |
|---|---|---|
| GET | /questionnaire/docs |
Opens interactive API documentation (Swagger UI). |
| POST | /questionnaire/submit |
Submits a FAIRsharing record. |
| POST | /questionnaire/push |
Git push a Github record and FDP test registration with your RDF DCAT-based record |
Navigate to http://YOUR_DOMAIN/questionnaire/docs to explore and test the API interactively via Swagger UI.
Find an example of a RDF DCAT-based record submission in Github and FDP here via API using /push.
Find an example of a FAIRsharing record submission here via API using /submit.