raisetech-for-student / banana-crud-restfulapi

0 stars 1 forks source link

【3-1】検索機能の実装 #3

Open renangton opened 2 years ago

renangton commented 2 years ago

概要

ユーザーを検索する機能を実装すること。

目的

クエリ文字列に指定したパラメータをもとに検索を行う。
例)localhost:8080/users?name=koyama&birthdate=2022-01-01

ブランチ

https://github.com/raisetech-for-student/banana-crud-restfulapi/tree/feature/get_user_search

タスク

備考

key 説明
name 前方一致するものを検索する
birthdate 完全一致するものを検索する

バリデーションについては以下を実施。

レスポンスボディは以下とする。

[
   {
     "id": "01FZMTP19VSKWBQPXJA4GKZ2Y3",
     "name": "小山太郎",
     "birthdate": "1990-01-01"
   },
   {
     "id": "01FZMTQG90X9PX811WQW0JH9BT",
     "name": "小山次郎",
     "birthdate": "1992-01-01"
   }
]

ユーザーがHITしない場合、以下となる

[]
yoshi-koyama commented 2 years ago

生年月日について

追加調査で https://developer.twitter.com/en/docs/twitter-api https://developers.facebook.com/docs/ https://docs.github.com/ja/rest

yassan16 commented 2 years ago

未実装内容