Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webflux-springboot-CRUD-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Cottier
webflux-springboot-CRUD-app
Commits
ea81d1ef
Commit
ea81d1ef
authored
4 years ago
by
Christopher Cottier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working delete route, CRUD application functional for basic routes
parent
57d6fe7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ProductController.java
...a/com/nisum/webfluxday2/controller/ProductController.java
+1
-1
ProductService.java
...in/java/com/nisum/webfluxday2/service/ProductService.java
+2
-3
No files found.
src/main/java/com/nisum/webfluxday2/controller/ProductController.java
View file @
ea81d1ef
...
...
@@ -43,7 +43,7 @@ public class ProductController {
@DeleteMapping
(
"/products/{id}"
)
@ResponseStatus
(
HttpStatus
.
OK
)
public
void
deleteProduct
(
@PathVariable
String
id
){
productService
.
deleteProduct
(
id
);
productService
.
deleteProduct
(
id
)
.
subscribe
()
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/nisum/webfluxday2/service/ProductService.java
View file @
ea81d1ef
...
...
@@ -38,8 +38,7 @@ public class ProductService {
}
public
void
deleteProduct
(
String
id
)
{
Mono
<
Product
>
productToDelete
=
productRepository
.
findById
(
id
);
productRepository
.
deleteById
(
id
);
public
Mono
<
Void
>
deleteProduct
(
String
id
)
{
return
productRepository
.
deleteById
(
id
);
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment