mehanat / topjava06

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Enterprise Online Project

Codacy Badge

Наиболее востребованные технологии /инструменты / фреймворки Java Enterprise: Maven/ Spring/ Security/ JPA(Hibernate)/ REST(Jackson)/ Bootstrap(CSS)/ jQuery + plugins.

Test UserMealRestController (application deployed with context topjava).

For windows use Git Bash

get All

curl -s http://localhost:8080/topjava/rest/profile/meals

get 100003

curl -s http://localhost:8080/topjava/rest/profile/meals/100003

get between

curl -s "http://localhost:8080/topjava/rest/profile/meals/between?startDateTime=2015-05-30T08:00:00&endDateTime=2015-05-30T16:00:00"

get not found

curl -s -v http://localhost:8080/rest/meals/100008

delete

curl -s -X DELETE http://localhost:8080/rest/meals/100002

create

curl -s -v -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

update

curl -s -v -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

About

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


Languages

Language:Java 94.4%Language:JavaScript 4.8%Language:HTML 0.3%Language:CSS 0.2%Language:Batchfile 0.2%