-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: add intro, glossary, server-setup-wip * docs: concepts and tour * docs: add api and cli ref * docs: add guide * docs: change heading * docs: separate proxy and auth architecture * docs: sentence correction * docs: fix new schema changes
- Loading branch information
1 parent
7852112
commit 4e4ce0b
Showing
44 changed files
with
32,628 additions
and
7,083 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import CodeBlock from '@theme/CodeBlock'; | ||
|
||
# Adding Metadata Keys | ||
|
||
A metadata-key in Shield looks like | ||
|
||
```json | ||
{ | ||
"metadatakey": { | ||
"key": "manager", | ||
"description": "manager of this user" | ||
} | ||
} | ||
``` | ||
|
||
## API Interface | ||
|
||
### Create metadata keys | ||
|
||
<Tabs groupId="api"> | ||
<TabItem value="HTTP" label="HTTP" default> | ||
<CodeBlock className="language-bash"> | ||
{`$ curl --location --request POST 'http://localhost:8000/admin/v1beta1/metadatakey' | ||
--header 'Content-Type: application/json' | ||
--header 'Accept: application/json' | ||
--data-raw '{ | ||
"key": "manager", | ||
"description": "manager of this user" | ||
}'`} | ||
</CodeBlock> | ||
</TabItem> | ||
</Tabs> |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.