Skip to content

Commit

Permalink
doc: improve openapi for authorization endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise committed Mar 4, 2025
1 parent 41055ab commit a753097
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ paths:
content:
application/json:
schema:
type: array
items:
type: string
400:
$ref: '../openapi.yaml#/components/responses/illegalArgument'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
$ref: './authorization.yaml#/components/schemas/claimListResult'
400:
$ref: '../openapi.yaml#/components/responses/illegalArgument'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
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"

0 comments on commit a753097

Please sign in to comment.