Skip to content

OSTrails/proxy-service-authoring-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSTrials Proxy for FAIR Wizard Authoring Tool

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

Start with Docker

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


Environment Variables Reference

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.

API Endpoints

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

Accessing API Documentation

Navigate to http://YOUR_DOMAIN/questionnaire/docs to explore and test the API interactively via Swagger UI.

Submitting a Github and FDP Record

Find an example of a RDF DCAT-based record submission in Github and FDP here via API using /push.

Submitting a FAIRsharing Record

Find an example of a FAIRsharing record submission here via API using /submit.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.3%
  • Shell 13.1%
  • Dockerfile 2.6%