Class VersionController


  • @RestController
    @Api(description="The version controller",
         name="Version controller")
    public class VersionController
    extends Object
    • Constructor Detail

      • VersionController

        public VersionController()
    • Method Detail

      • findById

        @ApiMethod(description="Get version by uuid")
        @GetMapping(value={"/latest/versions/{uuid}","/v2/versions/{uuid}"},
                    produces="application/json")
        @ApiResponseObject
        public de.digitalcollections.model.api.identifiable.Version findById​(@PathVariable
                                                                             UUID uuid)
      • update

        @ApiMethod(description="Update the version status")
        @PutMapping(value={"/latest/versions/{uuid}","/v2/versions/{uuid}"},
                    produces="application/json")
        @ApiResponseObject
        public de.digitalcollections.model.api.identifiable.Version update​(@PathVariable
                                                                           UUID uuid,
                                                                           @RequestBody
                                                                           de.digitalcollections.model.api.identifiable.Version version,
                                                                           org.springframework.validation.BindingResult errors)
                                                                    throws Exception
        Throws:
        Exception