-
Notifications
You must be signed in to change notification settings - Fork 3
Api and Handler overhaul #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
128 commits
Select commit
Hold shift + click to select a range
abbbe32
Add ideas for json api format examples
BLuedtke e86dfea
add json builder and first try with monitor route
BLuedtke 82d004e
add missing free
BLuedtke 8c052c4
more json conversion work
BLuedtke 150004a
adjust json format for route experiment
BLuedtke b19368b
changed get route info to json version
BLuedtke 3f2c731
more json api
BLuedtke c8d1e19
json api for current monitor endpoints
BLuedtke 563d97f
fixes after testing and size pre-alloc debug
BLuedtke 8957d50
debug adjustment
BLuedtke 5fc5b52
fix train state json bug and adjust size estimates
BLuedtke 940eda5
fixed debug print format
BLuedtke 1021e23
fix block list linebreak
BLuedtke c376353
updated size estimates in debug print
BLuedtke 417d193
updated size estimates
BLuedtke da06e04
Merge branch 'master' into json-experiments
BLuedtke e88a036
move api format folder
BLuedtke d201741
adjust to new logging scheme
BLuedtke 48e2e09
moved api-doc around and got rid of old basic/advanced differentiation
BLuedtke c18bb41
wip api improvement
BLuedtke d099cee
train-states monitor endpoint
BLuedtke 7bfdb46
registered monitor endpoint and converted driver to JSON answers
BLuedtke 5c4c54b
start with prepared python client based on JSON answer format
BLuedtke 3ba70fe
admin json doc and refactor driver json doc
BLuedtke fe55753
more json api conversion
BLuedtke 93755e9
remove unused code, add some comments, optimize some details
BLuedtke bd762c4
major admin, controller, driver handler overhaul regarding handler fu…
BLuedtke 1b2ca2b
Added readme to json schema doc
BLuedtke 8faef0a
fix route conflict array element setting
BLuedtke 985d675
Merge local branch 'cleanup-maintenance' into api-and-handler-overhaul
BLuedtke 0f86131
const adjustments; handler_monitor adapted to new utils
BLuedtke d3d8ac4
adjust naming and static-ness
BLuedtke 7b67025
more init, static, const; prep upload for improvement
BLuedtke cb274c0
handler upload reply overhaul
BLuedtke a161f0c
small check added in upload
BLuedtke 8826874
moved doc
BLuedtke f38f06b
moved get engines and interlockers endpoints and refactored duplicate…
BLuedtke f9d4b39
handler monitor small improvements
BLuedtke 92b547d
onion type alias for shorter signatures
BLuedtke 0d6724f
json schema definition for api WIP
BLuedtke 2d6b134
more work on api json schema definitions
BLuedtke 04fc23c
More json schema adjustments for monitor
BLuedtke c67abc7
Added missing schema and added doxygen-style doc to monitor json gen …
BLuedtke 10042a2
json helpers formatting and documentation
BLuedtke f8b7275
more documentation
BLuedtke 0da1ec5
admin handler improv (details, doc/comments), comutils name in licens…
BLuedtke fa14c41
handler controller improvements and small dyn cont interface doc addi…
BLuedtke ce72668
wip bahn util and interlocking impl improvements
BLuedtke b9989d7
bahn data util improvements + consequences to other files
BLuedtke d52bebc
additional bahn data util fixes
BLuedtke dd5b010
improvements and fixes for interlocking impl
BLuedtke 4987d15
change interlocking impl file indentation to tabs
BLuedtke df7588d
adjust dyn containers interface, formatting, improved naming, type fi…
BLuedtke 6699947
formatting improved for dynlib.c
BLuedtke 03f212a
formatting, trailing whitespace on non-empty lines + intentional tra…
BLuedtke ef8dee2
local functions -> static
BLuedtke 1ad4955
various improvements to logging, comments, wrong lock, and changed si…
BLuedtke 8a6a1e5
checked all syslog calls -> fixed syslog related problems
BLuedtke 77febd1
somewhat consistent log and reply formatting for missing or invalid p…
BLuedtke 9830d06
send before logging in upload handler
BLuedtke b1fbaca
drive-route checks if grab-id is still valid before stopping/slowing …
BLuedtke 236cac1
adjusted naming in handler_driver
BLuedtke 3c59aec
consistent log formatting for grab-id and session-id
BLuedtke 7ee42c8
slight api and path adjustments
BLuedtke 74ce724
monitor api small path change and placeholder for missing endpoint
BLuedtke e113085
try to refactor missing param validation, admin only for now
BLuedtke f4a4a7d
roll out missing param handling for all - monitor endpoints with para…
BLuedtke fc2f000
start work on adding signal-details endpoint
BLuedtke 01f0f34
Merge branch 'master' into api-and-handler-overhaul
BLuedtke 2b256ee
minor admin client adjustment
BLuedtke 7acc33b
openapi doc of admin endpoints
BLuedtke d69faeb
controller endpoints in OpenAPI
BLuedtke 70413be
OpenAPI schemas prep for driver, driver minor adjustment when sending…
BLuedtke fd9561e
minor driver and controller improvements for better feedback, simpler…
BLuedtke 4f0ce82
driver endpoints in OpenAPI and some doc refinements in other api parts
BLuedtke 139b263
preparation for adding monitor to OpenAPI spec
BLuedtke 429cc73
Add monitor endpoints OpenAPI Doc/Spec + shortcut to check if train i…
BLuedtke f759ead
engine upload endpoint added to OpenAPI; adjusted handler and client …
BLuedtke 24ac4af
OpenAPI for rest of upload endpoints
BLuedtke 90e8aef
OpenAPI Fixes based on IBM Validation Tool
BLuedtke 6c861df
reduce duplicate schema in OpenAPI
BLuedtke 1b40a06
python client for json api up to driver endpoints, and fixed incorrec…
BLuedtke 45f2fa2
python client for json api, done for all endpoints, reduced duplicate…
BLuedtke f8beddc
small json client fixes
BLuedtke 54f8a02
client fixes from testing
BLuedtke 5210166
jsonify api script_game
9dac8e4
set-point or signal now replies with 404 if point/signal unknown
BLuedtke 0713132
better log for 404 case of set-point/signal
BLuedtke 954f619
adjusted logging to improve debugging invalid handler inputs
BLuedtke 9cf12ce
sync
78cf4be
added script changes for api overhaul (main client script.js) [WIP]
968fb84
adjusted gitignore: exclude .env folders
133973c
removed unwanted env folder from tablegenerator path
b16e95f
finished api rewrite for json api based of openapi docs
97bb7bc
fix wrong reply schema ref in openApi spec for upload interlocker
BLuedtke 9a00adc
fixed error messaging handling and minor problems in script.js
3e4c799
fix(script.js): removed the famous python function .format
c249774
debugging script to not always go to error handler
uniba-swt-management ee04943
Added recompiled dynLibs for Raspberry Pi 5
uniba-swt-management da7d9a3
WIP fix script js
BLuedtke 6f907ec
try to fix grab and release
uniba-swt-management 5dd81c4
script JS rework
BLuedtke 5cbbeb7
helper for setting info/error alerts
BLuedtke e06f769
Script JS Refactoring
BLuedtke b41210a
initial fixes regarding script and compile paths
uniba-swt-management 77cd700
major fix for return types in script JS
BLuedtke cff3831
game client rework (api usage, formatting, feedback, structuring)
BLuedtke f81d162
restructured doc api formats folder, removed old json format files
BLuedtke efdbfe8
renamed doc api formats folder to api
BLuedtke cf19c03
python client improvements
BLuedtke d75ed00
renamed json python client to OG client name
BLuedtke 088e25f
rename py client and adjust readme and test script
BLuedtke b65006a
fix missing true/false swap
BLuedtke b28cb40
js clients make variable kind clear
BLuedtke 03030f2
minor javascript client adjustments
BLuedtke 93b35f0
reduce logging in parsers (less log pollution)
BLuedtke 8c3e127
add missing sec-ack config for slave board of SWTbahn-Full (tested on…
BLuedtke 34a7a25
add more detailed startup err reason feedback
BLuedtke 5ccb3e2
cleanup unused and old todo
BLuedtke 9a14439
remove todo (tested, works)
BLuedtke 126a6f0
add custom codes for code 500 in two cases
BLuedtke b37e252
adjusted time printing for drive route to match libbidib
BLuedtke a652639
removed newlines in syslog_server invocations
BLuedtke 687c182
mini formatting fixes
BLuedtke 7df69ff
revert python client renaming with .py
BLuedtke 14f46dd
drive-route wait before release
BLuedtke 6c86f2b
Addressing PR change requests
BLuedtke f174395
revert change to startup endpoint in python client
BLuedtke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,4 +14,5 @@ server/src/.vscode/ | |
| **/.vscode | ||
| **/.cache | ||
| **.project | ||
| **jsconfig.json | ||
| **jsconfig.json | ||
| **/.env | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.