Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 566 Bytes

File metadata and controls

30 lines (22 loc) · 566 Bytes

2. Method Security

Securing an Application with Spring Boot and Method Security

API Usage

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>