rocambille / barista

Barista is a CLI that can assist you while you build your Java application
MIT License
7 stars 15 forks source link

create a REST controller template #7

Closed rocambille closed 5 years ago

rocambille commented 5 years ago

create the template src/main/resources/templates/barista/RestController.java

add methods for a BREAD on a given resource foo, following REST uniform interface (note: the controller here should be annotated with @RestController and not @Controller):

browse: GET: /foos description: get a JSON of all foo resources

read: GET: /foos/{id} description: get a JSON of the foo resource identified by id

update: PUT: /foos/{id} description: store the modified foo resource and return a redirection to its read endpoint

store: POST: /foos description: store the new foo resource and return a redirection to its read endpoint

destroy: DELETE: /foos/{id} description: delete the foo resource identified by id

neoprez commented 5 years ago

Asign this to me please

ghost commented 5 years ago

Yep, i would like do this issue pleas.

rocambille commented 5 years ago

solved by #19