Skip to content

Commit 48dae50

Browse files
committed
feat: add OpenAPI description for MOG
Signed-off-by: Mats Johansson <extern.mats.johansson@digg.se>
1 parent 5a9d10a commit 48dae50

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

apis/mog-api.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-FileCopyrightText: 2025 diggsweden/rest-api-profil-lint-processor
2+
#
3+
# SPDX-License-Identifier: EUPL-1.2
4+
5+
openapi: '3.0.0'
6+
info:
7+
title: MOG
8+
version: 1.0.0
9+
paths:
10+
/pets:
11+
get:
12+
operationId: listPets
13+
parameters:
14+
- name: limit
15+
in: query
16+
description: Max number of items to return
17+
required: false
18+
schema:
19+
type: integer
20+
maximum: 100
21+
responses:
22+
'200':
23+
description: OK
24+
content:
25+
application/json:
26+
schema:
27+
$ref: '#/components/schemas/Pets'
28+
post:
29+
operationId: createPets
30+
requestBody:
31+
content:
32+
application/json:
33+
schema:
34+
type: object
35+
properties:
36+
id:
37+
type: integer
38+
name:
39+
type: string
40+
responses:
41+
'201':
42+
description: Created
43+
/pets/{petId}:
44+
get:
45+
operationId: showPetById
46+
parameters:
47+
- name: petId
48+
in: path
49+
required: true
50+
description: ID of the pet to retrieve
51+
schema:
52+
type: integer
53+
responses:
54+
'200':
55+
description: OK
56+
content:
57+
application/json:
58+
schema:
59+
$ref: '#/components/schemas/Pet'
60+
delete:
61+
operationId: deletePet
62+
parameters:
63+
- name: petId
64+
in: path
65+
required: true
66+
schema:
67+
type: integer
68+
responses:
69+
'204':
70+
description: Deleted
71+
components:
72+
schemas:
73+
Pet:
74+
type: object
75+
required:
76+
- id
77+
- name
78+
properties:
79+
id:
80+
type: integer
81+
name:
82+
type: string
83+
tag:
84+
type: string
85+
Pets:
86+
type: array
87+
items:
88+
$ref: '#/components/schemas/Pet'

0 commit comments

Comments
 (0)