Skip to content

Commit be466d4

Browse files
authored
Dom doc (#155)
* update README bullet points due to readthedocs parser
1 parent 0dc220c commit be466d4

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

README.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Finally, the sample metadata are registered in a purpose-built database and be r
9696
This allows users to search and retrieve sample metadata through both programmatic and web interfaces while providing stable, persistent
9797
and unique identifiers for each record.
9898

99-
<img src="./docs/source/_static/img/user_story.png" alt="Metadata pipeline for sample exposure and collection" style="max-width:700px; margin:auto; display:block;"/>
99+
<img src="https://raw.githubusercontent.com/precisiontox/ptox-metadata-manager/main/docs/source/_static/img/user_story.png" alt="Metadata pipeline for sample exposure and collection" style="max-width:700px; margin:auto; display:block;"/>
100100

101101
## Getting started
102102
### Requirements:
@@ -187,35 +187,30 @@ It is responsible for the user interface and the communication with the API.
187187

188188
### The backend API
189189
It is hosted in this repository. It contains a [Flask](https://flask.palletsprojects.com/en/2.3.x/) application exposing a REST API and is plugged to a relational
190-
database through [SQLAlchemy](https://www.sqlalchemy.org/).
190+
database through [SQLAlchemy](https://www.sqlalchemy.org/). It is responsible for authentication, all functionalities logic and the persistence of
191+
(meta)-data.
191192

192193
### Development process
193-
It is responsible for authentication, all functionalities logic and the persistence of
194-
(meta)-data. It provides a [Swagger documentation](http://mmapi.precisiontox.org/apidocs/) describing the API usage
195-
and enabling to build and run queries through a web UI. The code is documented using ``docstrings``
196-
and the documentation is available on [readTheDocs](https://pretox-metadata-manager.readthedocs.io/en/latest/?badge=latest).
194+
The API documentation is provided by a [Swagger documentation](http://mmapi.precisiontox.org/apidocs/), letting users query the API
195+
through a web UI. The code is documented using ``docstrings`` and the documentation is available on
196+
[readTheDocs](https://pretox-metadata-manager.readthedocs.io/en/latest/?badge=latest).
197197
The application is entirely unit-tested, typehints are checked with ``mypy``, code quality is surveyed by ``Codacy``
198198
and styles are enforced by ``flake8``, all as part of the continuous integration pipeline.
199199

200200
#### Components
201201
The application source code is contained in the ``ptmd`` directory and divided as such:
202-
- The ``api`` directory contains the flask application exposing the REST API. It includes routes definitions, the
203-
JSON Web Token authentication logic and the validation of user inputs through JSON Schema.
204-
- The ``boot`` directory contains the code responsible for booting the application, like seeding the initial data into
205-
the database.
202+
- The ``api`` directory contains the flask application exposing the REST API. It includes routes definitions, the JSON Web Token authentication logic and the validation of user inputs through JSON Schema.
203+
- The ``boot`` directory contains the code responsible for booting the application, like seeding the initial data into the database.
206204
- The ``const`` directory contains the constants used throughout the application.
207-
- The ``database`` directory contains the database models and complex queries. Interactions with the database is mostly
208-
defined as methods of the model classes.
209-
- The ``lib`` directory contains the code responsible for the business logic, like the interactions with the spreadsheets
210-
and the Google Drive API, sending emails and generating ISA-JSON files.
211-
- The ``resources`` directory contains the assets used by the application, like JSON schemas, swagger yaml files, data
212-
files for organisations and chemicals, etc.
205+
- The ``database`` directory contains the database models and complex queries. Interactions with the database is mostly defined as methods of the model classes.
206+
- The ``lib`` directory contains the code responsible for the business logic, like the interactions with the spreadsheets and the Google Drive API, sending emails and generating ISA-JSON files.
207+
- The ``resources`` directory contains the assets used by the application, like JSON schemas, swagger yaml files, data files for organisations and chemicals, etc.
213208

214209
Tests are contained in the ``tests`` directory and divided mirroring the application exact structure. They require no
215210
data files and no interaction with the database to be executed.
216211

217212
### Database: Entity Relationship Diagram (ERD)
218-
<img src="./docs/source/_static/img/database.png" alt="Database Entity Relationship Diagram (ERD)"/>
213+
<img src="https://raw.githubusercontent.com/precisiontox/ptox-metadata-manager/main/docs/source/_static/img/database.png" alt="Database Entity Relationship Diagram (ERD)"/>
219214

220215
## Development
221216

0 commit comments

Comments
 (0)