def get(self): """ .. http:get:: /users The current user list **Example request**: .. sourcecode:: http GET /users HTTP/1.1 Host: example.com Accept: application/json, text/javascript **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: text/javascript { "items": [ { "id": 2, "active": True, "email": "*****@*****.**", "username": "******", "profileImage": null }, { "id": 1, "active": False, "email": "*****@*****.**", "username": "******", "profileImage": null } ] "total": 2 } :query sortBy: field to sort on :query sortDir: acs or desc :query page: int default is 1 :query filter: key value pair format is k;v :query limit: limit number default is 10 :reqheader Authorization: OAuth token to authenticate :statuscode 200: no error """ parser = paginated_parser.copy() parser.add_argument('owner', type=str, location='args') parser.add_argument('id', type=str, location='args') args = parser.parse_args() return service.render(args)
def get(self): """ .. http:get:: /users The current user list **Example request**: .. sourcecode:: http GET /users HTTP/1.1 Host: example.com Accept: application/json, text/javascript **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Vary: Accept Content-Type: text/javascript { "items": [ { "id": 2, "active": True, "email": "*****@*****.**", "username": "******", "profileImage": null }, { "id": 1, "active": False, "email": "*****@*****.**", "username": "******", "profileImage": null } ] "total": 2 } :query sortBy: field to sort on :query sortDir: acs or desc :query page: int default is 1 :query filter: key value pair format is k;v :query limit: limit number default is 10 :reqheader Authorization: OAuth token to authenticate :statuscode 200: no error """ parser = paginated_parser.copy() parser.add_argument('owner', type=str, location='args') parser.add_argument('id', type=str, location='args') args = parser.parse_args() return service.render(args)