1
0
Fork 0

feat(api): use custom types for uuid types

This commit is contained in:
Vojtěch Mareš 2024-04-27 21:09:15 +02:00
parent 11f610f992
commit 87d432dd52
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -80,6 +80,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"200": "200":
description: A training description: A training
@ -111,6 +114,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
requestBody: requestBody:
required: true required: true
content: content:
@ -155,6 +161,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"204": "204":
description: Training deleted description: Training deleted
@ -184,6 +193,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"200": "200":
description: A list of dates description: A list of dates
@ -212,6 +224,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
requestBody: requestBody:
required: true required: true
content: content:
@ -251,12 +266,18 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: dateID - name: dateID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"204": "204":
description: Date deleted description: Date deleted
@ -286,12 +307,18 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: dateID - name: dateID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"200": "200":
description: A list of attendees description: A list of attendees
@ -365,18 +392,27 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: dateID - name: dateID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: attendeeID - name: attendeeID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.AttendeeID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"204": "204":
description: Attendee deleted description: Attendee deleted
@ -406,18 +442,27 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: dateID - name: dateID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: attendeeID - name: attendeeID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.AttendeeID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
requestBody: requestBody:
required: true required: true
content: content:
@ -457,12 +502,18 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
- name: dateID - name: dateID
in: path in: path
required: true required: true
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"200": "200":
description: A list of feedback description: A list of feedback
@ -492,6 +543,9 @@ paths:
schema: schema:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
responses: responses:
"200": "200":
description: A list of feedback description: A list of feedback
@ -586,6 +640,9 @@ components:
id: id:
type: string type: string
format: uuid format: uuid
x-go-type: training.ID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
required: required:
- id - id
@ -620,6 +677,9 @@ components:
id: id:
type: string type: string
format: uuid format: uuid
x-go-type: training.DateID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
address: address:
type: string type: string
required: required:
@ -644,6 +704,9 @@ components:
id: id:
type: string type: string
format: uuid format: uuid
x-go-type: training.AttendeeID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
company: company:
type: string type: string
required: required:
@ -677,6 +740,9 @@ components:
id: id:
type: string type: string
format: uuid format: uuid
x-go-type: training.FeedbackID
x-go-type-import:
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
required: required:
- id - id