-
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.
Merge pull request #58 from w6d-io/develop
add documentation + cleanup
- Loading branch information
Showing
14 changed files
with
658 additions
and
632 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,42 @@ | ||
# sirius | ||
|
||
## SIRIUS | ||
Sirius is an api that use to list and modify kratos identity. | ||
|
||
### routes | ||
|
||
``/api/iam/project``: | ||
This route is used to add or list projects in the identity | ||
send a GET request with a kratos cookie to list the projects. | ||
send a POST request with a kratos cookie and the projects to add. | ||
|
||
``/api/iam/group``: | ||
This route is used to list groups in an identity or add projects to a group | ||
send a GET request with a kratos cookie to list the groups in the identity. | ||
send a POST request with a kratos cookie and the projects or users to add. | ||
|
||
``/api/iam/organisation``: | ||
This route is used to list organisations in an identity or add to a group | ||
send a GET request with a kratos cookie to list the organizations in the identity. | ||
send a POST request with a kratos cookie and the projects, groups or users to add. | ||
|
||
In all the POST case you must use the payload json: | ||
```json | ||
{ | ||
"id" = "string" | ||
"resource_type" = "string" | ||
"ressource_id" = "string" | ||
"value" = json value | ||
} | ||
``` | ||
The id field represent the id of the identity to modify(can be anid or an email | ||
depending on the route). | ||
|
||
The resource_type field represent the type of permission to modify: | ||
- user | ||
- group | ||
- organization | ||
|
||
The ressource id represent the id of resource to modify. | ||
|
||
the value field represent the data to modify the identity with |
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
Oops, something went wrong.