Download OpenAPI specification:
ふるぷらユーザー向けAPI
新規ユーザーアカウントを作成します。
email required | string <email> |
password required | string <password> >= 8 characters |
name required | string <= 100 characters |
phone | string^\d{10,11}$ |
{- "email": "user@example.com",
- "password": "pa$$word",
- "name": "string",
- "phone": "string"
}
{- "access_token": "string",
- "refresh_token": "string",
- "expires_in": 0,
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "is_default": false
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
メールアドレスとパスワードでログインします。
email required | string <email> |
password required | string <password> |
{- "email": "user@example.com",
- "password": "pa$$word"
}
{- "access_token": "string",
- "refresh_token": "string",
- "expires_in": 0,
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "is_default": false
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "is_default": false
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
プロフィール情報を部分的に更新します。
name | string <= 100 characters |
phone | string^\d{10,11}$ |
{- "name": "string",
- "phone": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "name": "string",
- "phone": "string",
- "addresses": [
- {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "label": "string",
- "is_default": false
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
公開されている商品の一覧を取得します。カテゴリや価格帯でフィルタリング可能です。
page | integer >= 1 Default: 1 ページ番号 |
per_page | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
q | string 検索キーワード |
category | string |
min_price | integer |
max_price | integer |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "original_price": 0,
- "category": {
- "id": "string",
- "name": "string"
}, - "in_stock": true,
- "rating": 5,
- "review_count": 0
}
], - "pagination": {
- "page": 1,
- "per_page": 20,
- "total": 0,
- "total_pages": 0
}
}
{- "items": [
- {
- "product_id": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "original_price": 0,
- "category": {
- "id": "string",
- "name": "string"
}, - "in_stock": true,
- "rating": 5,
- "review_count": 0
}, - "quantity": 1,
- "price": 0,
- "subtotal": 0
}
], - "total_amount": 0,
- "item_count": 0,
- "estimated_tax": 0
}
指定した商品をカートに追加します。
product_id required | string |
quantity required | integer >= 1 |
{- "product_id": "string",
- "quantity": 1
}
{- "items": [
- {
- "product_id": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "original_price": 0,
- "category": {
- "id": "string",
- "name": "string"
}, - "in_stock": true,
- "rating": 5,
- "review_count": 0
}, - "quantity": 1,
- "price": 0,
- "subtotal": 0
}
], - "total_amount": 0,
- "item_count": 0,
- "estimated_tax": 0
}