Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Formula Team Management
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jitka Viceníková
Formula Team Management
Merge requests
!44
An error occurred while fetching the assigned milestone of the selected merge_request.
Security
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Security
security
into
develop
Overview
2
Commits
48
Pipelines
20
Changes
1
Merged
Jitka Viceníková
requested to merge
security
into
develop
1 year ago
Overview
2
Commits
48
Pipelines
20
Changes
1
Expand
0
0
Merge request reports
Viewing commit
280791e7
Prev
Next
Show latest version
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
280791e7
fix(visualization): component type uppercase, now able to visualize from core by post request
· 280791e7
Alžbeta Hajná
authored
1 year ago
visualization/openapi.yaml
+
138
−
18
Options
@@ -10,45 +10,165 @@ tags:
-
name
:
Visualization
components
:
schemas
:
VisualizationSchema
Dto
:
Car
Dto
:
type
:
object
title
:
Visualization
description
:
visualization of given dat
a
title
:
Car
description
:
Formul
a
required
:
-
message
-
id
properties
:
message
:
id
:
type
:
integer
format
:
int64
description
:
Id of the car
example
:
1
components
:
type
:
array
description
:
List of components in the car
items
:
$ref
:
'
#/components/schemas/CarComponentDto'
driver
:
$ref
:
'
#/components/schemas/DriverDto'
CarComponentType
:
type
:
string
description
:
Type of a component
enum
:
-
CHASSIS
-
ENGINE
-
FRONTWING
-
SUSPENSION
CarComponentDto
:
type
:
object
title
:
Component
description
:
Component of a car
required
:
-
id
-
componentType
-
information
properties
:
id
:
type
:
integer
format
:
int64
description
:
Id of the component
example
:
1
componentType
:
$ref
:
'
#/components/schemas/CarComponentType'
weight
:
type
:
number
description
:
Weight of the component
example
:
50.5
information
:
type
:
string
description
:
short message
VisualizationSchemaCreateDto
:
description
:
Specific information about component
example
:
lightweight front wing v2 (black)
Characteristic
:
type
:
string
enum
:
-
aggressiveness
-
driving on the wet
-
react quickly
-
remain completely focused
-
adaptability to the environment
-
strong neck
-
ability to interact with the team
-
efficient cardiovascular systems
-
excellent when overtaking
-
excellent starter
-
excellent in the corners
-
excellent in straight lines
DriverDto
:
type
:
object
title
:
VisualizationRequest
description
:
data to visualize
title
:
Driver
description
:
Driver of a car
required
:
-
data
-
id
-
name
-
surname
-
nationality
-
characteristics
properties
:
data
:
id
:
type
:
integer
format
:
int64
description
:
Id of the driver
example
:
1
name
:
type
:
string
description
:
Name of the driver
example
:
Max
surname
:
type
:
string
description
:
data about cars
description
:
Surname of the driver
example
:
Verstappen
height
:
type
:
integer
description
:
Height in cm
example
:
170
birthday
:
type
:
string
description
:
Date of birth
format
:
date
example
:
1997-09-30
nationality
:
type
:
string
description
:
Nationality of the driver
example
:
Dutch
characteristics
:
type
:
array
description
:
Set of driver's characteristics
items
:
$ref
:
'
#/components/schemas/Characteristic'
responses
:
NotFound
:
description
:
The specified resource was not found
content
:
application/json
:
schema
:
type
:
object
title
:
NotFound
properties
:
message
:
type
:
string
Unexpected
:
description
:
Unexpected error
content
:
application/json
:
schema
:
type
:
object
title
:
Unexpected
properties
:
message
:
type
:
string
paths
:
/visualization
:
post
:
tags
:
-
Visualization
summary
:
Creates a visualization of given
JSON
operationId
:
ge
tVisualization
summary
:
Creates a visualization of given
car
operationId
:
ge
nerateCarPdf
requestBody
:
required
:
true
description
:
Request body with
receiver and message for new notific
ation
description
:
Request body with
the car for visualiz
ation
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/VisualizationSchemaCreateDto'
type
:
object
properties
:
car
:
$ref
:
'
#/components/schemas/CarDto'
required
:
-
car
responses
:
"
200"
:
description
:
OK
content
:
application/
json
:
application/
pdf
:
schema
:
$ref
:
'
#/components/schemas/VisualizationSchemaDto'
type
:
string
format
:
binary
default
:
$ref
:
'
#/components/responses/Unexpected'
Loading