boxing-spring-boot

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

README.md

boxing-spring-boot

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: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-installing-the-cli https://github.com/spring-projects/spring-loaded http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-application-property-files http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-resource-conditions

Errors and static content: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-message-codes http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-mvc-static-content http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-error-handling http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-security

update (

-- http://spring.io/understanding/REST -- http://spring.io/understanding/HATEOAS -- http://spring.io/guides/gs/rest-hateoas -- http://spring.io/guides/gs/accessing-data-rest -- http://spring.io/guides/gs/consuming-rest/ )

{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 {

@RequestMapping("/")
@ResponseBody
String home() {
    return "Hello World!";
}

public static void main(String[] args) throws Exception {
    SpringApplication.run(SampleController.class, args);
}

} {code}

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