Skip to content

misc: fixes of api token spec #6757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion specs/apiToken_api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ openapi: "3.0.3"
info:
version: 1.0.0
title: Devtron Labs
servers:
- url: http://localhost/orchestrator
paths:
/orchestrator/api-token:
/api-token:
get:
description: Get All active Api Tokens
summary: Get All Active Api Tokens
security:
- ApiKeyAuth: []
responses:
"200":
description: Successfully fetched active API tokens links
Expand All @@ -17,6 +22,9 @@ paths:
$ref: "#/components/schemas/ApiToken"
post:
description: Create api-token
summary: Create Api Token
security:
- ApiKeyAuth: []
requestBody:
required: true
content:
Expand All @@ -35,6 +43,9 @@ paths:
/orchestrator/api-token/{id}:
put:
description: Update api-token
summary: Update Api Token
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
Expand All @@ -58,6 +69,9 @@ paths:
$ref: "#/components/schemas/UpdateApiTokenResponse"
delete:
description: Delete api-token
summary: Delete Api Token
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
Expand All @@ -74,6 +88,11 @@ paths:
schema:
$ref: "#/components/schemas/ActionResponse"
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: Authorization
schemas:
ApiToken:
type: object
Expand Down
Loading