Newer
Older
openapi: 3.0.3
info:
title: Airport Manager authorization microservice
description: Airport Manager authorization microservice
version: 1.0.0
servers:
- url: "{scheme}://{server}:{port}"
description: my server
variables:
scheme:
default: http
enum:
- http
- https
server:
default: localhost
port:
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
paths:
/api/users/{id}:
get:
tags:
- User
summary: Get user by id.
description: Returns an object representing an user.
operationId: getUserById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/UserDto'
"404":
description: Not Found
components:
schemas:
DomainEntity:
title: Domain Entity
description: Represents a Domain Entity
type: object
required:
- id
properties:
id:
type: integer
description: unique id
format: int64
example: 1
discriminator:
propertyName: objectType
UserDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
type: object
title: Steward
description: Represents a steward on a flight.
required:
- id
- firstName
- lastName
properties:
firstName:
type: string
description: first name of a the user
example: John
lastName:
type: string
description: last name of a user
example: Doe