Skip to content

Commit 8f84d00

Browse files
authored
Adding the OpenAPI 3.0 based specification files.
1 parent c2864c9 commit 8f84d00

3 files changed

Lines changed: 2268 additions & 0 deletions

File tree

docs/api-specs/error.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
components:
2+
schemas:
3+
Errors:
4+
type: object
5+
required:
6+
- code
7+
- message
8+
properties:
9+
title:
10+
type: string
11+
example: "An error occurred"
12+
description: The title of the problem detail
13+
detail:
14+
type: string
15+
example: "Provide the details of the Exception message."
16+
description: Details of the problem
17+
type:
18+
type: string
19+
example: "Invalid Request"
20+
21+
examples:
22+
invalidRequestSchema:
23+
description: Invalid Request Schema
24+
content:
25+
application/json:
26+
schema:
27+
$ref: '#/components/schemas/Errors'
28+
badRequest:
29+
description: Bad Request
30+
content:
31+
application/json:
32+
schema:
33+
$ref: '#/components/schemas/Errors'
34+
unAuthorised:
35+
description: Unauthorised
36+
content:
37+
application/json:
38+
schema:
39+
$ref: '#/components/schemas/Errors'
40+
forbidden:
41+
description: Forbidden
42+
content:
43+
application/json:
44+
schema:
45+
$ref: '#/components/schemas/Errors'
46+
notFound:
47+
description: Resource Not Found
48+
content:
49+
application/json:
50+
schema:
51+
$ref: '#/components/schemas/Errors'
52+
serverError:
53+
description: Internal Server Error
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '#/components/schemas/Errors'
58+
serviceUnavailable:
59+
description: Service Unavailable
60+
content:
61+
application/json:
62+
schema:
63+
$ref: '#/components/schemas/Errors'

0 commit comments

Comments
 (0)