Created: 2014-05-19 13:55
Updated: 2014-09-11 12:36


time box service TODO: Model:

Boxer, Trainer (Person), Club (Org), Registration, Address, Phone (contact), Fights,

BoxClass (Boxer, Fight) ?? Could be based on number of fights ?? RegistrationEvent (Boxer, Trainer) ?? Bus rules, like medical etc, For trainer it's accreditation?? FightEvent (Boxer, Class)

curl http://localhost:8080 curl http://localhost:8080/fighters curl -i -X POST -H "Content-Type:application/json" -d '{ "firstName" : "Frodo", "lastName" : "Baggins" }' http://localhost:8080/fighters curl http://localhost:8080/fighters/fighters/findByLastName?name=Baggins curl -X PUT -H "Content-Type:application/json" -d '{ "firstName": "Bilbo", "lastName": "Baggins" }' http://localhost:8080/fighters/1 curl -X PATCH -H "Content-Type:application/json" -d '{ "firstName": "Bilbo Jr." }' http://localhost:8080/fighters/1 curl -X DELETE http://localhost:8080/fighters/1

Spring-boot-cli and groovy:

Errors and static content:

update (

-- -- -- -- -- )

{code} org.springframework.boot spring-boot-starter-parent 1.1.4.RELEASE org.springframework.boot spring-boot-starter-web {code}

{code} package hello;

import org.springframework.boot.; import org.springframework.boot.autoconfigure.; import org.springframework.stereotype.; import org.springframework.web.bind.annotation.;

@Controller @EnableAutoConfiguration public class SampleController {

String home() {
    return "Hello World!";

public static void main(String[] args) throws Exception {, args);

} {code}

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more