springboot-rest-api-angularjs-https
                                
                                 springboot-rest-api-angularjs-https copied to clipboard
                                
                                    springboot-rest-api-angularjs-https copied to clipboard
                            
                            
                            
                        REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.
REST HTTPS API with Spring Boot and Angular JS.
Technology stack:
- Maven;
- FindBugs;
- Travis CI;
- Tomcat embedded;
- Spring Boot;
- JUnit;
- Mockito;
- Logback (as SLF4J facade);
- Spring Web;
- Spring Data JPA;
- Hibernate (as JPA implementation);
- MySQL Relation Database;
- Spring Security (as basic authentication);
- Angular JS, HTML, CSS.
To run this application use:
mvn spring-boot:run
This is what my REST API does:
Go to https://localhost:8443 to test and must specify a username: user and password: user
- POST request to /api/v1/objects/with a "object" object as JSON creates a new "object";
- GET request to /api/v1/objects/returns a list of "objects";
- GET request to /api/v1/objects/1returns the "object" with ID 1;
- PUT request to /api/v1/objects/3with a "object" object as JSON updates the "object" with ID 3;
- DELETE request to /api/v1/objects/4deletes the "object" with ID 4;
- DELETE request to /api/v1/objects/deletes all the "objects".
The view in the Postman:
https://localhost:8443/api/v1/objects
Message body: {"title":"Absorber", "value":"123123"}

Open browser and browse at: https://localhost:8443

To run the SonarQube use:
mvn clean install sonar:sonar