rocambille / barista

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

complete the controller template #1

Closed rocambille closed 5 years ago

rocambille commented 5 years ago

complete the template src/main/resources/templates/barista/Controller.java

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

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

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

edit: GET: /foos/{id}/edit description: get a form to edit the foo resource identified by id

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

add: GET: /foos/add description: get a form to create a new foo resource

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, and return a redirection to /foos

idl99 commented 5 years ago

I'd like to be assigned to this issue please

Ikhiloya commented 5 years ago

Can I take this one or work with the @idl99

ghost commented 5 years ago

Yep, i would like do this issue pleas.

rocambille commented 5 years ago

solved by #14