Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SQA Project Part1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Y
SQA Project Part1
Commits
f29b2ff1
Commit
f29b2ff1
authored
2 years ago
by
Emildeon Thevaraj
Browse files
Options
Downloads
Patches
Plain Diff
update controller
parent
6685ce05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/rwth/swc/sqa/api/TicketController.java
+3
-2
3 additions, 2 deletions
src/main/java/de/rwth/swc/sqa/api/TicketController.java
with
3 additions
and
2 deletions
src/main/java/de/rwth/swc/sqa/api/TicketController.java
+
3
−
2
View file @
f29b2ff1
...
...
@@ -23,10 +23,11 @@ import java.util.Map;
import
java.util.Optional
;
@Controller
@RequestMapping
(
"/tickets"
)
public
class
TicketController
implements
TicketsApi
{
Customer
customer
;
@PostMapping
(
"
/tickets
"
)
@PostMapping
(
""
)
public
ResponseEntity
<
Ticket
>
buyTicket
(
@ApiParam
(
value
=
"TicketRequest object"
,
required
=
true
)
@Valid
@RequestBody
TicketRequest
body
)
{
getRequest
().
ifPresent
(
request
->
{
for
(
MediaType
mediaType:
MediaType
.
parseMediaTypes
(
request
.
getHeader
(
"Accept"
)))
{
...
...
@@ -40,7 +41,7 @@ public class TicketController implements TicketsApi{
return
new
ResponseEntity
<>(
HttpStatus
.
NOT_IMPLEMENTED
);
}
@PostMapping
(
"/
tickets/
validate"
)
@PostMapping
(
"/validate"
)
public
ResponseEntity
<
Void
>
validateTicket
(
@ApiParam
(
value
=
"TicketValidationRequest object that needs to validated"
,
required
=
true
)
@Valid
@RequestBody
TicketValidationRequest
body
)
{
return
new
ResponseEntity
<>(
HttpStatus
.
NOT_IMPLEMENTED
);
...
...
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