Package org.apereo.cas.mgmt.controller
Class NoteController
- java.lang.Object
-
- org.apereo.cas.mgmt.controller.NoteController
-
@RestController("noteController") @RequestMapping(path="api/note", produces="application/json") public class NoteController extends java.lang.ObjectController for handling note requests.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description NoteController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNote(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apereo.cas.mgmt.domain.CNote cnote)Method will add the supplied note from the client to the submit request in the repo.voidgetNotes(javax.servlet.http.HttpServletResponse response, java.lang.String id)Method will return all notes that have been added to a submit request.
-
-
-
Method Detail
-
getNotes
@GetMapping("/{id}") public void getNotes(javax.servlet.http.HttpServletResponse response, @PathVariable java.lang.String id)Method will return all notes that have been added to a submit request.- Parameters:
response- - HttpServletResponseid- - id of note
-
addNote
@PostMapping @ResponseStatus(OK) public void addNote(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestBody org.apereo.cas.mgmt.domain.CNote cnote)Method will add the supplied note from the client to the submit request in the repo.- Parameters:
request- - HttpServletRequestresponse- - HttpServletResponsecnote- - CNote
-
-