API, license, tests #3

Merged
johannes merged 18 commits from api into main 2024-07-09 12:43:38 +02:00

18 Commits

Author SHA256 Message Date
Johannes Randerath
564eb2ff8b
Merge branch 'api' of gitea.randerath.eu:johannes/transport-accessibility into api 2024-07-09 12:40:00 +02:00
Johannes Randerath
ed5559250e
Signing properly 2024-07-09 12:38:15 +02:00
Johannes Randerath
afe500b4fa Signing properly 2024-07-09 04:06:29 +02:00
45e9a7b555 Added Copying to app
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
2024-07-09 04:04:01 +02:00
Johannes Randerath
bdaefe647f Merge branch 'api' of gitea.randerath.eu:johannes/transport-accessibility into api 2024-07-09 03:18:37 +02:00
Johannes Randerath
91253f033a
Added Copying to app
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
2024-07-09 03:17:12 +02:00
Johannes Randerath
15d723ade8 Added Copying to app
- Added Copying to sidebar in the running application
- Added source link to comply with the AGPL
2024-07-09 02:36:07 +02:00
Johannes Randerath
3853d25c1e Added LICENSE
- Code uses AGPL
- Docs use GNU FDL
2024-07-08 22:10:53 +02:00
Johannes Randerath
53ab731787 Cookies and tests
- Added cookie banner
- Improved tests and fixed models accordingly
2024-07-03 01:18:17 +02:00
Johannes Randerath
cf6fcda0ed Started adding tests to tests for the models' integrity with GTFS 2024-06-27 13:01:56 +02:00
Johannes Randerath
7962ec4b6c Added prerequisites to add tests and db convenience
- 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
2024-06-26 15:34:02 +02:00
Johannes Randerath
6472673d0a Deleted unneccessary files 2024-06-24 14:28:49 +02:00
Johannes Randerath
f314bfb396 Got rid of bridge and fixed GTFS compliance
- 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
2024-06-24 14:21:53 +02:00
Johannes Randerath
1494dba808 Fixed and rebuilt sphinx docs 2024-06-21 12:02:35 +02:00
Johannes Randerath
80197208f8 PUT, DELETE and address Changes
- 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 /
2024-06-20 23:25:33 +02:00
Johannes Randerath
9cc39c56ab Added PUT, PATCH and DELETE to create, modify and delete model
instances.
2024-06-20 01:26:53 +02:00
Johannes Randerath
f5b329bc17 API: Retrieve data
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>.
2024-06-19 22:12:20 +02:00
Johannes Randerath
26b08b72dd Added view to get models by pk 2024-06-17 14:26:23 +02:00