Interface WriteRestController<M extends BaseModel<I>,D,S extends BaseService<M,?,D,?,I,U>,I,U>

All Known Implementing Classes:
BaseCrudRestControllerAbstract

public interface WriteRestController<M extends BaseModel<I>,D,S extends BaseService<M,?,D,?,I,U>,I,U>
Created by zafari on 4/12/2015.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.springframework.http.ResponseEntity<Long>
    DELETE(I id)
     
     
     
    default org.springframework.http.ResponseEntity<M>
    PATCH(I id, Map<String,Object> patches)
     
    default M
    SAVE(D dto)
     
    default org.springframework.http.ResponseEntity<M>
    UPDATE(I id, D dto)
     
  • Field Details

  • Method Details

    • SAVE

      @PostMapping(value="", consumes="application/json") default M SAVE(@RequestBody @Validated(Save.class) D dto)
    • UPDATE

      @PutMapping(value="{id}", consumes="application/json") default org.springframework.http.ResponseEntity<M> UPDATE(@PathVariable I id, @RequestBody @Validated(Update.class) D dto)
    • PATCH

      @PatchMapping(value="{id}", consumes="application/json-merge-patch") default org.springframework.http.ResponseEntity<M> PATCH(@PathVariable I id, @RequestBody Map<String,Object> patches)
    • DELETE

      @DeleteMapping("{id}") default org.springframework.http.ResponseEntity<Long> DELETE(@PathVariable I id)
    • getService

      S getService()
    • getUser

      U getUser()