Skip to content

Commit 54fed37

Browse files
committed
chore: add tests and update public API
1 parent 8a861c9 commit 54fed37

10 files changed

+758
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
swagger: '2.0'
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
consumes:
14+
- application/json
15+
parameters:
16+
- in: body
17+
name: body
18+
description: Information about a new pet in the system
19+
schema:
20+
$ref: '#/definitions/Pet'
21+
responses:
22+
'200':
23+
description: Return a 200 status to indicate that the data was received successfully
24+
definitions:
25+
errorModel:
26+
type: object
27+
required:
28+
- code
29+
- message
30+
properties:
31+
code:
32+
type: integer
33+
format: int32
34+
message:
35+
type: string
36+
newPet:
37+
type: object
38+
required:
39+
- name
40+
properties:
41+
id:
42+
type: integer
43+
format: int64
44+
name:
45+
type: string
46+
Pet:
47+
required:
48+
- id
49+
- name
50+
properties:
51+
id:
52+
type: integer
53+
format: int64
54+
name:
55+
type: string
56+
tag:
57+
type: string
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: 3.0.4
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
requestBody:
14+
description: Information about a new pet in the system
15+
content:
16+
application/json:
17+
schema:
18+
$ref: '#/components/schemas/Pet'
19+
responses:
20+
'200':
21+
description: Return a 200 status to indicate that the data was received successfully
22+
components:
23+
schemas:
24+
errorModel:
25+
required:
26+
- code
27+
- message
28+
type: object
29+
properties:
30+
code:
31+
type: integer
32+
format: int32
33+
message:
34+
type: string
35+
newPet:
36+
required:
37+
- name
38+
type: object
39+
properties:
40+
id:
41+
type: integer
42+
format: int64
43+
name:
44+
type: string
45+
Pet:
46+
required:
47+
- id
48+
- name
49+
properties:
50+
id:
51+
type: integer
52+
format: int64
53+
name:
54+
type: string
55+
tag:
56+
type: string
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: '3.1.1'
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
requestBody:
14+
description: Information about a new pet in the system
15+
content:
16+
application/json:
17+
schema:
18+
$ref: '#/components/schemas/Pet'
19+
responses:
20+
'200':
21+
description: Return a 200 status to indicate that the data was received successfully
22+
components:
23+
schemas:
24+
errorModel:
25+
required:
26+
- code
27+
- message
28+
type: object
29+
properties:
30+
code:
31+
type: integer
32+
format: int32
33+
message:
34+
type: string
35+
newPet:
36+
required:
37+
- name
38+
type: object
39+
properties:
40+
id:
41+
type: integer
42+
format: int64
43+
name:
44+
type: string
45+
Pet:
46+
required:
47+
- id
48+
- name
49+
properties:
50+
id:
51+
type: integer
52+
format: int64
53+
name:
54+
type: string
55+
tag:
56+
type: string
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
swagger: '2.0'
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
consumes:
14+
- application/json
15+
parameters:
16+
- in: body
17+
name: body
18+
description: Information about a new pet in the system
19+
schema:
20+
$ref: '#/definitions/Pet'
21+
responses:
22+
'200':
23+
description: Return a 200 status to indicate that the data was received successfully
24+
definitions:
25+
errorModel:
26+
type: object
27+
required:
28+
- code
29+
- message
30+
properties:
31+
code:
32+
type: integer
33+
format: int32
34+
message:
35+
type: string
36+
newPet:
37+
type: object
38+
required:
39+
- name
40+
properties:
41+
id:
42+
type: integer
43+
format: int64
44+
name:
45+
type: string
46+
pet:
47+
required:
48+
- id
49+
- name
50+
properties:
51+
id:
52+
type: integer
53+
format: int64
54+
name:
55+
type: string
56+
tag:
57+
type: string
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: 3.0.4
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
requestBody:
14+
description: Information about a new pet in the system
15+
content:
16+
application/json:
17+
schema:
18+
$ref: '#/components/schemas/Pet'
19+
responses:
20+
'200':
21+
description: Return a 200 status to indicate that the data was received successfully
22+
components:
23+
schemas:
24+
errorModel:
25+
required:
26+
- code
27+
- message
28+
type: object
29+
properties:
30+
code:
31+
type: integer
32+
format: int32
33+
message:
34+
type: string
35+
newPet:
36+
required:
37+
- name
38+
type: object
39+
properties:
40+
id:
41+
type: integer
42+
format: int64
43+
name:
44+
type: string
45+
pet:
46+
required:
47+
- id
48+
- name
49+
properties:
50+
id:
51+
type: integer
52+
format: int64
53+
name:
54+
type: string
55+
tag:
56+
type: string
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: '3.1.1'
2+
info:
3+
title: Test API
4+
version: '1.0'
5+
paths:
6+
pet:
7+
get:
8+
responses:
9+
'200':
10+
description: Return a 200 status to indicate that the data was received successfully
11+
newPet:
12+
post:
13+
requestBody:
14+
description: Information about a new pet in the system
15+
content:
16+
application/json:
17+
schema:
18+
$ref: '#/components/schemas/Pet'
19+
responses:
20+
'200':
21+
description: Return a 200 status to indicate that the data was received successfully
22+
components:
23+
schemas:
24+
errorModel:
25+
required:
26+
- code
27+
- message
28+
type: object
29+
properties:
30+
code:
31+
type: integer
32+
format: int32
33+
message:
34+
type: string
35+
newPet:
36+
required:
37+
- name
38+
type: object
39+
properties:
40+
id:
41+
type: integer
42+
format: int64
43+
name:
44+
type: string
45+
pet:
46+
required:
47+
- id
48+
- name
49+
properties:
50+
id:
51+
type: integer
52+
format: int64
53+
name:
54+
type: string
55+
tag:
56+
type: string

0 commit comments

Comments
 (0)