springsecurity-api-jwt-springboot-waf-with-roles
http://localhost:8080/dashboard
In Postman, you can send HTTP requests with various methods and attach JSON data to the requests when necessary. Here are the previous examples with Postman-specific details for sending JSON data:
This README provides examples of using Postman to interact with a Spring Boot API that manages a hypothetical "user" resource.
- Request Method: GET
- URL:
http://localhost:8080/api/users
- Request Method: GET
- URL:
http://localhost:8080/api/users/1
- Request Method: POST
- URL:
http://localhost:8080/api/users - Body (Raw JSON):
{ "firstName": "John", "lastName": "Doe", "email": "[email protected]" }
- Request Method: PUT
- URL:
http://localhost:8080/api/users/1 - Body (Raw JSON):
{
"firstName": "UpdatedJohn",
"lastName": "UpdatedDoe",
"email": "[email protected]"
} - Request Method: DELETE
- URL:
http://localhost:8080/api/users/1
In Postman, set the request method (GET, POST, PUT, DELETE) and provide the request URL as shown above. For POST and PUT requests, include a JSON body with the data to send to the server. Ensure that the "Content-Type" header is set to "application/json" when sending JSON data.
These examples demonstrate how to perform different HTTP methods with JSON data for a user resource in your Spring Boot API.



