RESTFul API used to allow external developers to request an API key for an organiation's public API
Built with Spring Boot. Data is stored in a simple static map of users and their applications. Model validation done with Hibernate validator (JSR 303)
Dependencies via Maven. a simple mvn package will build the jar, which can then be executed with java -jar
curl http://localhost:8080/api/users -X "POST" -H "Content-Type: application/json" -d "{\"firstName\":\"justin\",\"lastName\":\"miller\",\"email\":\"someemail@somecompany.com\",\"telephone\":\"8015551212\"}"
curl http://localhost:8080/api/users/someemail@somecompany.com
curl http://localhost:8080/api/users/someemail@somecompany.com -X "PUT" -H "Content-Type: application/json" -d "{\"firstName\":\"justin\",\"lastName\":\"miller\",\"email\":\"someemail@somecompany.com\",\"telephone\":\"8005551212\"}"
curl http://localhost:8080/api/users/someemail@somecompany.com -X "DELETE"
curl http://localhost:8080/api/users/someemail@somecompany.com/applications -X "POST" -H "Content-Type: application/json" -d "{\"name\":\"app name\",\"description\":\"some app description\"}"
curl http://localhost:8080/api/users/someemail@somecompany.com/applications