-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: improve openapi for
authorization
endpoint
- Loading branch information
Showing
2 changed files
with
49 additions
and
11 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
40 changes: 40 additions & 0 deletions
40
rest-api/resources/src/main/resources/openapi/authorization/authorization.yaml
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,40 @@ | ||
openapi: 3.0.3 | ||
|
||
info: | ||
title: Eclipse Kapua REST API - Authorizations | ||
version: '1.0' | ||
contact: | ||
name: Eclipse Kapua Dev Team | ||
url: https://eclipse.org/kapua | ||
email: kapua-dev@eclipse.org | ||
license: | ||
name: Eclipse Public License 2.0 | ||
url: https://www.eclipse.org/legal/epl-2.0 | ||
|
||
paths: {} | ||
|
||
components: | ||
schemas: | ||
claim: | ||
type: string | ||
description: Represent a user's claims, in the format `domain:action`. | ||
claimListResult: | ||
allOf: | ||
- description: A container for a list of claim objects | ||
type: object | ||
properties: | ||
items: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/claim' | ||
example: | ||
- "job:read" | ||
- "device_management_registry:write" | ||
- "group:delete" | ||
- "device_lifecycle:read" | ||
- "certificate:read" | ||
- "device_lifecycle:delete" | ||
- "certificate:write" | ||
- "credential:read" | ||
- "event_store:write" | ||
- "device:write" |