Back to top

clinic

Markdown formatted description.

Subtitle

Also Markdown formatted. This also includes automatic “smartypants” formatting – hooray!

“A quote from another time and place”

Another paragraph. Code sample:

Authorization: patient_1@test.com 123123123

Auth

Group description

Note

Login
POST/login

  • このAPIはユーザーログインAPIです。sucess の場合、認証トークンが返されます。

  • メールとパスワードは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/login
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "email": "patient_1@test.com",
  "password": "123123123"
}
Response  200
HideShow
Body
{
    "token": "{{Token}}",
    "token_type": "bearer",
    "expires_in": 86400,
    "user": {
        "id": 3,(bigint)
        "name": "患者_1",(varchar)
        "email_verified_at": null, (timestamp)
        "role": "patient", (enum)        
        "firebase_key": null (varchar) 
    }
}

Note

Register(Email)
POST/register/email

  • 新規ユーザー登録

  • メールとパスワードは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/register/email
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "email": "patient_1@test.com",
    "password": "123123123",
}
Response  200
HideShow
Body
{
    "status": 1,
    "message": "",
    "data": {
        "role": "patient",(enum) - ('admin','clinic','patient','doctor')
        "id": 76
    }
}

Note

Register (Email with 招待コード)
POST/register/email/abc123xdd

  • 新規ユーザー登録。

  • 招待コードを持つユーザーにポイントが追加。

  • メールとパスワードは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/register/email/abc123xdd
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "email": "patient_1@test.com",
  "password": "123123123",
  "password_confirmation": "123123123"
}
Response  200
HideShow
Body
{
    "status": 1,
    "message": "",
    "data": {
        "role": "patient",(enum) - ('admin','clinic','patient','doctor')
        "id": 76
    }
}

Note

Register (Detail)
POST/register/email/detail

  • ユーザーのプロフィールを変更するAPIです。

  • このAPIはログイン後に使用できます。 現在ログインしているユーザーのプロフィールを変更します。

  • unique_id, nicknameは必須。指定がない場合、BadRequestを返す。

  • unique_idはuniqueする必要があります。他の患者と同じ unique_id を使用できません。

  • area_idは、データベースに登録されている数値のみを使用できます。

Example URI

POST http://test.clinic.lxa.jp/api/user/register/email/detail
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "patients[unique_id]": "abc123xdd",
    "patients[nickname]": "patient01",
    "patients[birthday]": "1994/11/14"
    "patients[intro]": "テストです。"
    "patients[area_id]": "1"
    "photo": "グループ 33.png"
    "patient_categories[]": "12"
    "patient_categories[]": "16"
    "patient_categories[]": "20"
    "patient_categories[]": "50"
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "id": 2,
    "user_id": 3,
    "name": "患者_1",
    "kana": "k1k2",
    "gender": "male",
    "phone_number": "123456890",
    "birthday": "1994/11/14",
    "created_at": "2021-02-11T13:49:42.000000Z",
    "updated_at": "2022-04-25T07:52:17.000000Z",
    "unique_id": "abc123xdd",
    "nickname": "patient01",
    "intro": "テストです。",
    "photo": null,
    "point": 1700,
    "area_id": "1",
    "firebase_key": null,
    "age": 27,
    "area": "北海道",
    "follows_count": 0,
    "followers_count": 0,
    "is_follow": false,
    "phone_only_number": "123456890"
  }
}

Note

Login(SNS)
POST/login/sns

Example URI

POST http://test.clinic.lxa.jp/api/user/login/sns
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "users[email]": "f2@1.com",
    "users[provider]": "facebook"
    "users[provider_id]": "123123122"
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "token": "{{token}}"
  }
}

Note

パスワード変更メール送信
POST/password/email

  • forgot password機能

  • メールは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/password/email
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "users[email]": "f2@1.com",
}
Response  200
HideShow
Body
{
  "status": "パスワードリセットメールを送信しました。",
  "send_flag": "successed"
}

Note

me
GET/me

  • 現在ログインしているユーザーの情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/me
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 2,
  "user_id": 3,
  "name": "患者_1",
  "kana": "k1k2",
  "gender": "male",
  "phone_number": "123456890",
  "birthday": "1994-11-14",
  "created_at": "2021-02-11T13:49:42.000000Z",
  "updated_at": "2022-04-25T07:52:17.000000Z",
  "unique_id": "abc123xdd",
  "nickname": "patient01",
  "intro": "テストです。",
  "photo": null,
  "point": 1700,
  "area_id": 1,
  "firebase_key": null,
  "age": 27,
  "area": "北海道",
  "follows_count": 0,
  "followers_count": 0,
  "is_follow": false,
  "phone_only_number": "123456890",
  "diaries": [
    {
      "id": 5,
      "patient_id": 2,
      "clinic_id": 1,
      "treat_date": "2020-01-15",
      "doctor_id": 74,
      "price": 306000,
      "created_at": "2022-03-21T16:45:15.000000Z",
      "updated_at": "2022-03-21T16:45:15.000000Z",
      "rate_01": 4,
      "rate_02": 4,
      "rate_03": 1,
      "rate_04": 5,
      "rate_05": 3,
      "rate_06": 4,
      "rate_07": 3,
      "rate_08": 2,
      "rate_09": 1,
      "ave_rate": 3,
      "cost_anesthetic": 1000,
      "cost_drug": 2000,
      "cost_other": 3000,
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": null,
      "patient_age": 27,
      "clinic_name": "クリニック1",
      "doctor_name": "医師-5",
      "last_content": "51",
      "is_favorite": true
    },
    {
      "id": 6,
      "patient_id": 2,
      "clinic_id": 1,
      "treat_date": "2020-11-02",
      "doctor_id": 77,
      "price": 500000,
      "created_at": "2022-03-21T17:04:55.000000Z",
      "updated_at": "2022-03-21T18:16:08.000000Z",
      "rate_01": 5,
      "rate_02": 4,
      "rate_03": 3,
      "rate_04": 2,
      "rate_05": 5,
      "rate_06": 5,
      "rate_07": 4,
      "rate_08": 5,
      "rate_09": 3,
      "ave_rate": 4,
      "cost_anesthetic": 1000,
      "cost_drug": 2000,
      "cost_other": 3000,
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": null,
      "patient_age": 27,
      "clinic_name": "クリニック1",
      "doctor_name": "医師-8",
      "last_content": "質問1に関した回答",
      "is_favorite": false
    }
  ],
  "counselings": [
    {
      "id": 1,
      "patient_id": 2,
      "clinic_id": 1,
      "doctor_id": 76,
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": 4,
      "created_at": "2022-03-25T00:01:27.000000Z",
      "updated_at": "2022-03-25T00:01:27.000000Z",
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-7",
      "is_favorite": true
    },
    {
      "id": 2,
      "patient_id": 2,
      "clinic_id": 1,
      "doctor_id": 76,
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": 4,
      "created_at": "2022-04-01T11:30:16.000000Z",
      "updated_at": "2022-04-01T11:30:16.000000Z",
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-7",
      "is_favorite": false
    },
    {
      "id": 3,
      "patient_id": 2,
      "clinic_id": 1,
      "doctor_id": 76,
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": 4,
      "created_at": "2022-04-01T11:34:04.000000Z",
      "updated_at": "2022-04-01T11:34:04.000000Z",
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-7",
      "is_favorite": false
    }
  ],
  "favorite_diaries": [
    {
      "id": 5,
      "patient_id": 2,
      "clinic_id": 1,
      "treat_date": "2020-01-15",
      "doctor_id": 74,
      "price": 306000,
      "created_at": "2022-03-21T16:45:15.000000Z",
      "updated_at": "2022-03-21T16:45:15.000000Z",
      "rate_01": 4,
      "rate_02": 4,
      "rate_03": 1,
      "rate_04": 5,
      "rate_05": 3,
      "rate_06": 4,
      "rate_07": 3,
      "rate_08": 2,
      "rate_09": 1,
      "ave_rate": 3,
      "cost_anesthetic": 1000,
      "cost_drug": 2000,
      "cost_other": 3000,
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": null,
      "patient_age": 27,
      "clinic_name": "クリニック1",
      "doctor_name": "医師-5",
      "last_content": "51",
      "is_favorite": true,
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 5,
        "favoriable_type": "App\\Models\\Diary"
      }
    }
  ],
  "favorite_questions": [
    {
      "id": 11,
      "patient_id": 17,
      "title": "11この鼻はどのような整形がベストですか?",
      "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
      "created_at": "2021-08-12T09:52:35.000000Z",
      "updated_at": "2021-08-12T09:52:36.000000Z",
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "is_favorite": true,
      "answers": [],
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 11,
        "favoriable_type": "App\\Models\\Question"
      }
    }
  ],
  "favorite_doctors": [
    {
      "id": 74,
      "user_id": 61,
      "clinic_id": 1,
      "kata_name": "田中 仁5",
      "hira_name": "田中 仁",
      "gender": null,
      "phone_number": null,
      "birthday": null,
      "area_id": null,
      "job_id": 1,
      "experience_year": 2,
      "spec0": null,
      "spec1": null,
      "spec2": null,
      "profile": "1997年ラシア大学医学部卒業 <br>",
      "career": "美容外科専門医(JSAS)<br>",
      "photo": null,
      "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
      "job_name": "医師",
      "spec0_name": null,
      "spec1_name": null,
      "spec2_name": null,
      "name": "医師-5",
      "email": "ggg@gmail.com",
      "role": "doctor",
      "likes_count": 1,
      "is_like": true,
      "favoriters_count": 1,
      "is_favorite": true,
      "views_count": 1,
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 74,
        "favoriable_type": "App\\Models\\Doctor"
      }
    }
  ],
  "favorite_counseling_reports": [
    {
      "id": 1,
      "patient_id": 2,
      "clinic_id": 1,
      "doctor_id": 76,
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": 4,
      "created_at": "2022-03-25T00:01:27.000000Z",
      "updated_at": "2022-03-25T00:01:27.000000Z",
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-7",
      "is_favorite": true,
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 1,
        "favoriable_type": "App\\Models\\CounselingReport"
      }
    }
  ],
  "favorite_menus": [
    {
      "id": 3,
      "clinic_id": 1,
      "name": "両目埋没法ダブル(5年保証付き)両目",
      "price": 248900,
      "description": "ああああ",
      "risk": "ああああ",
      "guarantee": "ああああ",
      "treat_time": 5,
      "basshi": null,
      "hospital_visit": null,
      "hare": null,
      "pain": 10,
      "bleeding": 10,
      "hospital_need": 10,
      "masui": 10,
      "makeup": 10,
      "shower": 10,
      "massage": 10,
      "sport_impossible": 5,
      "photo": null,
      "status": 0,
      "created_at": "2021-04-18T17:11:38.000000Z",
      "updated_at": "2021-06-24T00:49:17.000000Z",
      "is_favorite": true,
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 3,
        "favoriable_type": "App\\Models\\Menu"
      }
    }
  ],
  "favorite_clinics": [
    {
      "id": 1,
      "user_id": 1,
      "name": "クリニック1",
      "pref_id": null,
      "city_id": null,
      "town_id": null,
      "addr02": "ABCビル 3階",
      "nearest_station": "渋谷駅、代官山駅",
      "site": "abc.com",
      "access": "渋谷駅から徒歩5分",
      "phone_number": "012001234",
      "credit_card": null,
      "parking": null,
      "photo": null,
      "created_at": "2021-02-11T09:50:01.000000Z",
      "updated_at": "2022-03-19T04:03:29.000000Z",
      "firebase_key": "YKo7jsNyr5yIXe79xK1T",
      "diaries_count": 2,
      "counselings_count": 3,
      "menus_count": 33,
      "stuffs_count": 10,
      "favoriters_count": 1,
      "is_favorite": true,
      "address": "ABCビル 3階",
      "addr01": "",
      "user_name": "クリニック1",
      "email": "clinic@gmail.com",
      "role": "clinic",
      "work_times": [
        {
          "weekday": "月曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "火曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "水曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "木曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "金曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "土曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "日曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "祝日",
          "type": null,
          "start_time": null,
          "end_time": null
        }
      ],
      "pivot": {
        "patient_id": 2,
        "favoriable_id": 1,
        "favoriable_type": "App\\Models\\Clinic"
      }
    }
  ]
}

Master

Group description

Note

master
GET/master

  • プロジェクトで使用された定数のリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/master
Response  200
HideShow
Body
{
  "status": 1,
  "message": "",
  "data": {
    "treatCategories": [
      {
        "id": 1,
        "parent_id": null,
        "name": "二重",
        "all_children": [
          {
            "id": 27,
            "parent_id": 1,
            "name": "二重埋没法",
            "all_children": []
          },
          {
            "id": 28,
            "parent_id": 1,
            "name": "二重切開法",
            "all_children": []
          },
          {
            "id": 29,
            "parent_id": 1,
            "name": "目頭切開",
            "all_children": []
          },
          {
            "id": 30,
            "parent_id": 1,
            "name": "目尻切開",
            "all_children": []
          },
          {
            "id": 31,
            "parent_id": 1,
            "name": "グラマラスライン",
            "all_children": []
          },
          {
            "id": 32,
            "parent_id": 1,
            "name": "目尻靭帯移動",
            "all_children": []
          },
          {
            "id": 33,
            "parent_id": 1,
            "name": "眼瞼下垂",
            "all_children": []
          },
          {
            "id": 34,
            "parent_id": 1,
            "name": "眉下切開",
            "all_children": []
          },
          {
            "id": 35,
            "parent_id": 1,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 36,
            "parent_id": 1,
            "name": "タレ目ボトックス注射",
            "all_children": []
          },
          {
            "id": 37,
            "parent_id": 1,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 2,
        "parent_id": null,
        "name": "目元・クマ",
        "all_children": [
          {
            "id": 38,
            "parent_id": 2,
            "name": "涙袋形成",
            "all_children": []
          },
          {
            "id": 39,
            "parent_id": 2,
            "name": "上眼瞼リフト",
            "all_children": []
          },
          {
            "id": 40,
            "parent_id": 2,
            "name": "目の下の脂肪取り",
            "all_children": []
          },
          {
            "id": 41,
            "parent_id": 2,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 42,
            "parent_id": 2,
            "name": "蒙古ひだ形成",
            "all_children": []
          },
          {
            "id": 43,
            "parent_id": 2,
            "name": "グラマラスライン",
            "all_children": []
          },
          {
            "id": 44,
            "parent_id": 2,
            "name": "くま治療",
            "all_children": []
          },
          {
            "id": 45,
            "parent_id": 2,
            "name": "上まぶたたるみ取り",
            "all_children": []
          },
          {
            "id": 46,
            "parent_id": 2,
            "name": "下まぶたたるみ取り",
            "all_children": []
          },
          {
            "id": 47,
            "parent_id": 2,
            "name": "上まぶたの脂肪取り",
            "all_children": []
          },
          {
            "id": 48,
            "parent_id": 2,
            "name": "下まぶたの脂肪取り",
            "all_children": []
          },
          {
            "id": 49,
            "parent_id": 2,
            "name": "まぶたの脂肪溶解注射",
            "all_children": []
          },
          {
            "id": 50,
            "parent_id": 2,
            "name": "ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 51,
            "parent_id": 2,
            "name": "まつ毛・眉毛の植毛",
            "all_children": []
          },
          {
            "id": 52,
            "parent_id": 2,
            "name": "逆さまつげ修正",
            "all_children": []
          },
          {
            "id": 53,
            "parent_id": 2,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 54,
            "parent_id": 2,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 55,
            "parent_id": 2,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 3,
        "parent_id": null,
        "name": "鼻",
        "all_children": [
          {
            "id": 56,
            "parent_id": 3,
            "name": "隆鼻術",
            "all_children": []
          },
          {
            "id": 57,
            "parent_id": 3,
            "name": "鼻尖形成",
            "all_children": []
          },
          {
            "id": 58,
            "parent_id": 3,
            "name": "鼻中隔延長",
            "all_children": []
          },
          {
            "id": 59,
            "parent_id": 3,
            "name": "小鼻縮小",
            "all_children": []
          },
          {
            "id": 60,
            "parent_id": 3,
            "name": "鼻ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 61,
            "parent_id": 3,
            "name": "レディエッセ注入",
            "all_children": []
          },
          {
            "id": 62,
            "parent_id": 3,
            "name": "軟骨移植",
            "all_children": []
          },
          {
            "id": 63,
            "parent_id": 3,
            "name": "骨切幅寄せ",
            "all_children": []
          },
          {
            "id": 64,
            "parent_id": 3,
            "name": "ハンプ切除",
            "all_children": []
          },
          {
            "id": 65,
            "parent_id": 3,
            "name": "斜鼻修正",
            "all_children": []
          },
          {
            "id": 66,
            "parent_id": 3,
            "name": "鼻翼挙上手術",
            "all_children": []
          },
          {
            "id": 67,
            "parent_id": 3,
            "name": "プロテーゼ除去",
            "all_children": []
          },
          {
            "id": 68,
            "parent_id": 3,
            "name": "ハイコ・ミスコ",
            "all_children": []
          },
          {
            "id": 69,
            "parent_id": 3,
            "name": "鼻孔縁挙上",
            "all_children": []
          },
          {
            "id": 70,
            "parent_id": 3,
            "name": "鼻翼基部プロテーゼ",
            "all_children": []
          },
          {
            "id": 71,
            "parent_id": 3,
            "name": "眉間プロテーゼ",
            "all_children": []
          },
          {
            "id": 72,
            "parent_id": 3,
            "name": "鼻尖縮小",
            "all_children": []
          },
          {
            "id": 73,
            "parent_id": 3,
            "name": "真皮移植",
            "all_children": []
          },
          {
            "id": 74,
            "parent_id": 3,
            "name": "鼻孔縁下降",
            "all_children": []
          },
          {
            "id": 75,
            "parent_id": 3,
            "name": "鼻修正",
            "all_children": []
          },
          {
            "id": 76,
            "parent_id": 3,
            "name": "系リフト",
            "all_children": []
          },
          {
            "id": 77,
            "parent_id": 3,
            "name": "わし鼻・段鼻修正・ハンプ切除",
            "all_children": []
          },
          {
            "id": 78,
            "parent_id": 3,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 79,
            "parent_id": 3,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 4,
        "parent_id": null,
        "name": "顎・輪郭・小顔",
        "all_children": [
          {
            "id": 80,
            "parent_id": 4,
            "name": "あごヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 81,
            "parent_id": 4,
            "name": "額ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 82,
            "parent_id": 4,
            "name": "頬ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 83,
            "parent_id": 4,
            "name": "あごレディエッセ注入",
            "all_children": []
          },
          {
            "id": 84,
            "parent_id": 4,
            "name": "あごボトックス",
            "all_children": []
          },
          {
            "id": 85,
            "parent_id": 4,
            "name": "エラ・小顔ボトックス",
            "all_children": []
          },
          {
            "id": 86,
            "parent_id": 4,
            "name": "あごプロテーゼ",
            "all_children": []
          },
          {
            "id": 87,
            "parent_id": 4,
            "name": "額プロテーゼ",
            "all_children": []
          },
          {
            "id": 88,
            "parent_id": 4,
            "name": "あご骨切り",
            "all_children": []
          },
          {
            "id": 89,
            "parent_id": 4,
            "name": "エラ骨削り",
            "all_children": []
          },
          {
            "id": 90,
            "parent_id": 4,
            "name": "頬骨削り",
            "all_children": []
          },
          {
            "id": 91,
            "parent_id": 4,
            "name": "眉骨削り",
            "all_children": []
          },
          {
            "id": 92,
            "parent_id": 4,
            "name": "脂肪吸引",
            "all_children": []
          },
          {
            "id": 93,
            "parent_id": 4,
            "name": "脂肪溶解注射",
            "all_children": []
          },
          {
            "id": 94,
            "parent_id": 4,
            "name": "バッカルファット除去",
            "all_children": []
          },
          {
            "id": 95,
            "parent_id": 4,
            "name": "メーラーファット除去",
            "all_children": []
          },
          {
            "id": 96,
            "parent_id": 4,
            "name": "リフトアップ",
            "all_children": []
          },
          {
            "id": 97,
            "parent_id": 4,
            "name": "脂肪注入",
            "all_children": []
          },
          {
            "id": 98,
            "parent_id": 4,
            "name": "額脂肪注入",
            "all_children": []
          },
          {
            "id": 99,
            "parent_id": 4,
            "name": "額を丸く",
            "all_children": []
          },
          {
            "id": 100,
            "parent_id": 4,
            "name": "こめかみ形成",
            "all_children": []
          },
          {
            "id": 101,
            "parent_id": 4,
            "name": "輪郭修正",
            "all_children": []
          },
          {
            "id": 102,
            "parent_id": 4,
            "name": "脂肪冷却",
            "all_children": []
          },
          {
            "id": 103,
            "parent_id": 4,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 104,
            "parent_id": 4,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 5,
        "parent_id": null,
        "name": "耳",
        "all_children": [
          {
            "id": 105,
            "parent_id": 5,
            "name": "立ち耳",
            "all_children": []
          },
          {
            "id": 106,
            "parent_id": 5,
            "name": "柔道耳",
            "all_children": []
          },
          {
            "id": 107,
            "parent_id": 5,
            "name": "耳たぶピアス",
            "all_children": []
          },
          {
            "id": 108,
            "parent_id": 5,
            "name": "耳軟骨ピアス",
            "all_children": []
          },
          {
            "id": 109,
            "parent_id": 5,
            "name": "耳鼻科",
            "all_children": []
          },
          {
            "id": 110,
            "parent_id": 5,
            "name": "ボディピアス",
            "all_children": []
          },
          {
            "id": 111,
            "parent_id": 5,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 6,
        "parent_id": null,
        "name": "口元",
        "all_children": [
          {
            "id": 112,
            "parent_id": 6,
            "name": "唇ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 113,
            "parent_id": 6,
            "name": "口角ボトックス",
            "all_children": []
          },
          {
            "id": 114,
            "parent_id": 6,
            "name": "口唇縮小術",
            "all_children": []
          },
          {
            "id": 115,
            "parent_id": 6,
            "name": "口角挙上",
            "all_children": []
          },
          {
            "id": 116,
            "parent_id": 6,
            "name": "人中短縮術",
            "all_children": []
          },
          {
            "id": 117,
            "parent_id": 6,
            "name": "ガミースマイル手術",
            "all_children": []
          },
          {
            "id": 118,
            "parent_id": 6,
            "name": "セットバック",
            "all_children": []
          },
          {
            "id": 119,
            "parent_id": 6,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 7,
        "parent_id": null,
        "name": "歯科",
        "all_children": [
          {
            "id": 120,
            "parent_id": 7,
            "name": "インプラント",
            "all_children": []
          },
          {
            "id": 121,
            "parent_id": 7,
            "name": "歯科矯正",
            "all_children": []
          },
          {
            "id": 122,
            "parent_id": 7,
            "name": "インビザライン",
            "all_children": []
          },
          {
            "id": 123,
            "parent_id": 7,
            "name": "セラミック",
            "all_children": []
          },
          {
            "id": 124,
            "parent_id": 7,
            "name": "ホワイトニング",
            "all_children": []
          },
          {
            "id": 125,
            "parent_id": 7,
            "name": "義歯・入れ歯",
            "all_children": []
          },
          {
            "id": 126,
            "parent_id": 7,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 127,
            "parent_id": 7,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 8,
        "parent_id": null,
        "name": "しわ・ほうれい線",
        "all_children": [
          {
            "id": 128,
            "parent_id": 8,
            "name": "ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 129,
            "parent_id": 8,
            "name": "アグネス",
            "all_children": []
          },
          {
            "id": 130,
            "parent_id": 8,
            "name": "ベビーコラーゲン",
            "all_children": []
          },
          {
            "id": 131,
            "parent_id": 8,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 132,
            "parent_id": 8,
            "name": "ボトックス注射",
            "all_children": []
          },
          {
            "id": 133,
            "parent_id": 8,
            "name": "ボツリヌストキシン",
            "all_children": []
          },
          {
            "id": 134,
            "parent_id": 8,
            "name": "フェイスリフト",
            "all_children": []
          },
          {
            "id": 135,
            "parent_id": 8,
            "name": "glow(グロー)注射",
            "all_children": []
          },
          {
            "id": 136,
            "parent_id": 8,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 137,
            "parent_id": 8,
            "name": "ポラリス",
            "all_children": []
          },
          {
            "id": 138,
            "parent_id": 8,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 139,
            "parent_id": 8,
            "name": "ジェネシス",
            "all_children": []
          },
          {
            "id": 140,
            "parent_id": 8,
            "name": "HIFU",
            "all_children": []
          },
          {
            "id": 141,
            "parent_id": 8,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 142,
            "parent_id": 8,
            "name": "糸リフト",
            "all_children": []
          },
          {
            "id": 143,
            "parent_id": 8,
            "name": "イントラジェン",
            "all_children": []
          },
          {
            "id": 144,
            "parent_id": 8,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 145,
            "parent_id": 8,
            "name": "フォトフェイシャル",
            "all_children": []
          },
          {
            "id": 146,
            "parent_id": 8,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 147,
            "parent_id": 8,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 148,
            "parent_id": 8,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 149,
            "parent_id": 8,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 9,
        "parent_id": null,
        "name": "たるみ",
        "all_children": [
          {
            "id": 150,
            "parent_id": 9,
            "name": "フェイスリフト",
            "all_children": []
          },
          {
            "id": 151,
            "parent_id": 9,
            "name": "HIFU",
            "all_children": []
          },
          {
            "id": 152,
            "parent_id": 9,
            "name": "ポラリス",
            "all_children": []
          },
          {
            "id": 153,
            "parent_id": 9,
            "name": "RF治療",
            "all_children": []
          },
          {
            "id": 154,
            "parent_id": 9,
            "name": "糸リフト",
            "all_children": []
          },
          {
            "id": 155,
            "parent_id": 9,
            "name": "ヒアルロン酸注入",
            "all_children": []
          },
          {
            "id": 156,
            "parent_id": 9,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 157,
            "parent_id": 9,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 158,
            "parent_id": 9,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 159,
            "parent_id": 9,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 160,
            "parent_id": 9,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 161,
            "parent_id": 9,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 10,
        "parent_id": null,
        "name": "しみ・そばかす・肝斑",
        "all_children": [
          {
            "id": 162,
            "parent_id": 10,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 163,
            "parent_id": 10,
            "name": "シミ取りレーザー",
            "all_children": []
          },
          {
            "id": 164,
            "parent_id": 10,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 165,
            "parent_id": 10,
            "name": "レーザートーニング",
            "all_children": []
          },
          {
            "id": 166,
            "parent_id": 10,
            "name": "イオン導入",
            "all_children": []
          },
          {
            "id": 167,
            "parent_id": 10,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 168,
            "parent_id": 10,
            "name": "美容点滴",
            "all_children": []
          },
          {
            "id": 169,
            "parent_id": 10,
            "name": "白玉注射",
            "all_children": []
          },
          {
            "id": 170,
            "parent_id": 10,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 171,
            "parent_id": 10,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 172,
            "parent_id": 10,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 173,
            "parent_id": 10,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 11,
        "parent_id": null,
        "name": "毛穴",
        "all_children": [
          {
            "id": 174,
            "parent_id": 11,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 175,
            "parent_id": 11,
            "name": "イオン導入",
            "all_children": []
          },
          {
            "id": 176,
            "parent_id": 11,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 177,
            "parent_id": 11,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 178,
            "parent_id": 11,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 179,
            "parent_id": 11,
            "name": "美容内服薬",
            "all_children": []
          },
          {
            "id": 180,
            "parent_id": 11,
            "name": "ポラリス",
            "all_children": []
          },
          {
            "id": 181,
            "parent_id": 11,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 182,
            "parent_id": 11,
            "name": "水光注射",
            "all_children": []
          },
          {
            "id": 183,
            "parent_id": 11,
            "name": "美容点滴",
            "all_children": []
          },
          {
            "id": 184,
            "parent_id": 11,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 185,
            "parent_id": 11,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 186,
            "parent_id": 11,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 187,
            "parent_id": 11,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 12,
        "parent_id": null,
        "name": "ほくろ・イボ",
        "all_children": [
          {
            "id": 188,
            "parent_id": 12,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 189,
            "parent_id": 12,
            "name": "切除縫縮手術",
            "all_children": []
          },
          {
            "id": 190,
            "parent_id": 12,
            "name": "皮膚切除術",
            "all_children": []
          },
          {
            "id": 191,
            "parent_id": 12,
            "name": "YAGレーザー",
            "all_children": []
          },
          {
            "id": 192,
            "parent_id": 12,
            "name": "電気メス",
            "all_children": []
          },
          {
            "id": 193,
            "parent_id": 12,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 194,
            "parent_id": 12,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 195,
            "parent_id": 12,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 196,
            "parent_id": 12,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 13,
        "parent_id": null,
        "name": "くすみ",
        "all_children": [
          {
            "id": 197,
            "parent_id": 13,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 198,
            "parent_id": 13,
            "name": "イオン導入",
            "all_children": []
          },
          {
            "id": 199,
            "parent_id": 13,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 200,
            "parent_id": 13,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 201,
            "parent_id": 13,
            "name": "美容点滴",
            "all_children": []
          },
          {
            "id": 202,
            "parent_id": 13,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 203,
            "parent_id": 13,
            "name": "レーザートーニング",
            "all_children": []
          },
          {
            "id": 204,
            "parent_id": 13,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 205,
            "parent_id": 13,
            "name": "プラセンタ注射",
            "all_children": []
          },
          {
            "id": 206,
            "parent_id": 13,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 207,
            "parent_id": 13,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 208,
            "parent_id": 13,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 209,
            "parent_id": 13,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 14,
        "parent_id": null,
        "name": "にきび・にきび跡",
        "all_children": [
          {
            "id": 210,
            "parent_id": 14,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 211,
            "parent_id": 14,
            "name": "イオン導入",
            "all_children": []
          },
          {
            "id": 212,
            "parent_id": 14,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 213,
            "parent_id": 14,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 214,
            "parent_id": 14,
            "name": "美容点滴",
            "all_children": []
          },
          {
            "id": 215,
            "parent_id": 14,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 216,
            "parent_id": 14,
            "name": "美容点滴",
            "all_children": []
          },
          {
            "id": 217,
            "parent_id": 14,
            "name": "ピーリング",
            "all_children": []
          },
          {
            "id": 218,
            "parent_id": 14,
            "name": "レーザートーニング",
            "all_children": []
          },
          {
            "id": 219,
            "parent_id": 14,
            "name": "ジェネシス",
            "all_children": []
          },
          {
            "id": 220,
            "parent_id": 14,
            "name": "プラセンタ注射",
            "all_children": []
          },
          {
            "id": 221,
            "parent_id": 14,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 222,
            "parent_id": 14,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 223,
            "parent_id": 14,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 224,
            "parent_id": 14,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 15,
        "parent_id": null,
        "name": "赤ら顔",
        "all_children": [
          {
            "id": 225,
            "parent_id": 15,
            "name": "CO2レーザー",
            "all_children": []
          },
          {
            "id": 226,
            "parent_id": 15,
            "name": "フォトRF",
            "all_children": []
          },
          {
            "id": 227,
            "parent_id": 15,
            "name": "ジェネシス",
            "all_children": []
          },
          {
            "id": 228,
            "parent_id": 15,
            "name": "フォトフェイシャル",
            "all_children": []
          },
          {
            "id": 229,
            "parent_id": 15,
            "name": "ダーマペン4",
            "all_children": []
          },
          {
            "id": 230,
            "parent_id": 15,
            "name": "イオン導入",
            "all_children": []
          },
          {
            "id": 231,
            "parent_id": 15,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 232,
            "parent_id": 15,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 233,
            "parent_id": 15,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 234,
            "parent_id": 15,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 16,
        "parent_id": null,
        "name": "あざ",
        "all_children": [
          {
            "id": 235,
            "parent_id": 16,
            "name": " ピコレーザー",
            "all_children": []
          },
          {
            "id": 236,
            "parent_id": 16,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 237,
            "parent_id": 16,
            "name": "YAGレーザー",
            "all_children": []
          },
          {
            "id": 238,
            "parent_id": 16,
            "name": "内服・外用薬",
            "all_children": []
          },
          {
            "id": 239,
            "parent_id": 16,
            "name": "光治療",
            "all_children": []
          },
          {
            "id": 240,
            "parent_id": 16,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 241,
            "parent_id": 16,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 17,
        "parent_id": null,
        "name": "豊胸・バスト・乳首",
        "all_children": [
          {
            "id": 242,
            "parent_id": 17,
            "name": "豊胸(脂肪注入)",
            "all_children": []
          },
          {
            "id": 243,
            "parent_id": 17,
            "name": "豊胸(シリコンパック)",
            "all_children": []
          },
          {
            "id": 244,
            "parent_id": 17,
            "name": "豊胸(ヒアルロン酸)",
            "all_children": []
          },
          {
            "id": 245,
            "parent_id": 17,
            "name": "エイジングブレスト",
            "all_children": []
          },
          {
            "id": 246,
            "parent_id": 17,
            "name": "ハイブリッド",
            "all_children": []
          },
          {
            "id": 247,
            "parent_id": 17,
            "name": "陥没乳首(乳頭)",
            "all_children": []
          },
          {
            "id": 248,
            "parent_id": 17,
            "name": "乳首縮小(乳頭)",
            "all_children": []
          },
          {
            "id": 249,
            "parent_id": 17,
            "name": "乳輪縮小",
            "all_children": []
          },
          {
            "id": 250,
            "parent_id": 17,
            "name": "乳房縮小",
            "all_children": []
          },
          {
            "id": 251,
            "parent_id": 17,
            "name": "乳房吊上",
            "all_children": []
          },
          {
            "id": 252,
            "parent_id": 17,
            "name": "垂れ乳修正",
            "all_children": []
          },
          {
            "id": 253,
            "parent_id": 17,
            "name": "吸収性ジェル",
            "all_children": []
          },
          {
            "id": 254,
            "parent_id": 17,
            "name": "ヒアルロニダーゼ",
            "all_children": []
          },
          {
            "id": 255,
            "parent_id": 17,
            "name": "人工乳腺(バッグ)除去",
            "all_children": []
          },
          {
            "id": 256,
            "parent_id": 17,
            "name": "乳がん検診",
            "all_children": []
          },
          {
            "id": 257,
            "parent_id": 17,
            "name": "乳房再建",
            "all_children": []
          },
          {
            "id": 258,
            "parent_id": 17,
            "name": "予防手術",
            "all_children": []
          },
          {
            "id": 259,
            "parent_id": 17,
            "name": "乳輪・乳頭の美白",
            "all_children": []
          },
          {
            "id": 260,
            "parent_id": 17,
            "name": "乳輪のぶつぶつ除去",
            "all_children": []
          },
          {
            "id": 261,
            "parent_id": 17,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 262,
            "parent_id": 17,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 18,
        "parent_id": null,
        "name": "痩身・脂肪吸引・部分やせ",
        "all_children": [
          {
            "id": 263,
            "parent_id": 18,
            "name": "GLP-1ダイエット",
            "all_children": []
          },
          {
            "id": 264,
            "parent_id": 18,
            "name": "エムスカルプト",
            "all_children": []
          },
          {
            "id": 265,
            "parent_id": 18,
            "name": "インディバ",
            "all_children": []
          },
          {
            "id": 266,
            "parent_id": 18,
            "name": "脂肪吸引(二の腕)",
            "all_children": []
          },
          {
            "id": 267,
            "parent_id": 18,
            "name": "脂肪吸引(太もも)",
            "all_children": []
          },
          {
            "id": 268,
            "parent_id": 18,
            "name": "脂肪吸引(お腹)",
            "all_children": []
          },
          {
            "id": 269,
            "parent_id": 18,
            "name": "脂肪吸引(ヒップ)",
            "all_children": []
          },
          {
            "id": 270,
            "parent_id": 18,
            "name": "脂肪溶解注射",
            "all_children": []
          },
          {
            "id": 271,
            "parent_id": 18,
            "name": "脂肪溶解注射(二の腕)",
            "all_children": []
          },
          {
            "id": 272,
            "parent_id": 18,
            "name": "脂肪溶解注射(太もも)",
            "all_children": []
          },
          {
            "id": 273,
            "parent_id": 18,
            "name": "脂肪溶解注射(お腹)",
            "all_children": []
          },
          {
            "id": 274,
            "parent_id": 18,
            "name": "脂肪溶解注射(ヒップ)",
            "all_children": []
          },
          {
            "id": 275,
            "parent_id": 18,
            "name": "他院で受けた修正",
            "all_children": []
          },
          {
            "id": 276,
            "parent_id": 18,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 19,
        "parent_id": null,
        "name": "脱毛",
        "all_children": [
          {
            "id": 277,
            "parent_id": 19,
            "name": "医療レーザー脱毛",
            "all_children": []
          },
          {
            "id": 278,
            "parent_id": 19,
            "name": "ニードル脱毛",
            "all_children": []
          },
          {
            "id": 279,
            "parent_id": 19,
            "name": "光脱毛",
            "all_children": []
          },
          {
            "id": 280,
            "parent_id": 19,
            "name": "ワキ脱毛",
            "all_children": []
          },
          {
            "id": 281,
            "parent_id": 19,
            "name": "VIO脱毛",
            "all_children": []
          },
          {
            "id": 282,
            "parent_id": 19,
            "name": "顔、うなじの脱毛",
            "all_children": []
          },
          {
            "id": 283,
            "parent_id": 19,
            "name": "腕の脱毛",
            "all_children": []
          },
          {
            "id": 284,
            "parent_id": 19,
            "name": "足の脱毛",
            "all_children": []
          },
          {
            "id": 285,
            "parent_id": 19,
            "name": "背中・お腹の脱毛",
            "all_children": []
          },
          {
            "id": 286,
            "parent_id": 19,
            "name": "髭脱毛",
            "all_children": []
          },
          {
            "id": 287,
            "parent_id": 19,
            "name": "顔脱毛",
            "all_children": []
          },
          {
            "id": 288,
            "parent_id": 19,
            "name": "全身脱毛",
            "all_children": []
          },
          {
            "id": 289,
            "parent_id": 19,
            "name": "その他の脱毛",
            "all_children": []
          }
        ]
      },
      {
        "id": 20,
        "parent_id": null,
        "name": "タトゥー・刺青除去",
        "all_children": [
          {
            "id": 290,
            "parent_id": 20,
            "name": "YAGレーザー",
            "all_children": []
          },
          {
            "id": 291,
            "parent_id": 20,
            "name": "ピコレーザー",
            "all_children": []
          },
          {
            "id": 292,
            "parent_id": 20,
            "name": "刺青除去",
            "all_children": []
          },
          {
            "id": 293,
            "parent_id": 20,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 21,
        "parent_id": null,
        "name": "わきが・多汗症",
        "all_children": [
          {
            "id": 294,
            "parent_id": 21,
            "name": "ボトックス注射",
            "all_children": []
          },
          {
            "id": 295,
            "parent_id": 21,
            "name": "レーザー治療",
            "all_children": []
          },
          {
            "id": 296,
            "parent_id": 21,
            "name": "ミラドライ",
            "all_children": []
          },
          {
            "id": 297,
            "parent_id": 21,
            "name": "手術",
            "all_children": []
          },
          {
            "id": 298,
            "parent_id": 21,
            "name": "注射治療",
            "all_children": []
          },
          {
            "id": 299,
            "parent_id": 21,
            "name": "外用薬",
            "all_children": []
          },
          {
            "id": 300,
            "parent_id": 21,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 22,
        "parent_id": null,
        "name": "アートメイク",
        "all_children": [
          {
            "id": 301,
            "parent_id": 22,
            "name": "眉のアートメイク",
            "all_children": []
          },
          {
            "id": 302,
            "parent_id": 22,
            "name": "アイラインのアートメイク",
            "all_children": []
          },
          {
            "id": 303,
            "parent_id": 22,
            "name": "リップアートメイク",
            "all_children": []
          },
          {
            "id": 304,
            "parent_id": 22,
            "name": "ほくろのアートメイク",
            "all_children": []
          },
          {
            "id": 305,
            "parent_id": 22,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 23,
        "parent_id": null,
        "name": "泌尿器科",
        "all_children": [
          {
            "id": 306,
            "parent_id": 23,
            "name": "性病",
            "all_children": []
          },
          {
            "id": 307,
            "parent_id": 23,
            "name": "ED治療",
            "all_children": []
          },
          {
            "id": 308,
            "parent_id": 23,
            "name": "前立腺",
            "all_children": []
          },
          {
            "id": 309,
            "parent_id": 23,
            "name": "結石",
            "all_children": []
          },
          {
            "id": 310,
            "parent_id": 23,
            "name": "腫瘍",
            "all_children": []
          },
          {
            "id": 311,
            "parent_id": 23,
            "name": "HIVエイズ検査",
            "all_children": []
          },
          {
            "id": 312,
            "parent_id": 23,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 24,
        "parent_id": null,
        "name": "薄毛",
        "all_children": [
          {
            "id": 313,
            "parent_id": 24,
            "name": "男性型脱毛症(AGA)",
            "all_children": []
          },
          {
            "id": 314,
            "parent_id": 24,
            "name": "女性男性型脱毛症(FAGA)",
            "all_children": []
          },
          {
            "id": 315,
            "parent_id": 24,
            "name": "びまん性脱毛症",
            "all_children": []
          },
          {
            "id": 316,
            "parent_id": 24,
            "name": "分娩後脱毛",
            "all_children": []
          },
          {
            "id": 317,
            "parent_id": 24,
            "name": "円形脱毛症",
            "all_children": []
          },
          {
            "id": 318,
            "parent_id": 24,
            "name": "脂漏性脱毛症(粃糠性)",
            "all_children": []
          },
          {
            "id": 319,
            "parent_id": 24,
            "name": "抜毛症(トリコチロマニア)",
            "all_children": []
          },
          {
            "id": 320,
            "parent_id": 24,
            "name": "プロペシア",
            "all_children": []
          },
          {
            "id": 321,
            "parent_id": 24,
            "name": "HARG療法",
            "all_children": []
          },
          {
            "id": 322,
            "parent_id": 24,
            "name": "育毛メソセラピー",
            "all_children": []
          },
          {
            "id": 323,
            "parent_id": 24,
            "name": "内服・外用薬治療",
            "all_children": []
          },
          {
            "id": 324,
            "parent_id": 24,
            "name": "植毛",
            "all_children": []
          },
          {
            "id": 325,
            "parent_id": 24,
            "name": "人工毛植毛",
            "all_children": []
          }
        ]
      },
      {
        "id": 25,
        "parent_id": null,
        "name": "婦人科・女性器",
        "all_children": [
          {
            "id": 326,
            "parent_id": 25,
            "name": "小陰唇縮小",
            "all_children": []
          },
          {
            "id": 327,
            "parent_id": 25,
            "name": "処女膜再生",
            "all_children": []
          },
          {
            "id": 328,
            "parent_id": 25,
            "name": "膣縮小",
            "all_children": []
          },
          {
            "id": 329,
            "parent_id": 25,
            "name": "妊娠線",
            "all_children": []
          },
          {
            "id": 330,
            "parent_id": 25,
            "name": "すそワキガ",
            "all_children": []
          },
          {
            "id": 331,
            "parent_id": 25,
            "name": "クリトリス包茎",
            "all_children": []
          },
          {
            "id": 332,
            "parent_id": 25,
            "name": "性病",
            "all_children": []
          },
          {
            "id": 333,
            "parent_id": 25,
            "name": "HIVエイズ検査",
            "all_children": []
          },
          {
            "id": 334,
            "parent_id": 25,
            "name": "不妊治療",
            "all_children": []
          },
          {
            "id": 335,
            "parent_id": 25,
            "name": "産婦人科",
            "all_children": []
          },
          {
            "id": 336,
            "parent_id": 25,
            "name": "婦人科検診",
            "all_children": []
          },
          {
            "id": 337,
            "parent_id": 25,
            "name": "乳がん検診",
            "all_children": []
          },
          {
            "id": 338,
            "parent_id": 25,
            "name": "子宮がん検診",
            "all_children": []
          },
          {
            "id": 339,
            "parent_id": 25,
            "name": "その他",
            "all_children": []
          }
        ]
      },
      {
        "id": 26,
        "parent_id": null,
        "name": "その他",
        "all_children": [
          {
            "id": 340,
            "parent_id": 26,
            "name": "再生医療",
            "all_children": []
          },
          {
            "id": 341,
            "parent_id": 26,
            "name": "下肢静脈瘤",
            "all_children": []
          },
          {
            "id": 342,
            "parent_id": 26,
            "name": "レーシック・ICL",
            "all_children": []
          },
          {
            "id": 343,
            "parent_id": 26,
            "name": "ホルモン治療",
            "all_children": []
          },
          {
            "id": 344,
            "parent_id": 26,
            "name": "いびき治療",
            "all_children": []
          },
          {
            "id": 345,
            "parent_id": 26,
            "name": "粉瘤(アテローム)",
            "all_children": []
          },
          {
            "id": 346,
            "parent_id": 26,
            "name": "肩こり・腰痛注射",
            "all_children": []
          },
          {
            "id": 347,
            "parent_id": 26,
            "name": "でべそ修正",
            "all_children": []
          },
          {
            "id": 348,
            "parent_id": 26,
            "name": "唇修正",
            "all_children": []
          },
          {
            "id": 349,
            "parent_id": 26,
            "name": "豊尻・ヒップアップ",
            "all_children": []
          }
        ]
      }
    ]
  }
}

ユーザー

Group description

Note

一覧
GET/patients

  • 現在登録されている患者のリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/patients
Response  200
HideShow
Body
{
  "data": [
    {
      "id": 1,
      "user_id": 2,
      "name": "患者_0",
      "kana": "カンジャ_0",
      "gender": "female",
      "phone_number": "+3962773747025",
      "birthday": "1986-12-02",
      "created_at": "2021-02-11T13:49:41.000000Z",
      "updated_at": "2021-02-11T13:49:41.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 35,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "3962773747025"
    },
    {
      "id": 2,
      "user_id": 3,
      "name": "患者_1",
      "kana": "k1k2",
      "gender": "male",
      "phone_number": "123456890",
      "birthday": "1994-11-14",
      "created_at": "2021-02-11T13:49:42.000000Z",
      "updated_at": "2022-04-25T07:52:17.000000Z",
      "unique_id": "abc123xdd",
      "nickname": "patient01",
      "intro": "テストです。",
      "photo": null,
      "point": 1700,
      "area_id": 1,
      "firebase_key": null,
      "age": 27,
      "area": "北海道",
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "123456890"
    },
    {
      "id": 3,
      "user_id": 4,
      "name": "患者_2",
      "kana": "カンジャ_2",
      "gender": "male",
      "phone_number": "+5813293633462",
      "birthday": "1979-02-23",
      "created_at": "2021-02-11T13:49:42.000000Z",
      "updated_at": "2021-02-11T13:49:42.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 43,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "5813293633462"
    },
    {
      "id": 4,
      "user_id": 5,
      "name": "患者_3",
      "kana": "カンジャ_3",
      "gender": "female",
      "phone_number": "+4931819507815",
      "birthday": "2015-03-10",
      "created_at": "2021-02-11T13:49:43.000000Z",
      "updated_at": "2021-02-11T13:49:43.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 7,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "4931819507815"
    },
    {
      "id": 5,
      "user_id": 6,
      "name": "患者_4",
      "kana": "カンジャ_4",
      "gender": "female",
      "phone_number": "+5071608738270",
      "birthday": "2014-05-15",
      "created_at": "2021-02-11T13:49:44.000000Z",
      "updated_at": "2021-02-11T13:49:44.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 7,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "5071608738270"
    },
    {
      "id": 6,
      "user_id": 7,
      "name": "患者_5",
      "kana": "カンジャ_5",
      "gender": "male",
      "phone_number": "+4821510780254",
      "birthday": "2005-08-03",
      "created_at": "2021-02-11T13:49:44.000000Z",
      "updated_at": "2021-02-11T13:49:45.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 16,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "4821510780254"
    },
    {
      "id": 7,
      "user_id": 8,
      "name": "患者_6",
      "kana": "カンジャ_6",
      "gender": "male",
      "phone_number": "+5981674360267",
      "birthday": "2008-10-31",
      "created_at": "2021-02-11T13:49:45.000000Z",
      "updated_at": "2021-02-11T13:49:45.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 13,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "5981674360267"
    },
    {
      "id": 8,
      "user_id": 9,
      "name": "患者_7",
      "kana": "カンジャ_7",
      "gender": "female",
      "phone_number": "+6519555666517",
      "birthday": "2015-03-10",
      "created_at": "2021-02-11T13:49:46.000000Z",
      "updated_at": "2021-02-11T13:49:46.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 7,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "6519555666517"
    },
    {
      "id": 9,
      "user_id": 10,
      "name": "患者_8",
      "kana": "カンジャ_8",
      "gender": "male",
      "phone_number": "+3195663705895",
      "birthday": "2006-06-12",
      "created_at": "2021-02-11T13:49:47.000000Z",
      "updated_at": "2021-02-11T13:49:47.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 15,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "3195663705895"
    },
    {
      "id": 10,
      "user_id": 11,
      "name": "患者_9",
      "kana": "カンジャ_9",
      "gender": "female",
      "phone_number": "+3533483234022",
      "birthday": "2015-10-05",
      "created_at": "2021-02-11T13:49:47.000000Z",
      "updated_at": "2021-02-11T13:49:47.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 6,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "3533483234022"
    },
    {
      "id": 11,
      "user_id": 12,
      "name": "患者_10",
      "kana": "カンジャ_10",
      "gender": "male",
      "phone_number": "+5636711728957",
      "birthday": "1985-06-19",
      "created_at": "2021-02-11T13:49:48.000000Z",
      "updated_at": "2021-02-11T13:49:48.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 36,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "5636711728957"
    },
    {
      "id": 12,
      "user_id": 13,
      "name": "患者_11",
      "kana": "カンジャ_11",
      "gender": "male",
      "phone_number": "+1970093483342",
      "birthday": "1990-01-20",
      "created_at": "2021-02-11T13:49:48.000000Z",
      "updated_at": "2021-02-11T13:49:49.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 32,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "1970093483342"
    },
    {
      "id": 13,
      "user_id": 14,
      "name": "患者_12",
      "kana": "カンジャ_12",
      "gender": "female",
      "phone_number": "+8581498710762",
      "birthday": "2014-02-27",
      "created_at": "2021-02-11T13:49:49.000000Z",
      "updated_at": "2021-02-11T13:49:49.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 8,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "8581498710762"
    },
    {
      "id": 14,
      "user_id": 15,
      "name": "患者_13",
      "kana": "カンジャ_13",
      "gender": "male",
      "phone_number": "+9902033628582",
      "birthday": "1971-06-05",
      "created_at": "2021-02-11T13:49:50.000000Z",
      "updated_at": "2021-02-11T13:49:50.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 50,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "9902033628582"
    },
    {
      "id": 15,
      "user_id": 16,
      "name": "患者_14",
      "kana": "カンジャ_14",
      "gender": "female",
      "phone_number": "+5164067893192",
      "birthday": "2018-09-27",
      "created_at": "2021-02-11T13:49:50.000000Z",
      "updated_at": "2021-02-11T13:49:50.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 3,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "5164067893192"
    },
    {
      "id": 16,
      "user_id": 17,
      "name": "患者_15",
      "kana": "カンジャ_15",
      "gender": "female",
      "phone_number": "+2211637818914",
      "birthday": "2014-09-23",
      "created_at": "2021-02-11T13:49:51.000000Z",
      "updated_at": "2021-02-11T13:49:51.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 7,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "2211637818914"
    },
    {
      "id": 17,
      "user_id": 18,
      "name": "患者_16",
      "kana": "カンジャ_16",
      "gender": "male",
      "phone_number": "+9005110699925",
      "birthday": "1990-07-26",
      "created_at": "2021-02-11T13:49:52.000000Z",
      "updated_at": "2021-02-11T13:49:52.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": "storage/patient/profile/1535282.jpg",
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 31,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "9005110699925"
    },
    {
      "id": 18,
      "user_id": 19,
      "name": "患者_17",
      "kana": "カンジャ_17",
      "gender": "male",
      "phone_number": "+7955533342523",
      "birthday": "2003-03-29",
      "created_at": "2021-02-11T13:49:52.000000Z",
      "updated_at": "2021-02-11T13:49:52.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 19,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "7955533342523"
    },
    {
      "id": 19,
      "user_id": 20,
      "name": "患者_18",
      "kana": "カンジャ_18",
      "gender": "male",
      "phone_number": "+8495165132280",
      "birthday": "1988-08-23",
      "created_at": "2021-02-11T13:49:53.000000Z",
      "updated_at": "2021-02-11T13:49:53.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 33,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "8495165132280"
    },
    {
      "id": 20,
      "user_id": 21,
      "name": "患者_19",
      "kana": "カンジャ_19",
      "gender": "male",
      "phone_number": "+7632799053287",
      "birthday": "2001-06-30",
      "created_at": "2021-02-11T13:49:54.000000Z",
      "updated_at": "2021-02-11T13:49:54.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 20,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "7632799053287"
    }
  ],
  "links": {
    "first": "http://127.0.0.1:8000/api/user/patients?page=1",
    "last": "http://127.0.0.1:8000/api/user/patients?page=4",
    "prev": null,
    "next": "http://127.0.0.1:8000/api/user/patients?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 4,
    "path": "http://127.0.0.1:8000/api/user/patients",
    "per_page": 20,
    "to": 20,
    "total": 62
  }
}

Note

フォローする
POST/patients/8/toggleFollow

  • 他の患者をフォロー

Example URI

POST http://test.clinic.lxa.jp/api/user/patients/8/toggleFollow
Request
HideShow
Headers
Content-Type: application/json
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [
      8
    ],
    "detached": []
  }
}

Note

ユーザー アカウント
GET/patients/1

  • 入力したIDに対応する情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/patients/1
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "patient": {
      "id": 1,
      "user_id": 2,
      "name": "患者_0",
      "kana": "カンジャ_0",
      "gender": "female",
      "phone_number": "+3962773747025",
      "birthday": "1986-12-02",
      "created_at": "2021-02-11T13:49:41.000000Z",
      "updated_at": "2021-02-11T13:49:41.000000Z",
      "unique_id": null,
      "nickname": null,
      "intro": null,
      "photo": null,
      "point": 2000,
      "area_id": null,
      "firebase_key": null,
      "age": 35,
      "area": null,
      "follows_count": 0,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "3962773747025"
    }
  }
}

ユーザー

フォロー中
GET/follows{?per_page,page,q}

  • フォロー中の患者リストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/follows?per_page=20&page=1&q=
URI Parameters
HideShow
per_page
integer (required) Example: 20
page
integer (required) Example: 1
q
string (required) 
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "follows": {
      "current_page": 1,
      "data": [
        {
          "id": 8,
          "user_id": 9,
          "name": "患者_7",
          "kana": "カンジャ_7",
          "gender": "female",
          "phone_number": "+6519555666517",
          "birthday": "2015-03-10",
          "created_at": "2021-02-11T13:49:46.000000Z",
          "updated_at": "2021-02-11T13:49:46.000000Z",
          "unique_id": null,
          "nickname": null,
          "intro": null,
          "photo": null,
          "point": 2000,
          "area_id": null,
          "firebase_key": null,
          "age": 7,
          "area": null,
          "follows_count": 0,
          "followers_count": 1,
          "is_follow": true,
          "phone_only_number": "6519555666517"
        }
      ],
      "first_page_url": "http://127.0.0.1:8000/api/user/follows?page=1",
      "from": 1,
      "last_page": 1,
      "last_page_url": "http://127.0.0.1:8000/api/user/follows?page=1",
      "next_page_url": null,
      "path": "http://127.0.0.1:8000/api/user/follows",
      "per_page": "20",
      "prev_page_url": null,
      "to": 1,
      "total": 1
    }
  }
}

ユーザー

フォロワー
GET/follows{?per_page,page}

  • フォロワー中の患者リストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/follows?per_page=20&page=1
URI Parameters
HideShow
per_page
integer (required) Example: 20
page
integer (required) Example: 1
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "followers": {
      "current_page": 1,
      "data": [],
      "first_page_url": "http://127.0.0.1:8000/api/user/followers?page=1",
      "from": null,
      "last_page": 1,
      "last_page_url": "http://127.0.0.1:8000/api/user/followers?page=1",
      "next_page_url": null,
      "path": "http://127.0.0.1:8000/api/user/followers",
      "per_page": "20",
      "prev_page_url": null,
      "to": null,
      "total": 0
    }
  }
}

Home

Group description

Home

home
GET/tops{?category_id}

  • トップページに表示された内容を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/tops?category_id=''
URI Parameters
HideShow
category_id
integer (required) Example: ''
Response  200
HideShow
Body
{
  "contents": {
    "current_page": 1,
    "data": [
      {
        "id": 3,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": "クリニック1",
        "clinic_id": "1",
        "first_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "last_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-04-01 20:34:04",
        "type": "counserepo",
        "categories": [
          {
            "id": 20,
            "parent_id": null,
            "name": "タトゥー・刺青除去",
            "pivot": {
              "counseling_id": 3,
              "category_id": 20
            }
          },
          {
            "id": 26,
            "parent_id": null,
            "name": "その他",
            "pivot": {
              "counseling_id": 3,
              "category_id": 26
            }
          }
        ]
      },
      {
        "id": 2,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": "クリニック1",
        "clinic_id": "1",
        "first_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "last_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-04-01 20:30:16",
        "type": "counserepo",
        "categories": [
          {
            "id": 20,
            "parent_id": null,
            "name": "タトゥー・刺青除去",
            "pivot": {
              "counseling_id": 2,
              "category_id": 20
            }
          },
          {
            "id": 26,
            "parent_id": null,
            "name": "その他",
            "pivot": {
              "counseling_id": 2,
              "category_id": 26
            }
          }
        ]
      },
      {
        "id": 16,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": null,
        "clinic_id": null,
        "first_content": "content",
        "last_content": "content",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-03-25 10:17:37",
        "type": "question",
        "categories": [
          {
            "id": 11,
            "parent_id": null,
            "name": "毛穴",
            "pivot": {
              "question_id": 16,
              "category_id": 11
            }
          },
          {
            "id": 23,
            "parent_id": null,
            "name": "泌尿器科",
            "pivot": {
              "question_id": 16,
              "category_id": 23
            }
          },
          {
            "id": 50,
            "parent_id": 2,
            "name": "ヒアルロン酸注入",
            "pivot": {
              "question_id": 16,
              "category_id": 50
            }
          }
        ]
      },
      {
        "id": 15,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": null,
        "clinic_id": null,
        "first_content": "content",
        "last_content": "content",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-03-25 10:15:16",
        "type": "question",
        "categories": [
          {
            "id": 11,
            "parent_id": null,
            "name": "毛穴",
            "pivot": {
              "question_id": 15,
              "category_id": 11
            }
          },
          {
            "id": 23,
            "parent_id": null,
            "name": "泌尿器科",
            "pivot": {
              "question_id": 15,
              "category_id": 23
            }
          },
          {
            "id": 50,
            "parent_id": 2,
            "name": "ヒアルロン酸注入",
            "pivot": {
              "question_id": 15,
              "category_id": 50
            }
          }
        ]
      },
      {
        "id": 1,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": "クリニック1",
        "clinic_id": "1",
        "first_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "last_content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": 1,
        "views_count": null,
        "updated_at": "2022-03-25 09:01:27",
        "type": "counserepo",
        "categories": [
          {
            "id": 20,
            "parent_id": null,
            "name": "タトゥー・刺青除去",
            "pivot": {
              "counseling_id": 1,
              "category_id": 20
            }
          },
          {
            "id": 26,
            "parent_id": null,
            "name": "その他",
            "pivot": {
              "counseling_id": 1,
              "category_id": 26
            }
          }
        ]
      },
      {
        "id": 6,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": "クリニック1",
        "clinic_id": "1",
        "first_content": "質問1に関した回答",
        "last_content": null,
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-03-22 03:16:08",
        "type": "diary",
        "categories": [
          {
            "id": 1,
            "parent_id": null,
            "name": "二重",
            "pivot": {
              "diary_id": 6,
              "category_id": 1
            }
          },
          {
            "id": 3,
            "parent_id": null,
            "name": "鼻",
            "pivot": {
              "diary_id": 6,
              "category_id": 3
            }
          },
          {
            "id": 8,
            "parent_id": null,
            "name": "しわ・ほうれい線",
            "pivot": {
              "diary_id": 6,
              "category_id": 8
            }
          }
        ]
      },
      {
        "id": 5,
        "patient_id": 2,
        "nickname": "patient01",
        "photo": null,
        "clinic": "クリニック1",
        "clinic_id": "1",
        "first_content": "質問1に関した回答",
        "last_content": null,
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2022-03-22 01:45:15",
        "type": "diary",
        "categories": [
          {
            "id": 20,
            "parent_id": null,
            "name": "タトゥー・刺青除去",
            "pivot": {
              "diary_id": 5,
              "category_id": 20
            }
          },
          {
            "id": 4,
            "parent_id": null,
            "name": "顎・輪郭・小顔",
            "pivot": {
              "diary_id": 5,
              "category_id": 4
            }
          },
          {
            "id": 10,
            "parent_id": null,
            "name": "しみ・そばかす・肝斑",
            "pivot": {
              "diary_id": 5,
              "category_id": 10
            }
          }
        ]
      },
      {
        "id": 13,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:39",
        "type": "question",
        "categories": []
      },
      {
        "id": 12,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:38",
        "type": "question",
        "categories": []
      },
      {
        "id": 11,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:36",
        "type": "question",
        "categories": []
      },
      {
        "id": 10,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:34",
        "type": "question",
        "categories": []
      },
      {
        "id": 9,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": 1,
        "views_count": 1,
        "updated_at": "2021-08-12 18:52:32",
        "type": "question",
        "categories": []
      },
      {
        "id": 8,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:30",
        "type": "question",
        "categories": []
      },
      {
        "id": 7,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:28",
        "type": "question",
        "categories": []
      },
      {
        "id": 6,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:26",
        "type": "question",
        "categories": []
      },
      {
        "id": 5,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:24",
        "type": "question",
        "categories": []
      },
      {
        "id": 4,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:22",
        "type": "question",
        "categories": []
      },
      {
        "id": 3,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:19",
        "type": "question",
        "categories": []
      },
      {
        "id": 2,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:17",
        "type": "question",
        "categories": []
      },
      {
        "id": 1,
        "patient_id": 17,
        "nickname": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "clinic": null,
        "clinic_id": null,
        "first_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "last_content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
        "first_thumb_path": null,
        "last_thumb_path": null,
        "comments_count": null,
        "views_count": null,
        "updated_at": "2021-08-12 18:52:12",
        "type": "question",
        "categories": [
          {
            "id": 72,
            "parent_id": 3,
            "name": "鼻尖縮小",
            "pivot": {
              "question_id": 1,
              "category_id": 72
            }
          }
        ]
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/tops?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/tops?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/tops",
    "per_page": 20,
    "prev_page_url": null,
    "to": 20,
    "total": 20
  }
}

Home

search
GET/search{?q,per_page}

  • 検索キーにマッチするcase、menu、clinic、doctor、diaryを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/search?q='メニュー'&per_page='3'
URI Parameters
HideShow
q
string (required) Example: 'メニュー'
per_page
integer (required) Example: '3'
Response  200
HideShow
Body
{
  "cases": {
    "current_page": 1,
    "data": [],
    "first_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "next_page_url": null,
    "path": "http://test.clinic.lxa.jp/api/user/search",
    "per_page": "3",
    "prev_page_url": null,
    "to": null,
    "total": 0
  },
  "menus": {
    "current_page": 1,
    "data": [
      {
        "id": 36,
        "clinic_id": null,
        "name": "メニュー123",
        "price": 155000,
        "description": null,
        "risk": null,
        "guarantee": null,
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": null,
        "updated_at": "2021-08-20T02:36:55.000000Z",
        "is_favorite": false,
        "categories": [],
        "clinic": null,
        "images": []
      }
    ],
    "first_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "next_page_url": null,
    "path": "http://test.clinic.lxa.jp/api/user/search",
    "per_page": "3",
    "prev_page_url": null,
    "to": 1,
    "total": 1
  },
  "clinics": {
    "current_page": 1,
    "data": [],
    "first_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "next_page_url": null,
    "path": "http://test.clinic.lxa.jp/api/user/search",
    "per_page": "3",
    "prev_page_url": null,
    "to": null,
    "total": 0
  },
  "doctors": {
    "current_page": 1,
    "data": [],
    "first_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "next_page_url": null,
    "path": "http://test.clinic.lxa.jp/api/user/search",
    "per_page": "3",
    "prev_page_url": null,
    "to": null,
    "total": 0
  },
  "diaries": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "patient_id": 2,
        "clinic_id": 1,
        "treat_date": "2022-01-15",
        "doctor_id": 74,
        "price": 306000,
        "created_at": "2022-04-01T11:24:32.000000Z",
        "updated_at": "2022-04-01T11:24:32.000000Z",
        "rate_01": 4,
        "rate_02": 4,
        "rate_03": 1,
        "rate_04": 5,
        "rate_05": 3,
        "rate_06": 4,
        "rate_07": 3,
        "rate_08": 2,
        "rate_09": 1,
        "ave_rate": 3,
        "cost_anesthetic": 1000,
        "cost_drug": 2000,
        "cost_other": 3000,
        "views_count": 0,
        "comments_count": 1,
        "likes_count": 1,
        "is_like": false,
        "before_image": null,
        "after_image": null,
        "patient_nickname": "patient01",
        "patient_gender": "male",
        "patient_photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/user/patients/thumbs/sqrHOH7669.png",
        "patient_age": 27,
        "clinic_name": "クリニック2",
        "doctor_name": "医師-5",
        "last_content": "51",
        "is_favorite": false,
        "categories": [
          {
            "id": 20,
            "parent_id": null,
            "name": "タトゥー・刺青除去",
            "pivot": {
              "diary_id": 1,
              "category_id": 20
            }
          },
          {
            "id": 4,
            "parent_id": null,
            "name": "顎・輪郭・小顔",
            "pivot": {
              "diary_id": 1,
              "category_id": 4
            }
          },
          {
            "id": 10,
            "parent_id": null,
            "name": "しみ・そばかす・肝斑",
            "pivot": {
              "diary_id": 1,
              "category_id": 10
            }
          }
        ]
      }
    ],
    "first_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://test.clinic.lxa.jp/api/user/search?page=1",
    "next_page_url": null,
    "path": "http://test.clinic.lxa.jp/api/user/search",
    "per_page": "3",
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

クリニック

Group description

クリニック

一覧
GET/clinics{?per_page,page,q,favorite,city_id,pref_id}

  • clinicのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/clinics?per_page='10'&page='1'&q=''&favorite=''&city_id=''&pref_id=''
URI Parameters
HideShow
per_page
integer (required) Example: '10'
page
integer (required) Example: '1'
q
string (required) Example: ''
favorite
string (required) Example: ''
city_id
integer (required) Example: ''
pref_id
integer (required) Example: ''
Response  200
HideShow
Body
{
  "clinics": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "user_id": 1,
        "name": "クリニック1",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": "ABCビル 3階",
        "nearest_station": "渋谷駅、代官山駅",
        "site": "abc.com",
        "access": "渋谷駅から徒歩5分",
        "phone_number": "012001234",
        "credit_card": null,
        "parking": null,
        "photo": null,
        "created_at": "2021-02-11T09:50:01.000000Z",
        "updated_at": "2022-03-19T04:03:29.000000Z",
        "firebase_key": "YKo7jsNyr5yIXe79xK1T",
        "diaries_count": 2,
        "counselings_count": 3,
        "menus_count": 33,
        "stuffs_count": 10,
        "favoriters_count": 1,
        "is_favorite": false,
        "address": "ABCビル 3階",
        "addr01": "",
        "user_name": "クリニック1",
        "email": "clinic@gmail.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      },
      {
        "id": 3,
        "user_id": 66,
        "name": "クリニック3",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": null,
        "nearest_station": null,
        "site": null,
        "access": null,
        "phone_number": null,
        "credit_card": null,
        "parking": null,
        "photo": null,
        "created_at": "2021-07-19T12:06:02.000000Z",
        "updated_at": "2021-07-19T12:06:02.000000Z",
        "firebase_key": "t1t21JW7Cg0hf1uwbxlR",
        "diaries_count": 0,
        "counselings_count": 0,
        "menus_count": 1,
        "stuffs_count": 0,
        "favoriters_count": 0,
        "is_favorite": false,
        "address": "",
        "addr01": "",
        "user_name": null,
        "email": "test@test.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      },
      {
        "id": 4,
        "user_id": 67,
        "name": "クリニック4",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": null,
        "nearest_station": null,
        "site": null,
        "access": null,
        "phone_number": null,
        "credit_card": null,
        "parking": null,
        "photo": null,
        "created_at": "2021-07-19T12:08:11.000000Z",
        "updated_at": "2021-07-19T12:08:11.000000Z",
        "firebase_key": "kx9KyTRsaJgkXJSpEZ10",
        "diaries_count": 0,
        "counselings_count": 0,
        "menus_count": 0,
        "stuffs_count": 0,
        "favoriters_count": 0,
        "is_favorite": false,
        "address": "",
        "addr01": "",
        "user_name": null,
        "email": "test1@test.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/clinics?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/clinics?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/clinics",
    "per_page": "10",
    "prev_page_url": null,
    "to": 3,
    "total": 3
  }
}

クリニック

詳細
GET/clinics/1

  • そのIDのクリニック情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/clinics/1
Response  200
HideShow
Body
{
  "clinic": {
    "id": 1,
    "user_id": 1,
    "name": "クリニック1",
    "pref_id": null,
    "city_id": null,
    "town_id": null,
    "addr02": "ABCビル 3階",
    "nearest_station": "渋谷駅、代官山駅",
    "site": "abc.com",
    "access": "渋谷駅から徒歩5分",
    "phone_number": "012001234",
    "credit_card": null,
    "parking": null,
    "photo": null,
    "created_at": "2021-02-11T09:50:01.000000Z",
    "updated_at": "2022-03-19T04:03:29.000000Z",
    "firebase_key": "YKo7jsNyr5yIXe79xK1T",
    "diaries_count": 2,
    "counselings_count": 3,
    "menus_count": 33,
    "stuffs_count": 10,
    "favoriters_count": 1,
    "is_favorite": true,
    "address": "ABCビル 3階",
    "addr01": "",
    "user_name": "クリニック1",
    "email": "clinic@gmail.com",
    "role": "clinic",
    "work_times": [
      {
        "weekday": "月曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "火曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "水曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "木曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "金曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "土曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "日曜日",
        "type": null,
        "start_time": null,
        "end_time": null
      },
      {
        "weekday": "祝日",
        "type": null,
        "start_time": null,
        "end_time": null
      }
    ],
    "images": [],
    "doctors": [
      {
        "id": 71,
        "user_id": 58,
        "clinic_id": 1,
        "kata_name": "田中 仁2",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": null,
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-2",
        "email": "doctor116@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 74,
        "user_id": 61,
        "clinic_id": 1,
        "kata_name": "田中 仁5",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": 2,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": "1997年ラシア大学医学部卒業 <br>",
        "career": "美容外科専門医(JSAS)<br>",
        "photo": null,
        "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-5",
        "email": "ggg@gmail.com",
        "role": "doctor",
        "likes_count": 1,
        "is_like": true,
        "favoriters_count": 1,
        "is_favorite": true,
        "views_count": 1
      },
      {
        "id": 76,
        "user_id": 63,
        "clinic_id": 1,
        "kata_name": "田中 仁7",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": null,
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-7",
        "email": "vvv@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      }
    ],
    "menus": [
      {
        "id": 3,
        "clinic_id": 1,
        "name": "両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": 10,
        "bleeding": 10,
        "hospital_need": 10,
        "masui": 10,
        "makeup": 10,
        "shower": 10,
        "massage": 10,
        "sport_impossible": 5,
        "photo": null,
        "status": 0,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-06-24T00:49:17.000000Z",
        "is_favorite": true
      },
      {
        "id": 7,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2022-03-17T21:23:08.000000Z",
        "is_favorite": false
      },
      {
        "id": 9,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 10,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 11,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 12,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 13,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-06-24T00:55:51.000000Z",
        "is_favorite": false
      },
      {
        "id": 14,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-06-26T05:57:23.000000Z",
        "is_favorite": false
      },
      {
        "id": 16,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 17,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 18,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 19,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 20,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 21,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 22,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 23,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 24,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 25,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 26,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 27,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 28,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 29,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 30,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 31,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 32,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 33,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 34,
        "clinic_id": 1,
        "name": "両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2021-04-18T17:11:38.000000Z",
        "is_favorite": false
      },
      {
        "id": 35,
        "clinic_id": 1,
        "name": "メニュー01",
        "price": 25260,
        "description": "メニューの説明01",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": 10,
        "basshi": 5,
        "hospital_visit": 5,
        "hare": 10,
        "pain": 15,
        "bleeding": 10,
        "hospital_need": 5,
        "masui": 15,
        "makeup": 5,
        "shower": 20,
        "massage": 15,
        "sport_impossible": 20,
        "photo": null,
        "status": 0,
        "created_at": "2021-07-16T11:55:38.000000Z",
        "updated_at": "2022-03-17T04:30:40.000000Z",
        "is_favorite": false
      },
      {
        "id": 37,
        "clinic_id": 1,
        "name": "メニュー02",
        "price": 150000,
        "description": "メニューの説明2",
        "risk": "副作用・リスク2",
        "guarantee": "施術の保証2",
        "treat_time": 10,
        "basshi": 5,
        "hospital_visit": 5,
        "hare": 25,
        "pain": 10,
        "bleeding": 10,
        "hospital_need": 5,
        "masui": 10,
        "makeup": 10,
        "shower": 10,
        "massage": 10,
        "sport_impossible": 10,
        "photo": null,
        "status": 0,
        "created_at": "2021-07-17T12:39:26.000000Z",
        "updated_at": "2022-03-17T04:23:13.000000Z",
        "is_favorite": false
      },
      {
        "id": 38,
        "clinic_id": 1,
        "name": "メニュー3",
        "price": 15600,
        "description": "メニューの説明\nメニューの説明\nメニューの説明",
        "risk": "副作用・リスク\n副作用・リスク\n副作用・リスク",
        "guarantee": "施術の保証\n施術の保証\n施術の保証",
        "treat_time": 15,
        "basshi": 5,
        "hospital_visit": 10,
        "hare": 15,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": 15,
        "photo": null,
        "status": 1,
        "created_at": "2021-07-20T05:38:05.000000Z",
        "updated_at": "2021-08-09T03:21:19.000000Z",
        "is_favorite": false
      },
      {
        "id": 66,
        "clinic_id": 1,
        "name": "メニュー301",
        "price": 10000,
        "description": "メニューの説明",
        "risk": "メニューの説明",
        "guarantee": "施術の保証",
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T04:45:25.000000Z",
        "updated_at": "2022-03-17T04:45:25.000000Z",
        "is_favorite": false
      },
      {
        "id": 67,
        "clinic_id": 1,
        "name": "メニュー302",
        "price": 100000,
        "description": "メニューの説明",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": 5,
        "basshi": 10,
        "hospital_visit": 5,
        "hare": 5,
        "pain": 20,
        "bleeding": 5,
        "hospital_need": 5,
        "masui": 10,
        "makeup": 5,
        "shower": 15,
        "massage": 15,
        "sport_impossible": 5,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T04:46:28.000000Z",
        "updated_at": "2022-03-17T04:46:28.000000Z",
        "is_favorite": false
      },
      {
        "id": 68,
        "clinic_id": 1,
        "name": "メニュー303",
        "price": 250000,
        "description": "メニューの説明",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": 15,
        "basshi": 10,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T21:08:22.000000Z",
        "updated_at": "2022-03-23T05:46:30.000000Z",
        "is_favorite": false
      }
    ],
    "counselings": [
      {
        "id": 1,
        "patient_id": 2,
        "clinic_id": 1,
        "doctor_id": 76,
        "counseling_date": "2020-10-10",
        "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
        "before_counseling": "カウンセリングの様子はどうでしたか?",
        "after_ccounseling": "カウンセリング後の感想",
        "rate": 4,
        "created_at": "2022-03-25T00:01:27.000000Z",
        "updated_at": "2022-03-25T00:01:27.000000Z",
        "views_count": 0,
        "comments_count": 1,
        "likes_count": 1,
        "is_like": true,
        "clinic_name": "クリニック1",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "doctor_name": "医師-7",
        "is_favorite": true
      },
      {
        "id": 2,
        "patient_id": 2,
        "clinic_id": 1,
        "doctor_id": 76,
        "counseling_date": "2020-10-10",
        "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
        "before_counseling": "カウンセリングの様子はどうでしたか?",
        "after_ccounseling": "カウンセリング後の感想",
        "rate": 4,
        "created_at": "2022-04-01T11:30:16.000000Z",
        "updated_at": "2022-04-01T11:30:16.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic_name": "クリニック1",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "doctor_name": "医師-7",
        "is_favorite": false
      },
      {
        "id": 3,
        "patient_id": 2,
        "clinic_id": 1,
        "doctor_id": 76,
        "counseling_date": "2020-10-10",
        "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
        "before_counseling": "カウンセリングの様子はどうでしたか?",
        "after_ccounseling": "カウンセリング後の感想",
        "rate": 4,
        "created_at": "2022-04-01T11:34:04.000000Z",
        "updated_at": "2022-04-01T11:34:04.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic_name": "クリニック1",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "doctor_name": "医師-7",
        "is_favorite": false
      }
    ]
  }
}

クリニック

お気に入り
POST/clinics/1/toggleFavorite

  • 該当IDのクリニックを「いいね」リストに追加、削除。

Example URI

POST http://test.clinic.lxa.jp/api/user/clinics/1/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

日記

Group description

日記

一覧
GET/diaries{?per_page,page,category_id,patient_id,favorite,orderby,menu_id,price_min,price_max,rate}

  • diaryのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/diaries?per_page='10'&page='1'&category_id=''&patient_id=''&favorite=''&orderby='comments_count'&menu_id=''&price_min=''&price_max='306001'&rate='3'
URI Parameters
HideShow
per_page
integer (required) Example: '10'
page
integer (required) Example: '1'
category_id
integer (required) Example: ''
patient_id
integer (required) Example: ''
favorite
string (required) Example: ''
orderby
string (required) Example: 'comments_count'
menu_id
integer (required) Example: ''
price_min
integer (required) Example: ''
price_max
integer (required) Example: '306001'
rate
integer (required) Example: '3'
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "diaries": {
      "current_page": 1,
      "data": [
        {
          "id": 5,
          "patient_id": 2,
          "clinic_id": 1,
          "treat_date": "2020-01-15",
          "doctor_id": 74,
          "price": 306000,
          "created_at": "2022-03-21T16:45:15.000000Z",
          "updated_at": "2022-03-21T16:45:15.000000Z",
          "rate_01": 4,
          "rate_02": 4,
          "rate_03": 1,
          "rate_04": 5,
          "rate_05": 3,
          "rate_06": 4,
          "rate_07": 3,
          "rate_08": 2,
          "rate_09": 1,
          "ave_rate": 3,
          "cost_anesthetic": 1000,
          "cost_drug": 2000,
          "cost_other": 3000,
          "comments_count": 1,
          "views_count": 0,
          "likes_count": 1,
          "is_like": false,
          "before_image": null,
          "after_image": null,
          "patient_nickname": "patient01",
          "patient_gender": "male",
          "patient_photo": null,
          "patient_age": 27,
          "clinic_name": "クリニック1",
          "doctor_name": "医師-5",
          "last_content": "51",
          "is_favorite": false,
          "categories": [
            {
              "id": 20,
              "parent_id": null,
              "name": "タトゥー・刺青除去",
              "pivot": {
                "diary_id": 5,
                "category_id": 20
              }
            },
            {
              "id": 4,
              "parent_id": null,
              "name": "顎・輪郭・小顔",
              "pivot": {
                "diary_id": 5,
                "category_id": 4
              }
            },
            {
              "id": 10,
              "parent_id": null,
              "name": "しみ・そばかす・肝斑",
              "pivot": {
                "diary_id": 5,
                "category_id": 10
              }
            }
          ]
        }
      ],
      "first_page_url": "http://127.0.0.1:8000/api/user/diaries?page=1",
      "from": 1,
      "last_page": 1,
      "last_page_url": "http://127.0.0.1:8000/api/user/diaries?page=1",
      "next_page_url": null,
      "path": "http://127.0.0.1:8000/api/user/diaries",
      "per_page": "10",
      "prev_page_url": null,
      "to": 1,
      "total": 1
    }
  }
}

日記

日記詳細
GET/diaries/1

  • そのIDのdiary 情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/diaries/1
Response  200
HideShow
Body
{
  "status": 0,
  "data": []
}

日記更新(新規作成)
PUT/diaries/1

Example URI

PUT http://test.clinic.lxa.jp/api/user/diaries/1
Request
HideShow
Headers
Content-Type: application/json
Body
{
    diaries[clinic_id]: '1' (integer)
    diaries[treat_date]: '2020/11/02' (treat_date)
    diaries[doctor_id]: '77' (integer)
    diaries[price]: '500000' (integer)
    categories[]: '20' (integer)
    categories[]: '4' (integer)
    medias[]: '1' (integer)
    diary_tqs[1]: '質問1に関した回答' (integer)
    diary_tqs[2]: '質問2に関した回答' (integer)
    diary_tqs[3]: '質問3に関した回答' (integer)
    diary_tqs[4]: '質問4に関した回答' (integer)
    diary_tqs[5]: '' (integer)
    diary_tqs[6]: '' (integer)
    diaries[rate_01]: '4' (integer)
    diaries[rate_02]: '5' (integer)
    diaries[rate_03]: '' (integer)
    diaries[rate_04]: '5' (integer)
    diaries[rate_05]: '5' (integer)
    diaries[rate_06]: '' (integer)
    diaries[rate_07]: '' (integer)
    diaries[rate_08]: '' (integer)
    diaries[rate_09]: '' (integer)
    menus[]: '1' (integer)
    menus[]: '2' (integer)
    categories[]: '10' (integer)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "diary": {
      "id": 1,
      "patient_id": 2,
      "clinic_id": "1",
      "treat_date": "2020/11/02",
      "doctor_id": "77",
      "price": "500000",
      "created_at": "2022-04-01T11:24:32.000000Z",
      "updated_at": "2022-04-27T08:09:45.000000Z",
      "rate_01": "5",
      "rate_02": "4",
      "rate_03": "3",
      "rate_04": "2",
      "rate_05": "5",
      "rate_06": "5",
      "rate_07": "4",
      "rate_08": "5",
      "rate_09": "3",
      "ave_rate": 4,
      "cost_anesthetic": 1000,
      "cost_drug": 2000,
      "cost_other": 3000,
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/user/patients/thumbs/sqrHOH7669.png",
      "patient_age": 27,
      "clinic_name": "クリニック2",
      "doctor_name": "医師-8",
      "last_content": "TBD-ここに例を入れる1",
      "is_favorite": true,
      "clinic": {
        "id": 1,
        "user_id": 1,
        "name": "クリニック2",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": null,
        "nearest_station": null,
        "site": null,
        "access": null,
        "phone_number": null,
        "credit_card": null,
        "parking": null,
        "photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/stuffs/thumbs/Dhjwpb2732.png",
        "created_at": "2021-02-11T01:50:01.000000Z",
        "updated_at": "2022-03-23T05:34:37.000000Z",
        "firebase_key": "YKo7jsNyr5yIXe79xK1T",
        "diaries_count": 1,
        "counselings_count": 3,
        "menus_count": 25,
        "stuffs_count": 6,
        "favoriters_count": 1,
        "is_favorite": true,
        "address": "",
        "addr01": "",
        "user_name": "クリニック1",
        "email": "clinic@gmail.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      },
      "doctor": {
        "id": 77,
        "user_id": 64,
        "clinic_id": 1,
        "kata_name": "田中 仁",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": "Wtx02lqqcG4k7Lx9Tnxs",
        "job_name": "院長",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-8",
        "email": "vvss@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      },
      "categories": [
        {
          "id": 1,
          "parent_id": null,
          "name": "二重",
          "pivot": {
            "diary_id": 1,
            "category_id": 1
          }
        },
        {
          "id": 3,
          "parent_id": null,
          "name": "鼻",
          "pivot": {
            "diary_id": 1,
            "category_id": 3
          }
        },
        {
          "id": 8,
          "parent_id": null,
          "name": "しわ・ほうれい線",
          "pivot": {
            "diary_id": 1,
            "category_id": 8
          }
        }
      ],
      "medias": [],
      "menus": [
        {
          "id": 3,
          "clinic_id": 1,
          "name": "両目埋没法ダブル(5年保証付き)両目",
          "price": 248900,
          "description": "ああああ",
          "risk": "ああああ",
          "guarantee": "ああああ",
          "treat_time": 5,
          "basshi": null,
          "hospital_visit": null,
          "hare": null,
          "pain": 10,
          "bleeding": 10,
          "hospital_need": 10,
          "masui": 10,
          "makeup": 10,
          "shower": 10,
          "massage": 10,
          "sport_impossible": 5,
          "photo": null,
          "status": 0,
          "created_at": "2021-04-18T10:11:38.000000Z",
          "updated_at": "2021-06-23T17:49:17.000000Z",
          "is_favorite": true,
          "pivot": {
            "diary_id": 1,
            "menu_id": 3,
            "cost": 100000
          }
        },
        {
          "id": 9,
          "clinic_id": 1,
          "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
          "price": 248900,
          "description": "ああああ",
          "risk": "ああああ",
          "guarantee": "ああああ",
          "treat_time": 5,
          "basshi": null,
          "hospital_visit": null,
          "hare": null,
          "pain": null,
          "bleeding": null,
          "hospital_need": null,
          "masui": null,
          "makeup": null,
          "shower": null,
          "massage": null,
          "sport_impossible": null,
          "photo": null,
          "status": 1,
          "created_at": "2021-04-18T10:11:38.000000Z",
          "updated_at": "2021-04-18T10:11:38.000000Z",
          "is_favorite": false,
          "pivot": {
            "diary_id": 1,
            "menu_id": 9,
            "cost": 200000
          }
        }
      ],
      "text_questions": [
        {
          "id": 1,
          "name": "どんなことで悩んでいましたか?",
          "visible": 1,
          "sort_no": 0,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 1,
            "answer": "1"
          }
        },
        {
          "id": 2,
          "name": "クリニック、ドクターを選択した理由は?",
          "visible": 1,
          "sort_no": 1,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 2,
            "answer": "2"
          }
        },
        {
          "id": 3,
          "name": "このメニューを選んだ理由は?",
          "visible": 1,
          "sort_no": 2,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 3,
            "answer": "3"
          }
        },
        {
          "id": 4,
          "name": "施術の流れや施術中の痛みは?",
          "visible": 1,
          "sort_no": 3,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 4,
            "answer": "4"
          }
        },
        {
          "id": 5,
          "name": "ドクターやスタッフの対応はどうでしたか?",
          "visible": 1,
          "sort_no": 4,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 5,
            "answer": "5"
          }
        },
        {
          "id": 6,
          "name": "この施術をしたいと思ってる人へアドバイスを",
          "visible": 1,
          "sort_no": 5,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 1,
            "question_id": 6,
            "answer": "6"
          }
        }
      ]
    }
  }
}

日記

日記経過詳細
GET/progresses/1

  • 該当IDの日記経過詳細を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/progresses/1
Response  200
HideShow
Body
{
  "progress": {
    "id": 1,
    "diary_id": 5,
    "from_treat_day": 51,
    "content": "51",
    "created_at": "2022-03-21T17:18:52.000000Z",
    "updated_at": "2022-03-21T18:19:56.000000Z",
    "diary": {
      "id": 5,
      "patient_id": 2,
      "clinic_id": 1,
      "treat_date": "2020-01-15",
      "doctor_id": 74,
      "price": 306000,
      "created_at": "2022-03-21T16:45:15.000000Z",
      "updated_at": "2022-03-21T16:45:15.000000Z",
      "rate_01": 4,
      "rate_02": 4,
      "rate_03": 1,
      "rate_04": 5,
      "rate_05": 3,
      "rate_06": 4,
      "rate_07": 3,
      "rate_08": 2,
      "rate_09": 1,
      "ave_rate": 3,
      "cost_anesthetic": 1000,
      "cost_drug": 2000,
      "cost_other": 3000,
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": null,
      "patient_age": 27,
      "clinic_name": "クリニック1",
      "doctor_name": "医師-5",
      "last_content": "51",
      "is_favorite": true
    },
    "statuses": [
      {
        "id": 1,
        "name": "痛み",
        "sort_no": 0,
        "created_at": null,
        "updated_at": null,
        "pivot": {
          "progress_id": 1,
          "indicator_id": 1,
          "value": 5
        }
      },
      {
        "id": 2,
        "name": "腫れ",
        "sort_no": 1,
        "created_at": null,
        "updated_at": null,
        "pivot": {
          "progress_id": 1,
          "indicator_id": 2,
          "value": 5
        }
      },
      {
        "id": 3,
        "name": "傷あと",
        "sort_no": 2,
        "created_at": null,
        "updated_at": null,
        "pivot": {
          "progress_id": 1,
          "indicator_id": 3,
          "value": 5
        }
      }
    ],
    "medias": [],
    "comments_limit50": [
      {
        "id": 1,
        "patient_id": 2,
        "parent_id": null,
        "comment": "コメント",
        "created_at": "2022-03-21T18:00:20.000000Z",
        "updated_at": "2022-03-21T18:00:20.000000Z",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "all_children": []
      }
    ]
  }
}

日記更新(経過新規作成)
PUT/progresses/1

Example URI

PUT http://test.clinic.lxa.jp/api/user/progresses/1
Request
HideShow
Headers
Content-Type: application/json
Body
{
    progresses[from_treat_day]: '51' (integer)
    progresses[content]: '51' (integer)
    medias[]: '1' (integer)
    medias[]: '' (integer)
    categories[]: '20' (integer)
    status[1]: '5' (integer)
    status[2]: '5' (integer)
    status[3]: '5' (integer)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "progress": {
      "id": 1,
      "diary_id": 1,
      "from_treat_day": "51",
      "content": "51",
      "created_at": "2022-04-01T11:25:30.000000Z",
      "updated_at": "2022-04-01T11:29:27.000000Z",
      "medias": [],
      "statuses": [
        {
          "id": 1,
          "name": "痛み",
          "sort_no": 0,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 1,
            "indicator_id": 1,
            "value": 5
          }
        },
        {
          "id": 2,
          "name": "腫れ",
          "sort_no": 1,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 1,
            "indicator_id": 2,
            "value": 5
          }
        },
        {
          "id": 3,
          "name": "傷あと",
          "sort_no": 2,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 1,
            "indicator_id": 3,
            "value": 5
          }
        }
      ]
    }
  }
}

日記

日記(新規作成)
POST/diaries

  • 新しい日記を追加

  • clinic_id, treat_date, doctor_id, categories, diary_tqs, menus, cost_anesthetic, cost_drug, cost_otherは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/diaries
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "diaries[clinic_id]": "1",
    "diaries[treat_date]": "2022/01/15",
    "diaries[doctor_id]": "74"
    "categories[]": "20"
    "categories[]": "4"
    "categories[]": "10"
    "medias[]": "1"
    "diary_tqs[1]": "質問1に関した回答"
    "diary_tqs[2]": "質問2に関した回答"
    "diary_tqs[3]": "質問3に関した回答"
    "diary_tqs[4]": "質問4に関した回答"
    "diary_tqs[5]": ""
    "diary_tqs[6]": ""
    "diaries[rate_01]": "4"
    "diaries[rate_02]": "4"
    "diaries[rate_03]": "1"
    "diaries[rate_04]": "5"
    "diaries[rate_05]": "3"
    "diaries[rate_06]": "4"
    "diaries[rate_07]": "3"
    "diaries[rate_08]": "2"
    "menus[0][id]": "3"
    "menus[1][id]": "9"
    "menus[0][cost]": "100000"
    "menus[1][cost]": "200000"
    "diaries[cost_anesthetic]": "1000"
    "diaries[cost_drug]": "2000"
    "diaries[cost_other]": "3000"
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "diary": {
      "clinic_id": "1",
      "treat_date": "2022/01/15",
      "doctor_id": "74",
      "rate_01": "4",
      "rate_02": "4",
      "rate_03": "1",
      "rate_04": "5",
      "rate_05": "3",
      "rate_06": "4",
      "rate_07": "3",
      "rate_08": "2",
      "rate_09": "1",
      "cost_anesthetic": "1000",
      "cost_drug": "2000",
      "cost_other": "3000",
      "patient_id": 2,
      "ave_rate": 3,
      "price": 306000,
      "updated_at": "2022-04-27T01:00:21.000000Z",
      "created_at": "2022-04-27T01:00:21.000000Z",
      "id": 7,
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "before_image": null,
      "after_image": null,
      "patient_nickname": "patient01",
      "patient_gender": "male",
      "patient_photo": null,
      "patient_age": 27,
      "clinic_name": "クリニック1",
      "doctor_name": "医師-5",
      "last_content": "質問1に関した回答",
      "is_favorite": false,
      "clinic": {
        "id": 1,
        "user_id": 1,
        "name": "クリニック1",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": "ABCビル 3階",
        "nearest_station": "渋谷駅、代官山駅",
        "site": "abc.com",
        "access": "渋谷駅から徒歩5分",
        "phone_number": "012001234",
        "credit_card": null,
        "parking": null,
        "photo": null,
        "created_at": "2021-02-11T09:50:01.000000Z",
        "updated_at": "2022-03-19T04:03:29.000000Z",
        "firebase_key": "YKo7jsNyr5yIXe79xK1T",
        "diaries_count": 3,
        "counselings_count": 3,
        "menus_count": 33,
        "stuffs_count": 10,
        "favoriters_count": 0,
        "is_favorite": false,
        "address": "ABCビル 3階",
        "addr01": "",
        "user_name": "クリニック1",
        "email": "clinic@gmail.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      },
      "doctor": {
        "id": 74,
        "user_id": 61,
        "clinic_id": 1,
        "kata_name": "田中 仁5",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": 2,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": "1997年ラシア大学医学部卒業 <br>",
        "career": "美容外科専門医(JSAS)<br>",
        "photo": null,
        "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-5",
        "email": "ggg@gmail.com",
        "role": "doctor",
        "likes_count": 1,
        "is_like": true,
        "favoriters_count": 1,
        "is_favorite": true,
        "views_count": 1
      },
      "categories": [
        {
          "id": 20,
          "parent_id": null,
          "name": "タトゥー・刺青除去",
          "pivot": {
            "diary_id": 7,
            "category_id": 20
          }
        },
        {
          "id": 4,
          "parent_id": null,
          "name": "顎・輪郭・小顔",
          "pivot": {
            "diary_id": 7,
            "category_id": 4
          }
        },
        {
          "id": 10,
          "parent_id": null,
          "name": "しみ・そばかす・肝斑",
          "pivot": {
            "diary_id": 7,
            "category_id": 10
          }
        }
      ],
      "medias": [],
      "menus": [
        {
          "id": 3,
          "clinic_id": 1,
          "name": "両目埋没法ダブル(5年保証付き)両目",
          "price": 248900,
          "description": "ああああ",
          "risk": "ああああ",
          "guarantee": "ああああ",
          "treat_time": 5,
          "basshi": null,
          "hospital_visit": null,
          "hare": null,
          "pain": 10,
          "bleeding": 10,
          "hospital_need": 10,
          "masui": 10,
          "makeup": 10,
          "shower": 10,
          "massage": 10,
          "sport_impossible": 5,
          "photo": null,
          "status": 0,
          "created_at": "2021-04-18T17:11:38.000000Z",
          "updated_at": "2021-06-24T00:49:17.000000Z",
          "is_favorite": true,
          "pivot": {
            "diary_id": 7,
            "menu_id": 3,
            "cost": 100000
          }
        },
        {
          "id": 9,
          "clinic_id": 1,
          "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
          "price": 248900,
          "description": "ああああ",
          "risk": "ああああ",
          "guarantee": "ああああ",
          "treat_time": 5,
          "basshi": null,
          "hospital_visit": null,
          "hare": null,
          "pain": null,
          "bleeding": null,
          "hospital_need": null,
          "masui": null,
          "makeup": null,
          "shower": null,
          "massage": null,
          "sport_impossible": null,
          "photo": null,
          "status": 1,
          "created_at": "2021-04-18T17:11:38.000000Z",
          "updated_at": "2021-04-18T17:11:38.000000Z",
          "is_favorite": false,
          "pivot": {
            "diary_id": 7,
            "menu_id": 9,
            "cost": 200000
          }
        }
      ],
      "text_questions": [
        {
          "id": 1,
          "name": "どんなことで悩んでいましたか?",
          "visible": 1,
          "sort_no": 0,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 1,
            "answer": "質問1に関した回答"
          }
        },
        {
          "id": 2,
          "name": "クリニック、ドクターを選択した理由は?",
          "visible": 1,
          "sort_no": 1,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 2,
            "answer": "質問2に関した回答"
          }
        },
        {
          "id": 3,
          "name": "このメニューを選んだ理由は?",
          "visible": 1,
          "sort_no": 2,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 3,
            "answer": "質問3に関した回答"
          }
        },
        {
          "id": 4,
          "name": "施術の流れや施術中の痛みは?",
          "visible": 1,
          "sort_no": 3,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 4,
            "answer": "質問4に関した回答"
          }
        },
        {
          "id": 5,
          "name": "ドクターやスタッフの対応はどうでしたか?",
          "visible": 1,
          "sort_no": 4,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 5,
            "answer": null
          }
        },
        {
          "id": 6,
          "name": "この施術をしたいと思ってる人へアドバイスを",
          "visible": 1,
          "sort_no": 5,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "diary_id": 7,
            "question_id": 6,
            "answer": null
          }
        }
      ]
    }
  }
}

日記

日記(経過新規作成)
POST/diaries/1/progresses

  • 新しい日記経過を追加

  • from_treat_day, content, statusは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/diaries/1/progresses
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "progresses[from_treat_day]": "60",
    "progresses[content]": "TBD-ここに例を入れる1",
    "medias[]": "19"
    "medias[]": "1"
    "status[1]": "1"
    "status[2]": "4"
    "status[3]": "2"
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "progress": {
      "from_treat_day": "60",
      "content": "TBD-ここに例を入れる1",
      "diary_id": 1,
      "updated_at": "2022-04-27T01:17:35.000000Z",
      "created_at": "2022-04-27T01:17:35.000000Z",
      "id": 2,
      "medias": [],
      "statuses": [
        {
          "id": 1,
          "name": "痛み",
          "sort_no": 0,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 2,
            "indicator_id": 1,
            "value": 1
          }
        },
        {
          "id": 2,
          "name": "腫れ",
          "sort_no": 1,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 2,
            "indicator_id": 2,
            "value": 4
          }
        },
        {
          "id": 3,
          "name": "傷あと",
          "sort_no": 2,
          "created_at": null,
          "updated_at": null,
          "pivot": {
            "progress_id": 2,
            "indicator_id": 3,
            "value": 2
          }
        }
      ]
    }
  }
}

日記

いいね
POST/diaries/1/toggleLike

  • 該当IDの 日記を「いいね」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/diaries/1/toggleLike
Response  200
HideShow
Body
{
  "status": 0,
  "data": []
}

日記

お気に入り
POST/diaries/5/toggleFavorite

  • 該当IDの 日記を「お気に入り」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/diaries/5/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

日記

コメント
POST/progresses/1/commentss

  • 該当IDの日記にコメントを追加

Example URI

POST http://test.clinic.lxa.jp/api/user/progresses/1/commentss
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "comments[parent_id]": "",
    "comments[comment]": "コメント",
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "comment": {
      "parent_id": null,
      "comment": "コメント",
      "patient_id": 2,
      "updated_at": "2022-04-27T01:26:32.000000Z",
      "created_at": "2022-04-27T01:26:32.000000Z",
      "id": 4,
      "patient_nickname": "patient01",
      "patient_photo": null
    }
  }
}

日記

日記(質問一覧)
GET/diray/master/load

Example URI

GET http://test.clinic.lxa.jp/api/user/diray/master/load
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "textQuestions": [
      {
        "id": 1,
        "name": "どんなことで悩んでいましたか?",
        "visible": 1,
        "sort_no": 0,
        "created_at": null,
        "updated_at": null
      },
      {
        "id": 2,
        "name": "クリニック、ドクターを選択した理由は?",
        "visible": 1,
        "sort_no": 1,
        "created_at": null,
        "updated_at": null
      },
      {
        "id": 3,
        "name": "このメニューを選んだ理由は?",
        "visible": 1,
        "sort_no": 2,
        "created_at": null,
        "updated_at": null
      },
      {
        "id": 4,
        "name": "施術の流れや施術中の痛みは?",
        "visible": 1,
        "sort_no": 3,
        "created_at": null,
        "updated_at": null
      },
      {
        "id": 5,
        "name": "ドクターやスタッフの対応はどうでしたか?",
        "visible": 1,
        "sort_no": 4,
        "created_at": null,
        "updated_at": null
      },
      {
        "id": 6,
        "name": "この施術をしたいと思ってる人へアドバイスを",
        "visible": 1,
        "sort_no": 5,
        "created_at": null,
        "updated_at": null
      }
    ],
    "rateQuestions": [
      {
        "id": 1,
        "name": "施術前の説明は十分でしたか?",
        "type": "TREAT",
        "sort_no": null
      },
      {
        "id": 2,
        "name": "施術の仕上がりに満足していますか?",
        "type": "TREAT",
        "sort_no": null
      },
      {
        "id": 3,
        "name": "施術の料金は妥当でしたか?",
        "type": "TREAT",
        "sort_no": null
      },
      {
        "id": 4,
        "name": "院内の雰囲気、設備、清潔感はいかがでしたか?",
        "type": "CLINIC",
        "sort_no": null
      },
      {
        "id": 5,
        "name": "スタッフの対応はいかがでしたか?",
        "type": "CLINIC",
        "sort_no": null
      },
      {
        "id": 6,
        "name": "プライバシーへの配慮はいかがでしたか?",
        "type": "CLINIC",
        "sort_no": null
      },
      {
        "id": 7,
        "name": "治療前の説明は十分でしたか?",
        "type": "DOCTOR",
        "sort_no": null
      },
      {
        "id": 8,
        "name": "ご自分の要望・意見を考慮してもらえましたか?",
        "type": "DOCTOR",
        "sort_no": null
      },
      {
        "id": 9,
        "name": "術前、術中、術後の対応はいかがでしたか?",
        "type": "DOCTOR",
        "sort_no": null
      }
    ]
  }
}

日記

コメント一覧
GET/progresses/1/comments{?per_page,page}

  • IDを持つコメントのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/progresses/1/comments?per_page=50&page=1
URI Parameters
HideShow
per_page
integer (required) Example: 50
page
integer (required) Example: 1
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 4,
        "patient_id": 2,
        "parent_id": null,
        "comment": "コメント",
        "created_at": "2022-04-27T01:26:32.000000Z",
        "updated_at": "2022-04-27T01:26:32.000000Z",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "all_children": []
      },
      {
        "id": 1,
        "patient_id": 2,
        "parent_id": null,
        "comment": "コメント",
        "created_at": "2022-03-21T18:00:20.000000Z",
        "updated_at": "2022-03-21T18:00:20.000000Z",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "all_children": []
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/progresses/1/comments?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/progresses/1/comments?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/progresses/1/comments",
    "per_page": "50",
    "prev_page_url": null,
    "to": 2,
    "total": 2
  }
}

カウンセレポ

Group description

カウンセレポ

一覧
GET/counselings{?per_page,page,category_id,patient_id,favorite,pref_id,city,orderby}

  • カウンセレポリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/counselings?per_page=10&page=1&category_id=''&patient_id=''&favorite=''&pref_id=''&city=''&orderby=comments_count
URI Parameters
HideShow
per_page
integer (required) Example: 10
page
integer (required) Example: 1
category_id
integer (required) Example: ''
patient_id
integer (required) Example: ''
favorite
string (required) Example: ''
pref_id
integer (required) Example: ''
city
string (required) Example: ''
orderby
string (required) Example: comments_count
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "counselings": {
      "current_page": 1,
      "data": [
        {
          "id": 1,
          "patient_id": 2,
          "clinic_id": 1,
          "doctor_id": 76,
          "counseling_date": "2020-10-10",
          "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
          "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
          "before_counseling": "カウンセリングの様子はどうでしたか?",
          "after_ccounseling": "カウンセリング後の感想",
          "rate": 4,
          "created_at": "2022-03-25T00:01:27.000000Z",
          "updated_at": "2022-03-25T00:01:27.000000Z",
          "comments_count": 1,
          "views_count": 0,
          "likes_count": 1,
          "is_like": true,
          "clinic_name": "クリニック1",
          "patient_nickname": "patient01",
          "patient_photo": null,
          "doctor_name": "医師-7",
          "is_favorite": true,
          "medias": [],
          "categories": [
            {
              "id": 20,
              "parent_id": null,
              "name": "タトゥー・刺青除去",
              "pivot": {
                "counseling_id": 1,
                "category_id": 20
              }
            },
            {
              "id": 26,
              "parent_id": null,
              "name": "その他",
              "pivot": {
                "counseling_id": 1,
                "category_id": 26
              }
            }
          ]
        },
        {
          "id": 2,
          "patient_id": 2,
          "clinic_id": 1,
          "doctor_id": 76,
          "counseling_date": "2020-10-10",
          "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
          "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
          "before_counseling": "カウンセリングの様子はどうでしたか?",
          "after_ccounseling": "カウンセリング後の感想",
          "rate": 4,
          "created_at": "2022-04-01T11:30:16.000000Z",
          "updated_at": "2022-04-01T11:30:16.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "clinic_name": "クリニック1",
          "patient_nickname": "patient01",
          "patient_photo": null,
          "doctor_name": "医師-7",
          "is_favorite": false,
          "medias": [],
          "categories": [
            {
              "id": 20,
              "parent_id": null,
              "name": "タトゥー・刺青除去",
              "pivot": {
                "counseling_id": 2,
                "category_id": 20
              }
            },
            {
              "id": 26,
              "parent_id": null,
              "name": "その他",
              "pivot": {
                "counseling_id": 2,
                "category_id": 26
              }
            }
          ]
        },
        {
          "id": 3,
          "patient_id": 2,
          "clinic_id": 1,
          "doctor_id": 76,
          "counseling_date": "2020-10-10",
          "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
          "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
          "before_counseling": "カウンセリングの様子はどうでしたか?",
          "after_ccounseling": "カウンセリング後の感想",
          "rate": 4,
          "created_at": "2022-04-01T11:34:04.000000Z",
          "updated_at": "2022-04-01T11:34:04.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "clinic_name": "クリニック1",
          "patient_nickname": "patient01",
          "patient_photo": null,
          "doctor_name": "医師-7",
          "is_favorite": false,
          "medias": [],
          "categories": [
            {
              "id": 20,
              "parent_id": null,
              "name": "タトゥー・刺青除去",
              "pivot": {
                "counseling_id": 3,
                "category_id": 20
              }
            },
            {
              "id": 26,
              "parent_id": null,
              "name": "その他",
              "pivot": {
                "counseling_id": 3,
                "category_id": 26
              }
            }
          ]
        }
      ],
      "first_page_url": "http://127.0.0.1:8000/api/user/counselings?page=1",
      "from": 1,
      "last_page": 1,
      "last_page_url": "http://127.0.0.1:8000/api/user/counselings?page=1",
      "next_page_url": null,
      "path": "http://127.0.0.1:8000/api/user/counselings",
      "per_page": "10",
      "prev_page_url": null,
      "to": 3,
      "total": 3
    }
  }
}

カウンセレポ

詳細
GET/counselings/1

  • そのIDのカウンセレポ内容を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/counselings/1
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "counseling": {
      "id": 1,
      "patient_id": 2,
      "clinic_id": 1,
      "doctor_id": 76,
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": 4,
      "created_at": "2022-03-25T00:01:27.000000Z",
      "updated_at": "2022-03-25T00:01:27.000000Z",
      "views_count": 0,
      "comments_count": 1,
      "likes_count": 1,
      "is_like": true,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-7",
      "is_favorite": true,
      "medias": [],
      "questions": [
        {
          "id": 1,
          "counseling_report_id": 1,
          "question": "質問1",
          "answer": "回答1",
          "created_at": "2022-03-25T00:01:27.000000Z",
          "updated_at": "2022-03-25T00:01:27.000000Z"
        },
        {
          "id": 2,
          "counseling_report_id": 1,
          "question": "質問2",
          "answer": "回答2",
          "created_at": "2022-03-25T00:01:27.000000Z",
          "updated_at": "2022-03-25T00:01:27.000000Z"
        }
      ],
      "clinic": {
        "id": 1,
        "user_id": 1,
        "name": "クリニック1",
        "pref_id": null,
        "city_id": null,
        "town_id": null,
        "addr02": "ABCビル 3階",
        "nearest_station": "渋谷駅、代官山駅",
        "site": "abc.com",
        "access": "渋谷駅から徒歩5分",
        "phone_number": "012001234",
        "credit_card": null,
        "parking": null,
        "photo": null,
        "created_at": "2021-02-11T09:50:01.000000Z",
        "updated_at": "2022-03-19T04:03:29.000000Z",
        "firebase_key": "YKo7jsNyr5yIXe79xK1T",
        "diaries_count": 3,
        "counselings_count": 3,
        "menus_count": 33,
        "stuffs_count": 10,
        "favoriters_count": 0,
        "is_favorite": false,
        "address": "ABCビル 3階",
        "addr01": "",
        "user_name": "クリニック1",
        "email": "clinic@gmail.com",
        "role": "clinic",
        "work_times": [
          {
            "weekday": "月曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "火曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "水曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "木曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "金曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "土曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "日曜日",
            "type": null,
            "start_time": null,
            "end_time": null
          },
          {
            "weekday": "祝日",
            "type": null,
            "start_time": null,
            "end_time": null
          }
        ]
      },
      "doctor": {
        "id": 76,
        "user_id": 63,
        "clinic_id": 1,
        "kata_name": "田中 仁7",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": null,
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-7",
        "email": "vvv@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      }
    }
  }
}

カウンセレポ

新規作成
POST/counselings

  • 新しいカウンセレポ追加

  • clinic_id, doctor_id, counseling_date, content, before_counseling, rate, categoriesは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/counselings
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "counselings[clinic_id]": "1",
    "counselings[doctor_id]": "74",
    "counselings[counseling_date]": "2020-10-10"
    "counselings[content]": "TBD-ここに例を入れる(どんなことに悩んでいますか?)"
    "counselings[reason]": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)"
    "counselings[before_counseling]": "カウンセリングの様子はどうでしたか?"
    "counselings[after_ccounseling]": "カウンセリング後の感想"
    "counselings[rate]": "4"
    "categories[]": "20"
    "categories[]": "26"
    "medias[self][]": "1"
    "medias[self][]": "2"
    "medias[like][]": "3"
    "medias[like][]": "4"
    "medias[dislike][]": "5"
    "questions[1][question]": "質問1"
    "questions[1][answer]": "回答1"
    "questions[2][question]": "質問2"
    "questions[2][answer]": "回答2"
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "counseling": {
      "clinic_id": "1",
      "doctor_id": "74",
      "counseling_date": "2020-10-10",
      "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
      "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
      "before_counseling": "カウンセリングの様子はどうでしたか?",
      "after_ccounseling": "カウンセリング後の感想",
      "rate": "4",
      "patient_id": 2,
      "updated_at": "2022-04-27T12:44:57.000000Z",
      "created_at": "2022-04-27T12:44:57.000000Z",
      "id": 4,
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "clinic_name": "クリニック1",
      "patient_nickname": "patient01",
      "patient_photo": null,
      "doctor_name": "医師-5",
      "is_favorite": false,
      "categories": [
        {
          "id": 20,
          "parent_id": null,
          "name": "タトゥー・刺青除去",
          "pivot": {
            "counseling_id": 4,
            "category_id": 20
          }
        },
        {
          "id": 26,
          "parent_id": null,
          "name": "その他",
          "pivot": {
            "counseling_id": 4,
            "category_id": 26
          }
        }
      ],
      "media_self": [],
      "media_like": [],
      "media_dislike": [],
      "questions": [
        {
          "id": 7,
          "counseling_report_id": 4,
          "question": "質問1",
          "answer": "回答1",
          "created_at": "2022-04-27T12:44:57.000000Z",
          "updated_at": "2022-04-27T12:44:57.000000Z"
        },
        {
          "id": 8,
          "counseling_report_id": 4,
          "question": "質問2",
          "answer": "回答2",
          "created_at": "2022-04-27T12:44:57.000000Z",
          "updated_at": "2022-04-27T12:44:57.000000Z"
        }
      ]
    }
  }
}

カウンセレポ

いいね
POST/counselings/1/toggleLike

  • 該当IDのカウンセレポを「いいね」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/counselings/1/toggleLike
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

カウンセレポ

お気に入り
POST/counselings/1/toggleFavorite

  • 該当IDのカウンセレポを「お気に入り」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/counselings/1/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

カウンセレポ

コメント
POST/counselings/1/comments

  • 該当IDのカウンセレポにコメントを追加

Example URI

POST http://test.clinic.lxa.jp/api/user/counselings/1/comments
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "comments[parent_id]": "" (integer)
    "comments[comment]": "コメントdwwd" (string)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "commet": {
      "parent_id": null,
      "comment": "コメントdwwd",
      "patient_id": 2,
      "updated_at": "2022-04-27T12:53:38.000000Z",
      "created_at": "2022-04-27T12:53:38.000000Z",
      "id": 5,
      "patient_nickname": "patient01",
      "patient_photo": null
    }
  }
}

カウンセレポ

コメント一覧
GET/counselings/1/comments{?per_page,page}

  • 該当IDのカウンセレポのためのコメントリスト返却

Example URI

GET http://test.clinic.lxa.jp/api/user/counselings/1/comments?per_page=1&page=1
URI Parameters
HideShow
per_page
integer (required) Example: 1
page
integer (required) Example: 1
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 5,
        "patient_id": 2,
        "parent_id": null,
        "comment": "コメントdwwd",
        "created_at": "2022-04-27T12:53:38.000000Z",
        "updated_at": "2022-04-27T12:53:38.000000Z",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "all_children": []
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/counselings/1/comments?page=1",
    "from": 1,
    "last_page": 2,
    "last_page_url": "http://127.0.0.1:8000/api/user/counselings/1/comments?page=2",
    "next_page_url": "http://127.0.0.1:8000/api/user/counselings/1/comments?page=2",
    "path": "http://127.0.0.1:8000/api/user/counselings/1/comments",
    "per_page": "1",
    "prev_page_url": null,
    "to": 1,
    "total": 2
  }
}

質問

Group description

質問

一覧
GET/questions{?per_page,page,category_id,patient_id,orderby}

  • 質問リストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/questions?per_page=10&page=1&category_id=''&patient_id=''&orderby=comments_count
URI Parameters
HideShow
per_page
integer (required) Example: 10
page
integer (required) Example: 1
category_id
integer (required) Example: ''
patient_id
integer (required) Example: ''
orderby
string (required) Example: comments_count
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "questions": {
      "current_page": 1,
      "data": [
        {
          "id": 9,
          "patient_id": 17,
          "title": "9この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:31.000000Z",
          "updated_at": "2021-08-12T09:52:32.000000Z",
          "comments_count": 1,
          "views_count": 1,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 1,
          "patient_id": 17,
          "title": "1この鼻はどのような整形がベストですか?1この鼻はどのような整形がベストですか?1この鼻はどのような整形がベストですか?1この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:11.000000Z",
          "updated_at": "2021-08-12T09:52:12.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [
            {
              "id": 39,
              "doctor_id": 57,
              "question_id": 1,
              "answer": "4,5ヶ月前に瞼の脂肪吸引",
              "created_at": "2021-08-09T09:07:49.000000Z",
              "doctor": null,
              "photos": [
                {
                  "id": 16,
                  "photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/doctor/answers/thumbs/KikSFF8950.jpg"
                }
              ]
            },
            {
              "id": 40,
              "doctor_id": 57,
              "question_id": 1,
              "answer": "瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の たし",
              "created_at": "2021-08-09T09:09:36.000000Z",
              "doctor": null,
              "photos": [
                {
                  "id": 17,
                  "photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/doctor/answers/thumbs/pcXIZI9881.jpg"
                }
              ]
            },
            {
              "id": 42,
              "doctor_id": 57,
              "question_id": 1,
              "answer": "瞼は以前同様腫れぼったく",
              "created_at": "2021-08-11T11:48:06.000000Z",
              "doctor": null,
              "photos": [
                {
                  "id": 23,
                  "photo": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/doctor/answers/thumbs/CTPKif9489.jpg"
                }
              ]
            }
          ],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": [
            {
              "id": 72,
              "parent_id": 3,
              "name": "鼻尖縮小",
              "pivot": {
                "question_id": 1,
                "category_id": 72
              }
            }
          ]
        },
        {
          "id": 2,
          "patient_id": 17,
          "title": "2この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:15.000000Z",
          "updated_at": "2021-08-12T09:52:17.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 3,
          "patient_id": 17,
          "title": "3この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:18.000000Z",
          "updated_at": "2021-08-12T09:52:19.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 4,
          "patient_id": 17,
          "title": "4この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:21.000000Z",
          "updated_at": "2021-08-12T09:52:22.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 5,
          "patient_id": 17,
          "title": "5この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:23.000000Z",
          "updated_at": "2021-08-12T09:52:24.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 6,
          "patient_id": 17,
          "title": "6この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:25.000000Z",
          "updated_at": "2021-08-12T09:52:26.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 7,
          "patient_id": 17,
          "title": "7この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:27.000000Z",
          "updated_at": "2021-08-12T09:52:28.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 8,
          "patient_id": 17,
          "title": "8この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:29.000000Z",
          "updated_at": "2021-08-12T09:52:30.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        },
        {
          "id": 10,
          "patient_id": 17,
          "title": "10この鼻はどのような整形がベストですか?",
          "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
          "created_at": "2021-08-12T09:52:33.000000Z",
          "updated_at": "2021-08-12T09:52:34.000000Z",
          "comments_count": 0,
          "views_count": 0,
          "likes_count": 0,
          "is_like": false,
          "is_favorite": false,
          "answers": [],
          "owner": {
            "id": 17,
            "user_id": 18,
            "name": "患者_16",
            "kana": "カンジャ_16",
            "gender": "male",
            "phone_number": "+9005110699925",
            "birthday": "1990-07-26",
            "created_at": "2021-02-11T13:49:52.000000Z",
            "updated_at": "2021-02-11T13:49:52.000000Z",
            "unique_id": null,
            "nickname": null,
            "intro": null,
            "photo": "storage/patient/profile/1535282.jpg",
            "point": 2000,
            "area_id": null,
            "firebase_key": null,
            "age": 31,
            "area": null,
            "follows_count": 0,
            "followers_count": 0,
            "is_follow": false,
            "phone_only_number": "9005110699925"
          },
          "medias": [],
          "categories": []
        }
      ],
      "first_page_url": "http://127.0.0.1:8000/api/user/questions?page=1",
      "from": 1,
      "last_page": 2,
      "last_page_url": "http://127.0.0.1:8000/api/user/questions?page=2",
      "next_page_url": "http://127.0.0.1:8000/api/user/questions?page=2",
      "path": "http://127.0.0.1:8000/api/user/questions",
      "per_page": "10",
      "prev_page_url": null,
      "to": 10,
      "total": 15
    }
  }
}

質問

詳細
GET/questions/9

  • 該当IDの質問コンテンツを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/questions/9
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "question": {
      "id": 9,
      "patient_id": 17,
      "title": "9この鼻はどのような整形がベストですか?",
      "content": "4,5ヶ月前に瞼の脂肪吸引・埋没を行ったのですが、瞼は以前同様腫れぼったく、二重も線が薄く元の奥二重線の\nたしか保証は付けていなかったのですが、あまりにも変な仕上がりになってしまったのでどうなんでしょうか。...",
      "created_at": "2021-08-12T09:52:31.000000Z",
      "updated_at": "2021-08-12T09:52:32.000000Z",
      "views_count": 1,
      "comments_count": 1,
      "likes_count": 0,
      "is_like": false,
      "is_favorite": false,
      "answers": [],
      "owner": {
        "id": 17,
        "user_id": 18,
        "name": "患者_16",
        "kana": "カンジャ_16",
        "gender": "male",
        "phone_number": "+9005110699925",
        "birthday": "1990-07-26",
        "created_at": "2021-02-11T13:49:52.000000Z",
        "updated_at": "2021-02-11T13:49:52.000000Z",
        "unique_id": null,
        "nickname": null,
        "intro": null,
        "photo": "storage/patient/profile/1535282.jpg",
        "point": 2000,
        "area_id": null,
        "firebase_key": null,
        "age": 31,
        "area": null,
        "follows_count": 0,
        "followers_count": 0,
        "is_follow": false,
        "phone_only_number": "9005110699925"
      },
      "categories": [],
      "medias": [],
      "comments_limit50": [
        {
          "id": 3,
          "patient_id": 2,
          "parent_id": null,
          "comment": "コメント",
          "created_at": "2022-03-25T01:20:08.000000Z",
          "updated_at": "2022-03-25T01:20:08.000000Z",
          "patient_nickname": "patient01",
          "patient_photo": null,
          "all_children": []
        }
      ]
    }
  }
}

質問

新規登録
POST/questions

  • 新しい質問を追加

  • title, content, categoriesは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/questions
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "questions[title]": "タイトル1" (string)
    "questions[content]": "content" (string)
    "categories[]": "11" (integer)
    "categories[]": "23" (integer)
    "categories[]": "50" (integer)
    "medias[]": "15" (integer)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "question": {
      "title": "タイトル1",
      "content": "content",
      "patient_id": 2,
      "updated_at": "2022-04-27T13:05:05.000000Z",
      "created_at": "2022-04-27T13:05:05.000000Z",
      "id": 17,
      "views_count": 0,
      "comments_count": 0,
      "likes_count": 0,
      "is_like": false,
      "is_favorite": false,
      "answers": []
    }
  }
}

質問

いいね
POST/questions/12/toggleLike

  • 該当IDの質問を「いいね」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/questions/12/toggleLike
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

質問

お気に入り
POST/questions/11/toggleFavorite

  • 該当IDの質問を「お気に入り」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/questions/11/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

質問

コメント
POST/questions/9/comments

  • 該当IDの質問にコメントを追加

Example URI

POST http://test.clinic.lxa.jp/api/user/questions/9/comments
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "comments[parent_id]": "" (integer)
    "comments[comment]": "コメント" (string)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "comment": {
      "parent_id": null,
      "comment": "コメント",
      "patient_id": 2,
      "updated_at": "2022-04-27T13:11:39.000000Z",
      "created_at": "2022-04-27T13:11:39.000000Z",
      "id": 6,
      "patient_nickname": "patient01",
      "patient_photo": null
    }
  }
}

質問

コメント一覧
GET/questions/9/comments{?per_page,page}

  • 該当IDの質問のためのコメントリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/questions/9/comments?per_page=50&page=2
URI Parameters
HideShow
per_page
integer (required) Example: 50
page
integer (required) Example: 2
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "current_page": 2,
    "data": [],
    "first_page_url": "http://127.0.0.1:8000/api/user/questions/9/comments?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/questions/9/comments?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/questions/9/comments",
    "per_page": "50",
    "prev_page_url": "http://127.0.0.1:8000/api/user/questions/9/comments?page=1",
    "to": null,
    "total": 2
  }
}

症例

Group description

症例

一覧
GET/cases{?per_page,page,clinic_id,doctor_id,q}

  • 症例のリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/cases?per_page=10&page=1&clinic_id=''&doctor_id=''&q=''
URI Parameters
HideShow
per_page
integer (required) Example: 10
page
integer (required) Example: 1
clinic_id
integer (required) Example: ''
doctor_id
integer (required) Example: ''
q
string (required) Example: ''
Response  200
HideShow
Body
{
  "cases": {
    "current_page": 1,
    "data": [
      {
        "id": 33,
        "clinic_id": 1,
        "doctor_id": 74,
        "name": "症例302",
        "patient_age": 20,
        "patient_gender": "female",
        "case_description": "施術の解説",
        "treat_risk": "副作用・リスク",
        "doctor_opinion": "担当ドクターからのコメント",
        "created_at": "2022-03-17T21:54:19.000000Z",
        "updated_at": "2022-03-17T21:54:19.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [
          {
            "id": 29,
            "parent_id": 1,
            "name": "目頭切開",
            "pivot": {
              "case_id": 33,
              "category_id": 29
            }
          },
          {
            "id": 34,
            "parent_id": 1,
            "name": "眉下切開",
            "pivot": {
              "case_id": 33,
              "category_id": 34
            }
          }
        ],
        "menus": [
          {
            "id": 14,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-06-26T05:57:23.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 33,
              "menu_id": 14
            }
          },
          {
            "id": 20,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 33,
              "menu_id": 20
            }
          }
        ],
        "doctor": {
          "id": 74,
          "user_id": 61,
          "clinic_id": 1,
          "kata_name": "田中 仁5",
          "hira_name": "田中 仁",
          "gender": null,
          "phone_number": null,
          "birthday": null,
          "area_id": null,
          "job_id": 1,
          "experience_year": 2,
          "spec0": null,
          "spec1": null,
          "spec2": null,
          "profile": "1997年ラシア大学医学部卒業 <br>",
          "career": "美容外科専門医(JSAS)<br>",
          "photo": null,
          "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
          "job_name": "医師",
          "spec0_name": null,
          "spec1_name": null,
          "spec2_name": null,
          "name": "医師-5",
          "email": "ggg@gmail.com",
          "role": "doctor",
          "likes_count": 1,
          "is_like": true,
          "favoriters_count": 1,
          "is_favorite": true,
          "views_count": 1
        }
      },
      {
        "id": 32,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "症例301",
        "patient_age": 40,
        "patient_gender": "male",
        "case_description": "施術の解説301",
        "treat_risk": "副作用・リスク",
        "doctor_opinion": "担当ドクターからのコメント",
        "created_at": "2022-03-17T21:30:42.000000Z",
        "updated_at": "2022-03-17T21:31:19.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [
          {
            "id": 28,
            "parent_id": 1,
            "name": "二重切開法",
            "pivot": {
              "case_id": 32,
              "category_id": 28
            }
          },
          {
            "id": 31,
            "parent_id": 1,
            "name": "グラマラスライン",
            "pivot": {
              "case_id": 32,
              "category_id": 31
            }
          }
        ],
        "menus": [
          {
            "id": 13,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-06-24T00:55:51.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 32,
              "menu_id": 13
            }
          },
          {
            "id": 18,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 32,
              "menu_id": 18
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 31,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "タイトル2",
        "patient_age": 10,
        "patient_gender": "female",
        "case_description": "施術の解説",
        "treat_risk": "副作用・リスク",
        "doctor_opinion": "担当ドクターからのコメント",
        "created_at": "2021-08-09T03:27:50.000000Z",
        "updated_at": "2021-08-09T03:27:50.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [
          {
            "id": 17,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 31,
              "menu_id": 17
            }
          },
          {
            "id": 38,
            "clinic_id": 1,
            "name": "メニュー3",
            "price": 15600,
            "description": "メニューの説明\nメニューの説明\nメニューの説明",
            "risk": "副作用・リスク\n副作用・リスク\n副作用・リスク",
            "guarantee": "施術の保証\n施術の保証\n施術の保証",
            "treat_time": 15,
            "basshi": 5,
            "hospital_visit": 10,
            "hare": 15,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": 15,
            "photo": null,
            "status": 1,
            "created_at": "2021-07-20T05:38:05.000000Z",
            "updated_at": "2021-08-09T03:21:19.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 31,
              "menu_id": 38
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 30,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "タイトル1",
        "patient_age": 20,
        "patient_gender": "female",
        "case_description": "施術の解説1\n施術の解説1\n施術の解説1",
        "treat_risk": "副作用・リスク1\n副作用・リスク1\n副作用・リスク1",
        "doctor_opinion": "担当ドクターからのコメント1\n担当ドクターからのコメント1\n担当ドクターからのコメント1",
        "created_at": "2021-07-18T12:58:59.000000Z",
        "updated_at": "2021-07-20T05:47:11.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [
          {
            "id": 9,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 30,
              "menu_id": 9
            }
          },
          {
            "id": 16,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 30,
              "menu_id": 16
            }
          },
          {
            "id": 37,
            "clinic_id": 1,
            "name": "メニュー02",
            "price": 150000,
            "description": "メニューの説明2",
            "risk": "副作用・リスク2",
            "guarantee": "施術の保証2",
            "treat_time": 10,
            "basshi": 5,
            "hospital_visit": 5,
            "hare": 25,
            "pain": 10,
            "bleeding": 10,
            "hospital_need": 5,
            "masui": 10,
            "makeup": 10,
            "shower": 10,
            "massage": 10,
            "sport_impossible": 10,
            "photo": null,
            "status": 0,
            "created_at": "2021-07-17T12:39:26.000000Z",
            "updated_at": "2022-03-17T04:23:13.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 30,
              "menu_id": 37
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 29,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "ああああ",
        "patient_age": 30,
        "patient_gender": "female",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": "ああああ",
        "created_at": "2021-06-24T00:13:07.000000Z",
        "updated_at": "2021-06-25T07:58:17.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [
          {
            "id": 7,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2022-03-17T21:23:08.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 29,
              "menu_id": 7
            }
          },
          {
            "id": 28,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 29,
              "menu_id": 28
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 1,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "二重術1dayナチュラルプレミアム法",
        "patient_age": 10,
        "patient_gender": "female",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": null,
        "created_at": "2021-04-18T21:31:48.000000Z",
        "updated_at": "2021-06-23T23:55:56.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [
          {
            "id": 7,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2022-03-17T21:23:08.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 1,
              "menu_id": 7
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 2,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "二重術1dayナチュラルプレミアム法",
        "patient_age": 20,
        "patient_gender": "male",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": null,
        "created_at": "2021-04-18T21:31:48.000000Z",
        "updated_at": "2021-07-18T13:08:45.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [
          {
            "id": 19,
            "clinic_id": 1,
            "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
            "price": 248900,
            "description": "ああああ",
            "risk": "ああああ",
            "guarantee": "ああああ",
            "treat_time": 5,
            "basshi": null,
            "hospital_visit": null,
            "hare": null,
            "pain": null,
            "bleeding": null,
            "hospital_need": null,
            "masui": null,
            "makeup": null,
            "shower": null,
            "massage": null,
            "sport_impossible": null,
            "photo": null,
            "status": 1,
            "created_at": "2021-04-18T17:11:38.000000Z",
            "updated_at": "2021-04-18T17:11:38.000000Z",
            "is_favorite": false,
            "pivot": {
              "case_id": 2,
              "menu_id": 19
            }
          }
        ],
        "doctor": null
      },
      {
        "id": 3,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "二重術1dayナチュラルプレミアム法",
        "patient_age": 11,
        "patient_gender": "male",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": null,
        "created_at": "2021-04-18T21:31:48.000000Z",
        "updated_at": "2021-06-15T19:03:11.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [],
        "doctor": null
      },
      {
        "id": 4,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "二重術1dayナチュラルプレミアム法",
        "patient_age": 11,
        "patient_gender": "male",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": "ああああ",
        "created_at": "2021-04-18T21:31:48.000000Z",
        "updated_at": "2021-06-16T14:00:39.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [],
        "doctor": null
      },
      {
        "id": 5,
        "clinic_id": 1,
        "doctor_id": null,
        "name": "二重術1dayナチュラルプレミアム法 ",
        "patient_age": 11,
        "patient_gender": "male",
        "case_description": "あああ",
        "treat_risk": "あああ",
        "doctor_opinion": null,
        "created_at": "2021-04-18T21:31:48.000000Z",
        "updated_at": "2021-06-15T19:28:27.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "categories": [],
        "menus": [],
        "doctor": null
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/cases?page=1",
    "from": 1,
    "last_page": 3,
    "last_page_url": "http://127.0.0.1:8000/api/user/cases?page=3",
    "next_page_url": "http://127.0.0.1:8000/api/user/cases?page=2",
    "path": "http://127.0.0.1:8000/api/user/cases",
    "per_page": "10",
    "prev_page_url": null,
    "to": 10,
    "total": 25
  }
}

症例

詳細
GET/cases/1

  • 該当IDの症例コンテンツを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/cases/1
Response  200
HideShow
Body
{
  "case": {
    "id": 1,
    "clinic_id": 1,
    "doctor_id": null,
    "name": "二重術1dayナチュラルプレミアム法",
    "patient_age": 10,
    "patient_gender": "female",
    "case_description": "あああ",
    "treat_risk": "あああ",
    "doctor_opinion": null,
    "created_at": "2021-04-18T21:31:48.000000Z",
    "updated_at": "2021-06-23T23:55:56.000000Z",
    "views_count": 0,
    "comments_count": 0,
    "likes_count": 0,
    "is_like": false,
    "clinic": {
      "id": 1,
      "user_id": 1,
      "name": "クリニック1",
      "pref_id": null,
      "city_id": null,
      "town_id": null,
      "addr02": "ABCビル 3階",
      "nearest_station": "渋谷駅、代官山駅",
      "site": "abc.com",
      "access": "渋谷駅から徒歩5分",
      "phone_number": "012001234",
      "credit_card": null,
      "parking": null,
      "photo": null,
      "created_at": "2021-02-11T09:50:01.000000Z",
      "updated_at": "2022-03-19T04:03:29.000000Z",
      "firebase_key": "YKo7jsNyr5yIXe79xK1T",
      "diaries_count": 3,
      "counselings_count": 4,
      "menus_count": 33,
      "stuffs_count": 10,
      "favoriters_count": 0,
      "is_favorite": false,
      "address": "ABCビル 3階",
      "addr01": "",
      "user_name": "クリニック1",
      "email": "clinic@gmail.com",
      "role": "clinic",
      "work_times": [
        {
          "weekday": "月曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "火曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "水曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "木曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "金曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "土曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "日曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "祝日",
          "type": null,
          "start_time": null,
          "end_time": null
        }
      ]
    },
    "categories": [],
    "menus": [
      {
        "id": 7,
        "clinic_id": 1,
        "name": "埋没法ダブル(5年保証付き)両目埋没法ダブル(5年保証付き)両目",
        "price": 248900,
        "description": "ああああ",
        "risk": "ああああ",
        "guarantee": "ああああ",
        "treat_time": 5,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-04-18T17:11:38.000000Z",
        "updated_at": "2022-03-17T21:23:08.000000Z",
        "is_favorite": false,
        "pivot": {
          "case_id": 1,
          "menu_id": 7
        }
      }
    ],
    "doctor": null
  }
}

ドクター

Group description

ドクター

一覧
GET/doctors{?per_page,page,clinic_id,favorite,q}

  • ドクターのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/doctors?per_page=10&page=1&clinic_id='1'&favorite=''&q=''
URI Parameters
HideShow
per_page
integer (required) Example: 10
page
integer (required) Example: 1
clinic_id
integer (required) Example: '1'
favorite
string (required) Example: ''
q
string (required) Example: ''
Response  200
HideShow
Body
{
  "doctors": {
    "current_page": 1,
    "data": [
      {
        "id": 71,
        "user_id": 58,
        "clinic_id": 1,
        "kata_name": "田中 仁2",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": null,
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-2",
        "email": "doctor116@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 74,
        "user_id": 61,
        "clinic_id": 1,
        "kata_name": "田中 仁5",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": 2,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": "1997年ラシア大学医学部卒業 <br>",
        "career": "美容外科専門医(JSAS)<br>",
        "photo": null,
        "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-5",
        "email": "ggg@gmail.com",
        "role": "doctor",
        "likes_count": 1,
        "is_like": true,
        "favoriters_count": 1,
        "is_favorite": true,
        "views_count": 1
      },
      {
        "id": 76,
        "user_id": 63,
        "clinic_id": 1,
        "kata_name": "田中 仁7",
        "hira_name": "田中 仁",
        "gender": null,
        "phone_number": null,
        "birthday": null,
        "area_id": null,
        "job_id": 1,
        "experience_year": null,
        "spec0": null,
        "spec1": null,
        "spec2": null,
        "profile": null,
        "career": null,
        "photo": null,
        "firebase_key": null,
        "job_name": "医師",
        "spec0_name": null,
        "spec1_name": null,
        "spec2_name": null,
        "name": "医師-7",
        "email": "vvv@gmail.com",
        "role": "doctor",
        "likes_count": 0,
        "is_like": false,
        "favoriters_count": 0,
        "is_favorite": false,
        "views_count": 0
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/doctors?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/doctors?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/doctors",
    "per_page": "10",
    "prev_page_url": null,
    "to": 3,
    "total": 3
  }
}

ドクター

詳細
GET/doctors/74

  • 該当IDのドクターコンテンツを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/doctors/74
Response  200
HideShow
Body
{
  "doctor": {
    "id": 74,
    "user_id": 61,
    "clinic_id": 1,
    "kata_name": "田中 仁5",
    "hira_name": "田中 仁",
    "gender": null,
    "phone_number": null,
    "birthday": null,
    "area_id": null,
    "job_id": 1,
    "experience_year": 2,
    "spec0": null,
    "spec1": null,
    "spec2": null,
    "profile": "1997年ラシア大学医学部卒業 <br>",
    "career": "美容外科専門医(JSAS)<br>",
    "photo": null,
    "firebase_key": "1cCQT9ms4EOeVYLmRa0s",
    "job_name": "医師",
    "spec0_name": null,
    "spec1_name": null,
    "spec2_name": null,
    "name": "医師-5",
    "email": "ggg@gmail.com",
    "role": "doctor",
    "likes_count": 1,
    "is_like": true,
    "favoriters_count": 1,
    "is_favorite": true,
    "views_count": 1,
    "clinic": {
      "id": 1,
      "user_id": 1,
      "name": "クリニック1",
      "pref_id": null,
      "city_id": null,
      "town_id": null,
      "addr02": "ABCビル 3階",
      "nearest_station": "渋谷駅、代官山駅",
      "site": "abc.com",
      "access": "渋谷駅から徒歩5分",
      "phone_number": "012001234",
      "credit_card": null,
      "parking": null,
      "photo": null,
      "created_at": "2021-02-11T09:50:01.000000Z",
      "updated_at": "2022-03-19T04:03:29.000000Z",
      "firebase_key": "YKo7jsNyr5yIXe79xK1T",
      "diaries_count": 3,
      "counselings_count": 4,
      "menus_count": 33,
      "stuffs_count": 10,
      "favoriters_count": 0,
      "is_favorite": false,
      "address": "ABCビル 3階",
      "addr01": "",
      "user_name": "クリニック1",
      "email": "clinic@gmail.com",
      "role": "clinic",
      "work_times": [
        {
          "weekday": "月曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "火曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "水曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "木曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "金曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "土曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "日曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "祝日",
          "type": null,
          "start_time": null,
          "end_time": null
        }
      ]
    },
    "counselings": [
      {
        "id": 4,
        "patient_id": 2,
        "clinic_id": 1,
        "doctor_id": 74,
        "counseling_date": "2020-10-10",
        "content": "TBD-ここに例を入れる(どんなことに悩んでいますか?)",
        "reason": "TBD-ここに例を入れる(このクリニックを選んだ理由は?)",
        "before_counseling": "カウンセリングの様子はどうでしたか?",
        "after_ccounseling": "カウンセリング後の感想",
        "rate": 4,
        "created_at": "2022-04-27T12:44:57.000000Z",
        "updated_at": "2022-04-27T12:44:57.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false,
        "clinic_name": "クリニック1",
        "patient_nickname": "patient01",
        "patient_photo": null,
        "doctor_name": "医師-5",
        "is_favorite": false
      }
    ],
    "cases": [
      {
        "id": 33,
        "clinic_id": 1,
        "doctor_id": 74,
        "name": "症例302",
        "patient_age": 20,
        "patient_gender": "female",
        "case_description": "施術の解説",
        "treat_risk": "副作用・リスク",
        "doctor_opinion": "担当ドクターからのコメント",
        "created_at": "2022-03-17T21:54:19.000000Z",
        "updated_at": "2022-03-17T21:54:19.000000Z",
        "views_count": 0,
        "comments_count": 0,
        "likes_count": 0,
        "is_like": false
      }
    ]
  }
}

ドクター

いいね
POST/doctors/74/toggleLike

  • 該当IDのドクターを「いいね」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/doctors/74/toggleLike
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

ドクター

お気に入り
POST/doctors/74/toggleFavorite

  • 該当IDのドクターを「お気に入り」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/doctors/74/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

予約

Group description

予約

患者情報
GET/reservations/patientInfo

  • ログインした患者情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/reservations/patientInfo
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "id": 2,
    "user_id": 3,
    "name": "患者_1",
    "kana": "k1k2",
    "gender": "male",
    "phone_number": "123456890",
    "birthday": "1994-11-14",
    "created_at": "2021-02-11T13:49:42.000000Z",
    "updated_at": "2022-04-25T07:52:17.000000Z",
    "unique_id": "abc123xdd",
    "nickname": "patient01",
    "intro": "テストです。",
    "photo": null,
    "point": 1700,
    "area_id": 1,
    "firebase_key": null,
    "age": 27,
    "area": "北海道",
    "follows_count": 1,
    "followers_count": 0,
    "is_follow": false,
    "phone_only_number": "123456890",
    "follows": [
      {
        "id": 8,
        "user_id": 9,
        "name": "患者_7",
        "kana": "カンジャ_7",
        "gender": "female",
        "phone_number": "+6519555666517",
        "birthday": "2015-03-10",
        "created_at": "2021-02-11T13:49:46.000000Z",
        "updated_at": "2021-02-11T13:49:46.000000Z",
        "unique_id": null,
        "nickname": null,
        "intro": null,
        "photo": null,
        "point": 2000,
        "area_id": null,
        "firebase_key": null,
        "age": 7,
        "area": null,
        "follows_count": 0,
        "followers_count": 1,
        "is_follow": true,
        "phone_only_number": "6519555666517",
        "pivot": {
          "patient_id": 2,
          "follow_id": 8
        }
      }
    ]
  }
}

予約

予約
POST/reservations

  • 新しい予約を追加

  • clinic_id, type, hope_treat, time, kana, gender, phone_number, birthdayは必須。指定がない場合、BadRequestを返す。

Example URI

POST http://test.clinic.lxa.jp/api/user/reservations
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "rsv[clinic_id]": "1" (integer)
    "rsv[doctor_id]": "" (integer)
    "rsv[type]": "5" (integer)
    "rsv[hope_treat]": "1" (integer)
    "rsv[hope_treat]": "" (integer)
    "rsv[note]": "" (string)
    "rsv[use_point]": "100" (integer)
    "time[0][date]": "2020/11/12" (treat_date)
    "time[0][start_time]": "08:00" (treat_time)
    "time[0][end_time]": "15:00" (treat_time)
    "time[1][date]": "2020/11/13" (treat_date)
    "time[1][start_time]": "14:00" (treat_time)
    "time[1][end_time]": "18:00" (treat_time)
    "time[2][date]": "" (treat_date)
    "time[2][start_time]": "" (treat_time)
    "time[2][end_time]": "" (treat_time)
    "info[kana01]": "k1" (string)
    "info[kana02]": "k2" (string)
    "info[gender]": "male" (string)
    "info[phone_number]": "123456890" (integer)
    "info[birthday]": "1994/11/14" (treat_date)
}
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "clinic_id": "1",
    "doctor_id": null,
    "hope_treat": "1",
    "note": null,
    "use_point": "100",
    "patient_id": 2,
    "status": 5,
    "updated_at": "2022-04-27T13:32:16.000000Z",
    "created_at": "2022-04-27T13:32:16.000000Z",
    "id": 42,
    "last_chat_time": null,
    "start_time_without_sec": "",
    "patient": {
      "id": 2,
      "user_id": 3,
      "name": "患者_1",
      "kana": "k1k2",
      "gender": "male",
      "phone_number": "123456890",
      "birthday": "1994-11-14",
      "created_at": "2021-02-11T13:49:42.000000Z",
      "updated_at": "2022-04-27T13:32:16.000000Z",
      "unique_id": "abc123xdd",
      "nickname": "patient01",
      "intro": "テストです。",
      "photo": null,
      "point": 1600,
      "area_id": 1,
      "firebase_key": null,
      "age": 27,
      "area": "北海道",
      "follows_count": 1,
      "followers_count": 0,
      "is_follow": false,
      "phone_only_number": "123456890",
      "user": {
        "id": 3,
        "name": "患者_1",
        "email_verified_at": null,
        "role": "patient",
        "firebase_key": null
      }
    },
    "clinic": {
      "id": 1,
      "user_id": 1,
      "name": "クリニック1",
      "pref_id": null,
      "city_id": null,
      "town_id": null,
      "addr02": "ABCビル 3階",
      "nearest_station": "渋谷駅、代官山駅",
      "site": "abc.com",
      "access": "渋谷駅から徒歩5分",
      "phone_number": "012001234",
      "credit_card": null,
      "parking": null,
      "photo": null,
      "created_at": "2021-02-11T09:50:01.000000Z",
      "updated_at": "2022-03-19T04:03:29.000000Z",
      "firebase_key": "YKo7jsNyr5yIXe79xK1T",
      "diaries_count": 3,
      "counselings_count": 4,
      "menus_count": 33,
      "stuffs_count": 10,
      "favoriters_count": 0,
      "is_favorite": false,
      "address": "ABCビル 3階",
      "addr01": "",
      "user_name": "クリニック1",
      "email": "clinic@gmail.com",
      "role": "clinic",
      "work_times": [
        {
          "weekday": "月曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "火曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "水曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "木曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "金曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "土曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "日曜日",
          "type": null,
          "start_time": null,
          "end_time": null
        },
        {
          "weekday": "祝日",
          "type": null,
          "start_time": null,
          "end_time": null
        }
      ],
      "user": {
        "id": 1,
        "name": "クリニック1",
        "email_verified_at": null,
        "role": "clinic",
        "firebase_key": "YKo7jsNyr5yIXe79xK1T"
      }
    },
    "hope_times": [
      {
        "id": 184,
        "reservation_id": 42,
        "date": "2020-11-12",
        "start_time": "08:00:00",
        "end_time": "15:00:00",
        "created_at": "2022-04-27T13:32:16.000000Z",
        "updated_at": "2022-04-27T13:32:16.000000Z",
        "hope_time": "08:00 ~ 15:00",
        "start_time_str": "2020年11月12日(木) 08:00"
      },
      {
        "id": 185,
        "reservation_id": 42,
        "date": "2020-11-13",
        "start_time": "14:00:00",
        "end_time": "18:00:00",
        "created_at": "2022-04-27T13:32:16.000000Z",
        "updated_at": "2022-04-27T13:32:16.000000Z",
        "hope_time": "14:00 ~ 18:00",
        "start_time_str": "2020年11月13日(金) 14:00"
      }
    ]
  }
}

予約

一覧
GET/reservations{?status}

  • 予約のリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/reservations?status=''
URI Parameters
HideShow
status
integer (required) Example: ''
Response  200
HideShow
Body
{
  "status": 1,
  "data": [
    {
      "clinic_name": "クリニック1",
      "status": 5,
      "visit_date": null,
      "visit_time": null,
      "mailbox": 93,
      "created_at": "2022-04-27T13:32:16.000000Z",
      "updated_at": "2022-04-27T13:32:16.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 5,
      "visit_date": null,
      "visit_time": null,
      "mailbox": 92,
      "created_at": "2022-04-05T09:00:13.000000Z",
      "updated_at": "2022-04-05T09:00:13.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 5,
      "visit_date": null,
      "visit_time": null,
      "mailbox": 91,
      "created_at": "2022-04-05T08:49:26.000000Z",
      "updated_at": "2022-04-05T08:49:26.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 5,
      "visit_date": null,
      "visit_time": null,
      "mailbox": 90,
      "created_at": "2022-03-28T03:46:01.000000Z",
      "updated_at": "2022-03-28T03:46:01.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 15,
      "visit_date": "2022-03-29",
      "visit_time": null,
      "mailbox": 88,
      "created_at": "2022-03-25T17:29:12.000000Z",
      "updated_at": "2022-03-26T00:14:04.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 15,
      "visit_date": "2022-03-15",
      "visit_time": null,
      "mailbox": 89,
      "created_at": "2022-03-25T17:49:58.000000Z",
      "updated_at": "2022-03-26T00:09:10.000000Z"
    },
    {
      "clinic_name": "クリニック1",
      "status": 5,
      "visit_date": null,
      "visit_time": null,
      "mailbox": 2,
      "created_at": "2021-02-11T13:49:42.000000Z",
      "updated_at": "2021-02-11T13:49:42.000000Z"
    }
  ]
}

予約

メッセージ一覧
GET/mailboxs/103/messages

  • 予約のメッセージリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/mailboxs/103/messages
Response  200
HideShow
Body
{
  "messages": [
    {
      "id": 70,
      "mailbox_id": 103,
      "user_id": 3,
      "message": "xxxxxx",
      "is_file": 0,
      "created_at": "2022-04-01T12:32:53.000000Z",
      "updated_at": "2022-04-01T12:32:53.000000Z",
      "is_mine": true,
      "file_thumb_url": "",
      "display_time_lable": "21:32",
      "sender": {
        "id": 3,
        "name": "患者_1",
        "email_verified_at": null,
        "role": "patient",
        "firebase_key": null
      }
    }
  ]
}

メッセージ送信
POST/mailboxs/103/messages

  • 新しいメッセージを追加

Example URI

POST http://test.clinic.lxa.jp/api/user/mailboxs/103/messages
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "messages[message]": "xxxxxx" (string)
}
Response  200
HideShow
Body
{
  "message": {
    "message": "xxxxxx",
    "mailbox_id": "103",
    "user_id": 3,
    "updated_at": "2022-04-27T13:42:54.000000Z",
    "created_at": "2022-04-27T13:42:54.000000Z",
    "id": 71,
    "is_mine": true,
    "file_thumb_url": "",
    "display_time_lable": "22:42",
    "sender": {
      "id": 3,
      "name": "患者_1",
      "email_verified_at": null,
      "role": "patient",
      "firebase_key": null
    }
  }
}

検索

Group description

検索

可能な都道府県
GET/load/areas

  • 都道府県のリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/load/areas
Response  200
HideShow
Body
{
  "status": 1,
  "data": [
    {
      "id": 1,
      "name": "北海道",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 1,
          "pref_id": 1,
          "name": "札幌市中央区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 2,
          "pref_id": 1,
          "name": "札幌市北区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 3,
          "pref_id": 1,
          "name": "札幌市東区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 4,
          "pref_id": 1,
          "name": "札幌市白石区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 5,
          "pref_id": 1,
          "name": "札幌市豊平区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 6,
          "pref_id": 1,
          "name": "札幌市南区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 7,
          "pref_id": 1,
          "name": "札幌市西区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 8,
          "pref_id": 1,
          "name": "札幌市厚別区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 9,
          "pref_id": 1,
          "name": "札幌市手稲区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 10,
          "pref_id": 1,
          "name": "札幌市清田区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 11,
          "pref_id": 1,
          "name": "函館市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 12,
          "pref_id": 1,
          "name": "小樽市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 13,
          "pref_id": 1,
          "name": "旭川市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 14,
          "pref_id": 1,
          "name": "室蘭市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 15,
          "pref_id": 1,
          "name": "釧路市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 16,
          "pref_id": 1,
          "name": "帯広市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 17,
          "pref_id": 1,
          "name": "北見市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 18,
          "pref_id": 1,
          "name": "夕張市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 19,
          "pref_id": 1,
          "name": "岩見沢市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 20,
          "pref_id": 1,
          "name": "網走市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 21,
          "pref_id": 1,
          "name": "留萌市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 22,
          "pref_id": 1,
          "name": "苫小牧市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 23,
          "pref_id": 1,
          "name": "稚内市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 24,
          "pref_id": 1,
          "name": "美唄市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 25,
          "pref_id": 1,
          "name": "芦別市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 2,
      "name": "青森県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 26,
          "pref_id": 2,
          "name": "青森市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 27,
          "pref_id": 2,
          "name": "弘前市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 28,
          "pref_id": 2,
          "name": "八戸市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 29,
          "pref_id": 2,
          "name": "黒石市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 30,
          "pref_id": 2,
          "name": "五所川原市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 3,
      "name": "岩手県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 31,
          "pref_id": 3,
          "name": "盛岡市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 32,
          "pref_id": 3,
          "name": "宮古市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 33,
          "pref_id": 3,
          "name": "大船渡市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 34,
          "pref_id": 3,
          "name": "花巻市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 35,
          "pref_id": 3,
          "name": "北上市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 4,
      "name": "宮城県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 36,
          "pref_id": 4,
          "name": "仙台市青葉区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 37,
          "pref_id": 4,
          "name": "仙台市宮城野区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 38,
          "pref_id": 4,
          "name": "仙台市若林区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 39,
          "pref_id": 4,
          "name": "仙台市太白区",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 40,
          "pref_id": 4,
          "name": "仙台市泉区",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 5,
      "name": "秋田県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 41,
          "pref_id": 5,
          "name": "秋田市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 42,
          "pref_id": 5,
          "name": "能代市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 43,
          "pref_id": 5,
          "name": "横手市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 44,
          "pref_id": 5,
          "name": "大館市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 45,
          "pref_id": 5,
          "name": "男鹿市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 6,
      "name": "山形県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 46,
          "pref_id": 6,
          "name": "山形市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 47,
          "pref_id": 6,
          "name": "米沢市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 48,
          "pref_id": 6,
          "name": "鶴岡市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 49,
          "pref_id": 6,
          "name": "酒田市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 50,
          "pref_id": 6,
          "name": "新庄市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 7,
      "name": "福島県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 51,
          "pref_id": 7,
          "name": "福島市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 52,
          "pref_id": 7,
          "name": "会津若松市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 53,
          "pref_id": 7,
          "name": "郡山市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 54,
          "pref_id": 7,
          "name": "いわき市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 55,
          "pref_id": 7,
          "name": "白河市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 8,
      "name": "茨城県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 56,
          "pref_id": 8,
          "name": "水戸市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 57,
          "pref_id": 8,
          "name": "日立市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 58,
          "pref_id": 8,
          "name": "土浦市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 59,
          "pref_id": 8,
          "name": "古河市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 60,
          "pref_id": 8,
          "name": "石岡市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 9,
      "name": "栃木県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 61,
          "pref_id": 9,
          "name": "宇都宮市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 62,
          "pref_id": 9,
          "name": "足利市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 63,
          "pref_id": 9,
          "name": "栃木市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 64,
          "pref_id": 9,
          "name": "佐野市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 65,
          "pref_id": 9,
          "name": "鹿沼市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 10,
      "name": "群馬県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": [
        {
          "id": 66,
          "pref_id": 10,
          "name": "前橋市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 67,
          "pref_id": 10,
          "name": "高崎市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 68,
          "pref_id": 10,
          "name": "桐生市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 69,
          "pref_id": 10,
          "name": "伊勢崎市",
          "created_at": null,
          "updated_at": null
        },
        {
          "id": 70,
          "pref_id": 10,
          "name": "太田市",
          "created_at": null,
          "updated_at": null
        }
      ]
    },
    {
      "id": 11,
      "name": "埼玉県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 12,
      "name": "千葉県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 13,
      "name": "東京都",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 14,
      "name": "神奈川県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 15,
      "name": "新潟県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 16,
      "name": "富山県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 17,
      "name": "石川県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 18,
      "name": "福井県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 19,
      "name": "山梨県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 20,
      "name": "長野県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 21,
      "name": "岐阜県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 22,
      "name": "静岡県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 23,
      "name": "愛知県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 24,
      "name": "三重県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 25,
      "name": "滋賀県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 26,
      "name": "京都府",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 27,
      "name": "大阪府",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 28,
      "name": "兵庫県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 29,
      "name": "奈良県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 30,
      "name": "和歌山県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 31,
      "name": "鳥取県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 32,
      "name": "島根県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 33,
      "name": "岡山県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 34,
      "name": "広島県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 35,
      "name": "山口県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 36,
      "name": "徳島県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 37,
      "name": "香川県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 38,
      "name": "愛媛県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 39,
      "name": "高知県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 40,
      "name": "福岡県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 41,
      "name": "佐賀県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 42,
      "name": "長崎県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 43,
      "name": "熊本県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 44,
      "name": "大分県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 45,
      "name": "宮崎県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 46,
      "name": "鹿児島県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    },
    {
      "id": 47,
      "name": "沖縄県",
      "visible": 1,
      "sort_no": null,
      "created_at": null,
      "updated_at": null,
      "cities": []
    }
  ]
}

検索

おすすめ(クリニック、カテゴリー、ユーザー)
GET/load/recommend

  • おすすめのクリニック、カテゴリ、ユーザーリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/load/recommend
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "clinics": [],
    "doctors": [
      {
        "id": 5,
        "name": "ああああ",
        "kana": "っっあああ",
        "duty": "ああああ",
        "job_name": "スタッフ",
        "experience_year": "0",
        "career": "ああああ",
        "profile": "ああああ",
        "photo": null,
        "ave_diaries_rate": null,
        "clinic_id": 1,
        "clinic_name": "クリニック1",
        "diaries_count": 0,
        "counseling_count": null,
        "cases_count": null,
        "likes_count": 0,
        "is_like": false,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 7,
        "name": "っっああああ",
        "kana": "っっっああああ",
        "duty": "ああああ",
        "job_name": "スタッフ",
        "experience_year": "0",
        "career": "ああああ",
        "profile": "ああああ",
        "photo": null,
        "ave_diaries_rate": null,
        "clinic_id": 1,
        "clinic_name": "クリニック1",
        "diaries_count": 0,
        "counseling_count": null,
        "cases_count": null,
        "likes_count": 0,
        "is_like": false,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 8,
        "name": "さあああああ",
        "kana": "あああああああああ",
        "duty": "ああああ",
        "job_name": "スタッフ",
        "experience_year": "0",
        "career": "ああああ",
        "profile": "ああああ",
        "photo": null,
        "ave_diaries_rate": null,
        "clinic_id": 1,
        "clinic_name": "クリニック1",
        "diaries_count": 0,
        "counseling_count": null,
        "cases_count": null,
        "likes_count": 0,
        "is_like": false,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 9,
        "name": "ああああ",
        "kana": "ああああ",
        "duty": "ああああ",
        "job_name": "スタッフ",
        "experience_year": "0",
        "career": "ああああ",
        "profile": "ああああ",
        "photo": null,
        "ave_diaries_rate": null,
        "clinic_id": 1,
        "clinic_name": "クリニック1",
        "diaries_count": 0,
        "counseling_count": null,
        "cases_count": null,
        "likes_count": 0,
        "is_like": false,
        "is_favorite": false,
        "views_count": 0
      },
      {
        "id": 10,
        "name": "漢字1",
        "kana": "カタカナ1",
        "duty": "aaa",
        "job_name": "スタッフ",
        "experience_year": "0",
        "career": "aaa",
        "profile": "aaa",
        "photo": null,
        "ave_diaries_rate": null,
        "clinic_id": 1,
        "clinic_name": "クリニック1",
        "diaries_count": 0,
        "counseling_count": null,
        "cases_count": null,
        "likes_count": 0,
        "is_like": false,
        "is_favorite": false,
        "views_count": 0
      }
    ],
    "categories": [],
    "follows": [
      {
        "id": 8,
        "user_id": 9,
        "name": "患者_7",
        "kana": "カンジャ_7",
        "gender": "female",
        "phone_number": "+6519555666517",
        "birthday": "2015-03-10",
        "created_at": "2021-02-11T13:49:46.000000Z",
        "updated_at": "2021-02-11T13:49:46.000000Z",
        "unique_id": null,
        "nickname": null,
        "intro": null,
        "photo": null,
        "point": 2000,
        "area_id": null,
        "firebase_key": null,
        "age": 7,
        "area": null,
        "follows_count": 0,
        "followers_count": 1,
        "is_follow": true,
        "phone_only_number": "6519555666517",
        "pivot": {
          "patient_id": 2,
          "follow_id": 8
        }
      }
    ]
  }
}

ポイント

Group description

ポイント

一覧
GET/points/history

  • ポイントのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/points/history
Response  200
HideShow
Body
{
  "data": [
    {
      "id": 3,
      "patient_id": 2,
      "title": "ログイン特典ポイント",
      "use_point": 2000,
      "type": "user_new_registered",
      "type_id": null,
      "created_at": "2021-02-11T09:50:02.000000Z"
    },
    {
      "id": 105,
      "patient_id": 2,
      "title": "ログイン特典ポイント",
      "use_point": 2000,
      "type": "user_new_registered",
      "type_id": null,
      "created_at": "2021-02-11T13:49:42.000000Z"
    },
    {
      "id": 215,
      "patient_id": 2,
      "title": "",
      "use_point": -100,
      "type": "reservation_requested",
      "type_id": 37,
      "created_at": "2022-03-25T17:29:12.000000Z"
    },
    {
      "id": 216,
      "patient_id": 2,
      "title": "",
      "use_point": -100,
      "type": "reservation_requested",
      "type_id": 38,
      "created_at": "2022-03-25T17:49:58.000000Z"
    },
    {
      "id": 217,
      "patient_id": 2,
      "title": "",
      "use_point": -100,
      "type": "reservation_requested",
      "type_id": 39,
      "created_at": "2022-03-28T03:46:01.000000Z"
    },
    {
      "id": 222,
      "patient_id": 2,
      "title": "",
      "use_point": 3000,
      "type": "user_invitation",
      "type_id": 75,
      "created_at": "2022-04-05T07:39:47.000000Z"
    },
    {
      "id": 224,
      "patient_id": 2,
      "title": "",
      "use_point": 3000,
      "type": "user_invitation",
      "type_id": 76,
      "created_at": "2022-04-05T07:40:58.000000Z"
    },
    {
      "id": 229,
      "patient_id": 2,
      "title": "",
      "use_point": 3000,
      "type": "user_invitation",
      "type_id": 78,
      "created_at": "2022-04-22T06:14:59.000000Z"
    },
    {
      "id": 231,
      "patient_id": 2,
      "title": "",
      "use_point": 3000,
      "type": "user_invitation",
      "type_id": 79,
      "created_at": "2022-04-22T06:23:51.000000Z"
    },
    {
      "id": 233,
      "patient_id": 2,
      "title": "",
      "use_point": 3000,
      "type": "user_invitation",
      "type_id": 80,
      "created_at": "2022-04-25T07:49:03.000000Z"
    },
    {
      "id": 234,
      "patient_id": 2,
      "title": "",
      "use_point": -100,
      "type": "reservation_requested",
      "type_id": 42,
      "created_at": "2022-04-27T13:32:16.000000Z"
    }
  ],
  "links": {
    "first": "http://127.0.0.1:8000/api/user/points/history?page=1",
    "last": "http://127.0.0.1:8000/api/user/points/history?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "path": "http://127.0.0.1:8000/api/user/points/history",
    "per_page": 25,
    "to": 11,
    "total": 11
  }
}

メニュー

Group description

メニュー

一覧
GET/menus{?per_page,page,category_id,clinic_id,q}

  • メニューのリストを返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/menus?per_page=10&page=1&category_id=''&clinic_id=''&q='メニュー'
URI Parameters
HideShow
per_page
integer (required) Example: 10
page
integer (required) Example: 1
category_id
integer (required) Example: ''
clinic_id
integer (required) Example: ''
q
string (required) Example: 'メニュー'
Response  200
HideShow
Body
{
  "menus": {
    "current_page": 1,
    "data": [
      {
        "id": 68,
        "clinic_id": 1,
        "name": "メニュー303",
        "price": 250000,
        "description": "メニューの説明",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": 15,
        "basshi": 10,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T21:08:22.000000Z",
        "updated_at": "2022-03-23T05:46:30.000000Z",
        "is_favorite": false,
        "categories": [
          {
            "id": 28,
            "parent_id": 1,
            "name": "二重切開法",
            "pivot": {
              "menu_id": 68,
              "category_id": 28
            }
          },
          {
            "id": 29,
            "parent_id": 1,
            "name": "目頭切開",
            "pivot": {
              "menu_id": 68,
              "category_id": 29
            }
          }
        ],
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "images": [
          {
            "id": 199,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 68,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/zigfAv9081.png",
            "img_type": 0,
            "created_at": "2022-03-23T05:46:30.000000Z",
            "updated_at": "2022-03-23T05:46:30.000000Z"
          },
          {
            "id": 200,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 68,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/vafoFp9807.png",
            "img_type": 0,
            "created_at": "2022-03-23T05:46:30.000000Z",
            "updated_at": "2022-03-23T05:46:30.000000Z"
          },
          {
            "id": 201,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 68,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/NOEezX7194.png",
            "img_type": 0,
            "created_at": "2022-03-23T05:46:30.000000Z",
            "updated_at": "2022-03-23T05:46:30.000000Z"
          }
        ]
      },
      {
        "id": 67,
        "clinic_id": 1,
        "name": "メニュー302",
        "price": 100000,
        "description": "メニューの説明",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": 5,
        "basshi": 10,
        "hospital_visit": 5,
        "hare": 5,
        "pain": 20,
        "bleeding": 5,
        "hospital_need": 5,
        "masui": 10,
        "makeup": 5,
        "shower": 15,
        "massage": 15,
        "sport_impossible": 5,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T04:46:28.000000Z",
        "updated_at": "2022-03-17T04:46:28.000000Z",
        "is_favorite": false,
        "categories": [
          {
            "id": 28,
            "parent_id": 1,
            "name": "二重切開法",
            "pivot": {
              "menu_id": 67,
              "category_id": 28
            }
          },
          {
            "id": 29,
            "parent_id": 1,
            "name": "目頭切開",
            "pivot": {
              "menu_id": 67,
              "category_id": 29
            }
          }
        ],
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "images": [
          {
            "id": 173,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 67,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/UpIFQo8724.png",
            "img_type": 0,
            "created_at": "2022-03-17T04:46:28.000000Z",
            "updated_at": "2022-03-17T04:46:28.000000Z"
          }
        ]
      },
      {
        "id": 66,
        "clinic_id": 1,
        "name": "メニュー301",
        "price": 10000,
        "description": "メニューの説明",
        "risk": "メニューの説明",
        "guarantee": "施術の保証",
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2022-03-17T04:45:25.000000Z",
        "updated_at": "2022-03-17T04:45:25.000000Z",
        "is_favorite": false,
        "categories": [
          {
            "id": 30,
            "parent_id": 1,
            "name": "目尻切開",
            "pivot": {
              "menu_id": 66,
              "category_id": 30
            }
          }
        ],
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "images": []
      },
      {
        "id": 39,
        "clinic_id": 3,
        "name": "メニュー1",
        "price": 15600,
        "description": "メニューの説明",
        "risk": "副作用・リスク",
        "guarantee": "施術の保証",
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": "2021-08-09T02:28:37.000000Z",
        "updated_at": "2021-08-09T02:28:37.000000Z",
        "is_favorite": false,
        "categories": [
          {
            "id": 12,
            "parent_id": null,
            "name": "ほくろ・イボ",
            "pivot": {
              "menu_id": 39,
              "category_id": 12
            }
          }
        ],
        "clinic": {
          "id": 3,
          "user_id": 66,
          "name": "クリニック3",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": null,
          "nearest_station": null,
          "site": null,
          "access": null,
          "phone_number": null,
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-07-19T12:06:02.000000Z",
          "updated_at": "2021-07-19T12:06:02.000000Z",
          "firebase_key": "t1t21JW7Cg0hf1uwbxlR",
          "diaries_count": 0,
          "counselings_count": 0,
          "menus_count": 1,
          "stuffs_count": 0,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "",
          "addr01": "",
          "user_name": null,
          "email": "test@test.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "images": [
          {
            "id": 159,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 39,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/mRZrlj8322.jpg",
            "img_type": 0,
            "created_at": "2021-08-09T02:28:37.000000Z",
            "updated_at": "2021-08-09T02:28:37.000000Z"
          }
        ]
      },
      {
        "id": 38,
        "clinic_id": 1,
        "name": "メニュー3",
        "price": 15600,
        "description": "メニューの説明\nメニューの説明\nメニューの説明",
        "risk": "副作用・リスク\n副作用・リスク\n副作用・リスク",
        "guarantee": "施術の保証\n施術の保証\n施術の保証",
        "treat_time": 15,
        "basshi": 5,
        "hospital_visit": 10,
        "hare": 15,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": 15,
        "photo": null,
        "status": 1,
        "created_at": "2021-07-20T05:38:05.000000Z",
        "updated_at": "2021-08-09T03:21:19.000000Z",
        "is_favorite": false,
        "categories": [
          {
            "id": 11,
            "parent_id": null,
            "name": "毛穴",
            "pivot": {
              "menu_id": 38,
              "category_id": 11
            }
          },
          {
            "id": 14,
            "parent_id": null,
            "name": "にきび・にきび跡",
            "pivot": {
              "menu_id": 38,
              "category_id": 14
            }
          }
        ],
        "clinic": {
          "id": 1,
          "user_id": 1,
          "name": "クリニック1",
          "pref_id": null,
          "city_id": null,
          "town_id": null,
          "addr02": "ABCビル 3階",
          "nearest_station": "渋谷駅、代官山駅",
          "site": "abc.com",
          "access": "渋谷駅から徒歩5分",
          "phone_number": "012001234",
          "credit_card": null,
          "parking": null,
          "photo": null,
          "created_at": "2021-02-11T09:50:01.000000Z",
          "updated_at": "2022-03-19T04:03:29.000000Z",
          "firebase_key": "YKo7jsNyr5yIXe79xK1T",
          "diaries_count": 3,
          "counselings_count": 4,
          "menus_count": 33,
          "stuffs_count": 10,
          "favoriters_count": 0,
          "is_favorite": false,
          "address": "ABCビル 3階",
          "addr01": "",
          "user_name": "クリニック1",
          "email": "clinic@gmail.com",
          "role": "clinic",
          "work_times": [
            {
              "weekday": "月曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "火曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "水曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "木曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "金曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "土曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "日曜日",
              "type": null,
              "start_time": null,
              "end_time": null
            },
            {
              "weekday": "祝日",
              "type": null,
              "start_time": null,
              "end_time": null
            }
          ]
        },
        "images": [
          {
            "id": 160,
            "attachable_type": "App\\Models\\Menu",
            "attachable_id": 38,
            "path": "https://clinic-reservation.s3-ap-northeast-1.amazonaws.com/clinic/menus/thumbs/QhGfZd8030.jpeg",
            "img_type": 0,
            "created_at": "2021-08-09T03:21:19.000000Z",
            "updated_at": "2021-08-09T03:21:19.000000Z"
          }
        ]
      },
      {
        "id": 63,
        "clinic_id": null,
        "name": "メニュー14-01",
        "price": 15000,
        "description": null,
        "risk": null,
        "guarantee": null,
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": null,
        "updated_at": null,
        "is_favorite": false,
        "categories": [],
        "clinic": null,
        "images": []
      },
      {
        "id": 64,
        "clinic_id": null,
        "name": "メニュー14-02",
        "price": 13500,
        "description": null,
        "risk": null,
        "guarantee": null,
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": null,
        "updated_at": null,
        "is_favorite": false,
        "categories": [],
        "clinic": null,
        "images": []
      },
      {
        "id": 65,
        "clinic_id": null,
        "name": "メニュー13-01",
        "price": 12500,
        "description": null,
        "risk": null,
        "guarantee": null,
        "treat_time": null,
        "basshi": null,
        "hospital_visit": null,
        "hare": null,
        "pain": null,
        "bleeding": null,
        "hospital_need": null,
        "masui": null,
        "makeup": null,
        "shower": null,
        "massage": null,
        "sport_impossible": null,
        "photo": null,
        "status": 1,
        "created_at": null,
        "updated_at": null,
        "is_favorite": false,
        "categories": [],
        "clinic": null,
        "images": []
      }
    ],
    "first_page_url": "http://127.0.0.1:8000/api/user/menus?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://127.0.0.1:8000/api/user/menus?page=1",
    "next_page_url": null,
    "path": "http://127.0.0.1:8000/api/user/menus",
    "per_page": "10",
    "prev_page_url": null,
    "to": 8,
    "total": 8
  }
}

メニュー

詳細
GET/menus/3

  • 該当IDのメニューの情報を返す。

Example URI

GET http://test.clinic.lxa.jp/api/user/menus/3
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "id": 3,
    "clinic_id": 1,
    "name": "両目埋没法ダブル(5年保証付き)両目",
    "price": 248900,
    "description": "ああああ",
    "risk": "ああああ",
    "guarantee": "ああああ",
    "treat_time": 5,
    "basshi": null,
    "hospital_visit": null,
    "hare": null,
    "pain": 10,
    "bleeding": 10,
    "hospital_need": 10,
    "masui": 10,
    "makeup": 10,
    "shower": 10,
    "massage": 10,
    "sport_impossible": 5,
    "photo": null,
    "status": 0,
    "created_at": "2021-04-18T17:11:38.000000Z",
    "updated_at": "2021-06-24T00:49:17.000000Z",
    "is_favorite": true
  }
}

メニュー

お気に入り
POST/menus/3/toggleFavorite

  • 該当IDのメニューを「お気に入り」リストに追加、削除

Example URI

POST http://test.clinic.lxa.jp/api/user/menus/3/toggleFavorite
Response  200
HideShow
Body
{
  "status": 1,
  "data": {
    "attached": [],
    "detached": [
      2
    ]
  }
}

Generated by aglio on 03 May 2022