Class ModelController

java.lang.Object
cn.sparrow.common.controller.ModelController
@RestController public class ModelControllerextends Object
  • Constructor Details

    • ModelController

      public  ModelController()
  • Method Details

    • models

      @GetMapping("/models") public  org.springframework.data.domain.Page<Model>  models(@Nullable org.springframework.data.domain.Pageable pageable)
    • add

      @PostMapping("/models/batch") public  void  add(@NotNull @RequestBody @NotNull List<Model> models)
    • update

      @PatchMapping("/models/batch") public  void  update(@NotNull @RequestBody @NotNull List<Model> models)
    • delete

      @DeleteMapping("/models/batch") public  void  delete(@NotNull @RequestBody @NotNull String[] ids)
    • addPermission

      @PostMapping("/models/permissions") public  void  addPermission(@NotNull @RequestBody @NotNull ModelPermission modelPermission)
    • delPermission

      @DeleteMapping("/models/permissions") public  void  delPermission(@NotNull @RequestBody @NotNull ModelPermission modelPermission)