API Documentation
V1 ¶
Users Show ¶
Users ShowGET/api/v1/users/{user_id}
Example URI
GET /api/v1/users/1
URI Parameters
- user_id
number
(required) Example: 1
Response
200
Headers
Content-Type: application/json; charset=UTF-8
Body
{
"Id": 1,
"UserName": "testuser1"
}
Users Index ¶
Users IndexGET/api/v1/users{?pagination}
Query parameter
key | value | description |
---|---|---|
pagination | false | ページネーション機能は未実装なのでfalseが必須 |
Example URI
GET /api/v1/users?pagination=false
URI Parameters
- pagination
boolean
(required) Example: false
Response
200
Headers
Content-Type: application/json; charset=UTF-8
Body
[
{
"Id": 0,
"UserName": "testuser0"
},
{
"Id": 1,
"UserName": "testuser1"
},
{
"Id": 2,
"UserName": "testuser2"
}
]