Skip to content

Repository to host the service version of Research Software FAIRness Checks

License

Notifications You must be signed in to change notification settings

oeg-upm/rsfc-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSFC API Service

A REST API to call RSFC (Research Software FAIRness Checks) via requests.

API endpoints

  • GET /benchmarks/{benchmarkid}
  • GET /metrics/{metricid}
  • GET /tests/{testid}
  • POST /assess/test/{test_identifier}

Requirements

The API was developed using Python 3.12.0

Dependencies are available in the requirements.txt file located in the root of the repository

Install from Github

Simply clone this repository

git clone https://github.com/oeg-upm/rsfc-service.git

Usage

Preferably in a virtual environment and in the root directory of the project, run the following to run the app:

uvicorn app.main:app

The application will try to pull the docker image for RSFC, which is strictly necessary. Said image can be found on DockerHub

After the preparations are done, you can perform requests to the API. Here are some examples:

  • Fetch a benchmark using its id
curl -G "http://localhost:8000/benchmarks?benchmarkid=https://w3id.org/rsfc/benchmark/FAIR4RS" \
  -H "Accept: application/ld+json"

  • Fetch a metric using its id
curl -G "http://localhost:8000/metrics?metricid=https://w3id.org/everse/i/indicators/software_has_license" \
  -H "Accept: application/ld+json"
  • Fetch a test using its id
curl -G "http://localhost:8000/tests?testid=https://w3id.org/rsfc/test/RSFC-01-1" \
  -H "Accept: application/ld+json"

  • Perform an assessment on a repository for a certain test
curl -X POST "http://localhost:8000/assess/test/RSFC-13-1" \
  -H "Content-Type: application/json" \
  -d '{
    "resource_identifier": "https://github.com/oeg-upm/rsfc"
  }'

About

Repository to host the service version of Research Software FAIRness Checks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages