Skip to content

Commit

Permalink
Fix route not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 7, 2024
1 parent 21ef877 commit f00d3ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htdocs/modulebuilder/template/class/api_mymodule.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct()
* @param int $id ID of myobject
* @return Object Object with cleaned properties
*
* @url GET myobjects/{id}
* @url GET mymodule/myobjects/{id}
*
* @throws RestException 403 Not allowed
* @throws RestException 404 Not found
Expand Down Expand Up @@ -103,7 +103,7 @@ public function get($id)
* @throws RestException 403 Not allowed
* @throws RestException 503 System error
*
* @url GET /myobjects/
* @url GET /mymodule/myobjects/
*/
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '', $properties = '')
{
Expand Down Expand Up @@ -191,7 +191,7 @@ public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100,
* @throws RestException 403 Not allowed
* @throws RestException 500 System error
*
* @url POST myobjects/
* @url POST mymodule/myobjects/
*/
public function post($request_data = null)
{
Expand Down Expand Up @@ -232,7 +232,7 @@ public function post($request_data = null)
* @throws RestException 404 Not found
* @throws RestException 500 System error
*
* @url PUT myobjects/{id}
* @url PUT mymodule/myobjects/{id}
*/
public function put($id, $request_data = null)
{
Expand Down Expand Up @@ -282,7 +282,7 @@ public function put($id, $request_data = null)
* @throws RestException 409 Nothing to do
* @throws RestException 500 System error
*
* @url DELETE myobjects/{id}
* @url DELETE mymodule/myobjects/{id}
*/
public function delete($id)
{
Expand Down

0 comments on commit f00d3ff

Please sign in to comment.