Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sprachschulsystem
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
Jan Pokorný
Sprachschulsystem
Commits
96b6af38
There was an error fetching the commit references. Please try again later.
Commit
96b6af38
authored
1 year ago
by
evilimkova
Browse files
Options
Downloads
Patches
Plain Diff
Adding Schema example for swagger
parent
daaebee4
No related branches found
No related tags found
1 merge request
!36
M2 fix certificate
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/model/src/main/java/org/fuseri/model/dto/certificate/CertificateCreateDto.java
+31
-0
31 additions, 0 deletions
...rg/fuseri/model/dto/certificate/CertificateCreateDto.java
with
31 additions
and
0 deletions
application/model/src/main/java/org/fuseri/model/dto/certificate/CertificateCreateDto.java
+
31
−
0
View file @
96b6af38
package
org.fuseri.model.dto.certificate
;
package
org.fuseri.model.dto.certificate
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.Valid
;
import
jakarta.validation.Valid
;
import
jakarta.validation.constraints.NotNull
;
import
jakarta.validation.constraints.NotNull
;
import
lombok.Getter
;
import
lombok.Getter
;
...
@@ -12,6 +13,36 @@ import org.fuseri.model.dto.user.UserDto;
...
@@ -12,6 +13,36 @@ import org.fuseri.model.dto.user.UserDto;
* This class represents a Data Transfer Object (DTO) for creating Certificate entities.
* This class represents a Data Transfer Object (DTO) for creating Certificate entities.
* It is used for creating Certificate entity.
* It is used for creating Certificate entity.
*/
*/
@Schema
(
example
=
"""
{
"user": {
"id": 1,
"username": "adelkaxxx",
"email": "adelkaxxx@muni.mail.cz",
"firstName": "Adéla",
"lastName": "Pulcová",
"address": {
"country": "Czechia",
"city": "Praha",
"street": "Bubenské nábřeží",
"houseNumber": "306/13",
"zip": "170 00"
},
"userType": "STUDENT",
"languageProficiency": {
"CZECH": "A2"
}
},
"course": {
"id": 1,
"name": "english a1",
"capacity": 10,
"language": "ENGLISH",
"proficiency": "A1"
}
}
"""
)
@Getter
@Getter
@Setter
@Setter
public
class
CertificateCreateDto
{
public
class
CertificateCreateDto
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment