Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 813 Bytes

get-by-user.md

File metadata and controls

59 lines (44 loc) · 813 Bytes

获取用户的 Journey

URL /journey/getByUser

Method: GET

Auth required : YES

Data constraints

N/A

Data example

N/A

Success Response:

Code : 200 OK

Content example

{
  "code": 200,
  "description": "Get data successfully.",
  "timestamp": "2022-11-19T01:54:46.832+0000",
  "data": [
    {
      "id": 0,
      "title": "string",
      "description": "string",
      "userId": 0,
      "waypoints": [
        {
            "label": "string",
            "time": "string",
            "coordinate": "(45, 45)"
        }
      ]
    }
  ]
}

Error Response:

Code : 400 FAILED

Content example

{
    "code": 400,
    "description": "Authorization failed.",
    "timestamp": "2022-11-19T01:54:46.832+0000",
    "data": null
}