Skip to content

springsecurity-api-jwt-springboot-waf-with-roles

medaminebt/springsecurity-api-jwt-pidev-roles

Repository files navigation

springsecurity-api-jwt-pidev-roles

springsecurity-api-jwt-springboot-waf-with-roles

project architecture


XDA ssdf







http://localhost:8080/dashboard

charts










HTTP Methods in PostMan with Examples :

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:

Spring Boot API Postman Examples

This README provides examples of using Postman to interact with a Spring Boot API that manages a hypothetical "user" resource.

GET Example (Retrieve a List of Users)

  • Request Method: GET
  • URL: http://localhost:8080/api/users

GET Example (Retrieve a Specific User by ID)

  • Request Method: GET
  • URL: http://localhost:8080/api/users/1

POST Example (Create a New User)

  • Request Method: POST
  • URL: http://localhost:8080/api/users
  • Body (Raw JSON):
    {
      "firstName": "John",
      "lastName": "Doe",
      "email": "[email protected]"
    }
    
    

PUT Example (Update an Existing User by ID)

  • Request Method: PUT
  • URL: http://localhost:8080/api/users/1
  • Body (Raw JSON):
{
 "firstName": "UpdatedJohn",
 "lastName": "UpdatedDoe",
 "email": "[email protected]"
} 

DELETE Example (Delete an Existing User by ID)

  • 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.

Releases

No releases published

Packages

No packages published