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