mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-04 21:06:08 +00:00
docs: add curl examples for comment and reaction controllers
This commit is contained in:
@@ -9,6 +9,18 @@ import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/*
|
||||
curl -X POST http://localhost:8080/api/posts/1/reactions \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer <token>" \
|
||||
-d '{ "type": "LIKE" }'
|
||||
|
||||
curl -X POST http://localhost:8080/api/comments/1/reactions \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer <token>" \
|
||||
-d '{ "type": "LIKE" }'
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
@RequiredArgsConstructor
|
||||
|
||||
Reference in New Issue
Block a user