Skip to content

Commit

Permalink
added 401 error response to all 3 API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
QiluXie committed Nov 24, 2023
1 parent 5f7e669 commit dc7e38b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/gigDnsApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ paths:
message:
type: string
example: "DNS record added successfully."
"401":
description: Unauthorized.
"400":
description: Invalid request data.
content:
Expand Down Expand Up @@ -91,6 +93,8 @@ paths:
type: array
items:
$ref: "#/components/schemas/DNSRecord"
"401":
description: Unauthorized.
"404":
description: No records found for the specified name.
delete:
Expand Down Expand Up @@ -127,6 +131,16 @@ paths:
responses:
"200":
description: DNS record successfully deleted.
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: "DNS record successfully deleted"
"401":
description: Unauthorized.
"404":
description: DNS record not found.
components:
Expand Down

0 comments on commit dc7e38b

Please sign in to comment.