Class ExtensionSchemaRestController

java.lang.Object
com.evolveum.midpoint.rest.impl.AbstractRestController
com.evolveum.midpoint.rest.impl.ExtensionSchemaRestController

@RestController @RequestMapping({"/ws/schema","/rest/schema","/api/schema"}) public class ExtensionSchemaRestController extends AbstractRestController
Special REST methods to access external schemas. Note about authorizations: These methods are covered by ModelAuthorizationAction.GET_EXTENSION_SCHEMA authorization. It is sufficient. However, to avoid the need of having `rest-3#all` authorization to use these methods, we also added special (much more specific, i.e. weaker) replacement for it: RestAuthorizationAction.GET_EXTENSION_SCHEMA. So, a user accessing these methods need just the above two (rather weak) authorizations.
  • Constructor Details

    • ExtensionSchemaRestController

      public ExtensionSchemaRestController()
  • Method Details

    • listSchemas

      @GetMapping public org.springframework.http.ResponseEntity<?> listSchemas()
    • getSchema

      @GetMapping(value="/{name}", produces={"application/json","application/xml","text/plain"}) public org.springframework.http.ResponseEntity<?> getSchema(@PathVariable("name") String name)