requinzz
スクリーンショット 2024-03-18 22.51.10.png
2024-03-18 13:52:05 UTC
Laravel Overview ENDPOINTS ログイン POST http://localhost/api/v1/login Auth ◎ ログイン POST ユーザーのログイン処理を行い、 ユーザー情報とAPIトークンを返却します。 ◎ ユーザー情報の登録 POST ◎ ログアウト POST Request ◎ ユーザーの退会 DELETE Notices Users > Body > SCHEMAS AgeGroup Gender LandmarkResource powered by Stoplight email string<email> password string Responses 200 401 403 422 UserResource Body data UserResource id integer email string nickname string age_group integer Allowed values: 1 2 3 4 5 6 7 gender integer Allowed values: 12 > landmarks array[LandmarkResource] api_token string ▼ Body 1 { 2 "email": "user@example.com", "password": "string" 4 } application/json ✓ Send API Request required required application/json required required Request Sample: Kotlin val client OkHttpClient() val mediaType = MediaType.parse("application/json") val body = RequestBody.create(mediaType, "{\\n \\"email\": \"us val request = Request.Builder() .url("http://localhost/api/v1/login") .post(body) .addHeader("Content-Type", "application/json") .addHeader("Accept", "application/json") .build() val response = client.newCall (request).execute() Response Example "data": { "id": 0, "email": "string", "nickname": "string", "age_group": 1, "gender": 1, "Landmarks": [ "id": "string", "name": "string", "on_foot": "string", "available_area_id": "string" required 1 { required 2 3 required 4 5 6 required 7 8 9 { 10 required 11 12 13 14 } 15 1 16 }, 17 18 } "api_token": "string"