Securing an Application with Spring Boot and Method Security
GET /videos
:
curl --user <user>:<password> --location 'http://localhost:8080/videos[?search=<search_text>]'
POST /videos
:
curl --user <user>:<password> \
--location 'localhost:8080/videos' \
--header 'Content-Type: application/json' \
--data '{
"name": <name>,
"description": <description>
}'
DELETE /videos/:id
:
curl --location --request DELETE 'localhost:8080/videos/:id' \
--user <user>:<password>