Skip to content

Commit

Permalink
update apikey docs
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Jun 9, 2024
1 parent 07c98ca commit 9d05339
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ tags:
- name: generate
- name: get
- name: util

security:
- bearerAuth: []

components:
securitySchemes:
bearerAuth:
description: Get your key from https://mineskin.org/apikey
description: API key auth header - Get your key from https://mineskin.org/apikey
type: http
scheme: bearer
apiKey:
description: Get your key from https://mineskin.org/apikey
type: apiKey
in: query
name: key

schemas:
PartialSkinInfo:
Expand Down Expand Up @@ -145,6 +144,14 @@ components:
required: true
schema:
type: string
apiKey:
name: Authorization
description: API Key - Get your key from https://mineskin.org/apikey
example: "Bearer [YOUR API KEY]"
in: header
required: false
schema:
type: string


responses:
Expand Down Expand Up @@ -220,9 +227,7 @@ paths:
- generate
parameters:
- $ref: '#/components/parameters/userAgent'
security:
- bearerAuth: []
apiKey: []
- $ref: '#/components/parameters/apiKey'
requestBody:
required: true
content:
Expand All @@ -248,9 +253,7 @@ paths:
- generate
parameters:
- $ref: '#/components/parameters/userAgent'
security:
- bearerAuth: [ ]
apiKey: [ ]
- $ref: '#/components/parameters/apiKey'
requestBody:
required: true
content:
Expand All @@ -277,9 +280,7 @@ paths:
- generate
parameters:
- $ref: '#/components/parameters/userAgent'
security:
- bearerAuth: [ ]
apiKey: [ ]
- $ref: '#/components/parameters/apiKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -308,14 +309,13 @@ paths:
- get
parameters:
- $ref: '#/components/parameters/userAgent'
security:
- bearerAuth: [ ]
apiKey: [ ]
- $ref: '#/components/parameters/apiKey'
responses:
200:
$ref: '#/components/responses/DelayInfo'
/get/id/{id}:
get:
deprecated: true
description: Deprecated. Use /get/uuid instead.
tags:
- get
Expand Down Expand Up @@ -346,6 +346,7 @@ paths:
type: string
format: uuid
- $ref: '#/components/parameters/userAgent'
- $ref: '#/components/parameters/apiKey'
responses:
200:
description: Skin Info
Expand Down

0 comments on commit 9d05339

Please sign in to comment.