API, license, tests #3

Merged
johannes merged 18 commits from api into main 2024-07-09 12:43:38 +02:00
Owner
  • Added API to interface the DB
  • Added a free license
  • Added tests to check if the models enforce gtfs compliance (WIP)
- Added API to interface the DB - Added a free license - Added tests to check if the models enforce gtfs compliance (WIP)
johannes added 18 commits 2024-07-09 12:42:36 +02:00
Now able to retrieve model data for any number of models, identified by
their primary keys, represented as JSON, using GET /data?<primary_key>=<value>.
instances.
- Added PUT, PATCH and DELETE to modify data in the database.
- refactored modules
- completed docstrings
- data is now served via api/ and web pages via /
- Ported the bridge that was using a custom GTFS class and Pandas
  Dataframes to a native Django solution for and interface between db
  and csv (see api/io.py)
- Fixed some issues regarding the compliance of the exported csv files
  with the GTFS reference. I.e. now allowing times 24:00:00 <= t >=
  24:59:59
- api/convenience will hold convenience functions for database lookup
  and data grouping
- pt_map/model_test_fields holds the data from the GTFS reference
  relevant to model development
- pt_map/test_data holds example data to be used to test models
- Added cookie banner
- Improved tests and fixed models accordingly
- Code uses AGPL
- Docs use GNU FDL
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
johannes merged commit 77bff96c9d into main 2024-07-09 12:43:38 +02:00
johannes deleted branch api 2024-07-09 12:43:39 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: johannes/transport-accessibility#3
No description provided.