Skip to content

REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.

Notifications You must be signed in to change notification settings

lvlakku/springboot-rest-api-angularjs-https

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST HTTPS API with Spring Boot and Angular JS.

Build Status Coverage Status codebeat badge

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/1 returns the "object" with ID 1;
  • PUT request to /api/v1/objects/3 with a "object" object as JSON updates the "object" with ID 3;
  • DELETE request to /api/v1/objects/4 deletes 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"}

alt tag

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

alt tag

To run the SonarQube use:

mvn clean install sonar:sonar

About

REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 69.6%
  • JavaScript 16.4%
  • HTML 11.7%
  • CSS 2.0%
  • Batchfile 0.3%