-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List entities in namespace(s) (#111)
Add `list` sub-group of commands to the CLI New '/_api' router with an '/entities' GET endpoint This endpoint is to return a list of entities from the desired namespace(s). Namespace(s) can be requested through the `namespace` query parameter, e.g., `/_api/entities?namespace="testing"&namespace="my/project"`. Redo how backends are initialized. Avoid adding __init__() for backends, instead use _initialize() (used to be initialize()). Fully implement list CLI cmds: * list namespaces Will list all the namespaces as a full namespace, valid to be a value in an entity under the namespace key. * list entities Will list all entities for a given namespace or multiple namespaces or all namespaces depending on the provided arguments (if any) or if the `-a/--all` option is provided. This has all been made possible through the (normally hidden) endpoints `/_api/namespaces` and `/_api/entities`. Both are GET endpoints. The endpoints will list all namespaces or all entities with a given list of namespaces (provided through the query parameter 'namespace', may be supplied multiple times - or no times). Fully test the new CLI commands. Fully test the new API endpoints. Add color to pytest runs in GitHub CI.
- Loading branch information
Showing
22 changed files
with
2,135 additions
and
70 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
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,4 +1,4 @@ | ||
version: "3" | ||
name: "entities-service" | ||
|
||
services: | ||
entities_service: | ||
|
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
Oops, something went wrong.