-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a few edge cases, add logging to dev/test, write some notes for l…
…ater
- Loading branch information
Showing
4 changed files
with
92 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,3 +1,44 @@ | ||
# route-craft | ||
|
||
WIP experiments in route generation based on PostgreSQL schema. Not ready for any real use. | ||
WIP experiments in route generation based on PostgreSQL schema. Not ready for any real use. | ||
|
||
## Rationale | ||
|
||
## Usage | ||
|
||
### Configuration Options | ||
|
||
### Supported handlers | ||
|
||
- `:insert-one` => `POST /` | ||
- `:get-by-pk` => `GET /:{pk}` | ||
- `:update-by-pk` => `PUT /:{pk}` | ||
- `:delete-by-pk` => `DELETE /:{pk}` | ||
|
||
#### Planned handlers | ||
|
||
- `:get-many` => `GET /` | ||
- `:update-by-query` => `PUT /` | ||
- `:delete-by-query` => `DELETE /` | ||
|
||
#### Rough ideas for handlers | ||
|
||
- `:insert-many` => `POST /` with header? | ||
- `:upsert-by-pk` => `PUT /:{pk}` with header? | ||
|
||
## Auth and Permissions | ||
|
||
## Query Parameters | ||
|
||
## When not to use this | ||
|
||
- Very high throughput APIs | ||
- There is overhead with permission checking and other things that could be avoided with a more direct approach | ||
- More complex handlers should be managed via custom requests | ||
- Goal of route-craft is to handle the "80%" case of CRUD operations on database tables while permitting extensibility for the rest | ||
|
||
## License | ||
|
||
Copyright © 2023 | ||
|
||
Released under the MIT license. |
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
status = trace | ||
monitorInterval = 5 | ||
|
||
appender.console.type = Console | ||
appender.console.name = STDOUT | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = %date %level %logger %message%n%throwable | ||
|
||
rootLogger.level = info | ||
rootLogger.appenderRef.stdout.ref = STDOUT |