sennetconsortium / entity-api

A set of web service calls to return information about SenNet entities
MIT License
0 stars 0 forks source link

SenNet Entity API

A set of standard RESTful web service that provides CRUD operations into our entity metadata store. A description of the API calls is found here: Entities API.

Entities schema yaml

The yaml file src/resources/hubmap-entities.yaml contains all the attributes of each entity type and generated metadata information of attributes via trigger methods. This file is being used to validate the user input and also as a way of standarding all the details of entities.

Docker build for local/DEV development

There are a few configurable environment variables to keep in mind:

cd docker
./docker-development.sh [check|config|build|start|stop|down]

Docker build for deployment on PROD

cd docker
./docker-deployment.sh [start|stop|down]

Development process

To release via TEST infrastructure

To work on features in the development environment before ready for testing and releasing

Updating API Documentation

The documentation for the API calls is hosted on SmartAPI. Modifying the entity-api-spec.yaml file and committing the changes to github should update the API shown on SmartAPI. SmartAPI allows users to register API documents. The documentation is associated with this github account: api-developers@sennetconsortium.org.

Testing

Install the development dependencies using pip install -r src/requirements.dev.txt.

Execute pytest in the root directory to run all unit tests. pytest -W ignore::DeprecationWarning will execute all unit tests without deprecation warnings.