controller/noteapicontroller.php 1 location
|
@@ 97-105 (lines=9) @@
|
| 94 |
|
* @NoCSRFRequired |
| 95 |
|
* @TODO Add etag / lastmodified |
| 96 |
|
*/ |
| 97 |
|
public function get($id) { |
| 98 |
|
$result = $this->noteService->find($id); |
| 99 |
|
if (!$result) { |
| 100 |
|
return new NotFoundJSONResponse(); |
| 101 |
|
} |
| 102 |
|
//@todo Check access |
| 103 |
|
$result = $result->jsonSerialize(); |
| 104 |
|
return new JSONResponse($this->formatApiResponse($result)); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
|
| 108 |
|
/** |
controller/notebookapicontroller.php 1 location
|
@@ 84-92 (lines=9) @@
|
| 81 |
|
* @NoCSRFRequired |
| 82 |
|
* @TODO Add etag / lastmodified |
| 83 |
|
*/ |
| 84 |
|
public function get($id) { |
| 85 |
|
$result = $this->groupService->find($id); |
| 86 |
|
if (!$result) { |
| 87 |
|
return new NotFoundJSONResponse(); |
| 88 |
|
} |
| 89 |
|
//@todo Check access |
| 90 |
|
$result = $result->jsonSerialize(); |
| 91 |
|
return new JSONResponse($this->formatApiResponse($result)); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
|
| 95 |
|
/** |