Skip to content
/ topjava Public
forked from JavaOPs/topjava

Java Enterprise: Maven/ Spring/ Security/ JPA(Hibernate)/ REST(Jackson)/ Bootstrap(CSS)/ jQuery

Notifications You must be signed in to change notification settings

ser-ga/topjava

 
 

Repository files navigation

Java Enterprise Online Project

Полнофункциональное Spring/JPA Enterprise приложение c авторизацией и правами доступа на основе ролей с использованием наиболее популярных инструментов и технологий Java: Maven, Spring MVC, Security, JPA(Hibernate), REST(Jackson), Bootstrap (css,js), datatables, jQuery + plugins, Java 8 Stream and Time API и хранением в базах данных Postgresql и HSQLDB.

Project demo

Heroku cloud

curl samples (application deployed in application context topjava).

For windows use Git Bash

get All Users

curl -s http://localhost:8080/topjava/rest/admin/users --user [email protected]:admin

get Users 100001

curl -s http://localhost:8080/topjava/rest/admin/users/100001 --user [email protected]:admin

get All Meals

curl -s http://localhost:8080/topjava/rest/profile/meals --user [email protected]:password

get Meals 100003

curl -s http://localhost:8080/topjava/rest/profile/meals/100003  --user [email protected]:password

filter Meals

curl -s "http://localhost:8080/topjava/rest/profile/meals/filter?startDate=2015-05-30&startTime=07:00:00&endDate=2015-05-31&endTime=11:00:00" --user [email protected]:password

get Meals not found

curl -s -v http://localhost:8080/topjava/rest/profile/meals/100008 --user [email protected]:password

delete Meals

curl -s -X DELETE http://localhost:8080/topjava/rest/profile/meals/100002 --user [email protected]:password

create Meals

curl -s -X POST -d '{"dateTime":"2015-06-01T12:00","description":"Created lunch","calories":300}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/topjava/rest/profile/meals --user [email protected]:password

update Meals

curl -s -X PUT -d '{"dateTime":"2015-05-30T07:00", "description":"Updated breakfast", "calories":200}' -H 'Content-Type: application/json' http://localhost:8080/topjava/rest/profile/meals/100003 --user [email protected]:password

validate with Error

curl -s -X POST -d '{}' -H 'Content-Type: application/json' http://localhost:8080/topjava/rest/admin/users --user [email protected]:admin
curl -s -X PUT -d '{"dateTime":"2015-05-30T07:00"}' -H 'Content-Type: application/json' http://localhost:8080/topjava/rest/profile/meals/100003 --user [email protected]:password

About

Java Enterprise: Maven/ Spring/ Security/ JPA(Hibernate)/ REST(Jackson)/ Bootstrap(CSS)/ jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.4%
  • JavaScript 5.0%
  • Other 0.6%