Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQLとAPIサーバの接続 #6

Open
Amakuchisan opened this issue Jun 7, 2020 · 0 comments
Open

MySQLとAPIサーバの接続 #6

Amakuchisan opened this issue Jun 7, 2020 · 0 comments
Assignees

Comments

@Amakuchisan
Copy link
Contributor

Amakuchisan commented Jun 7, 2020

概要

APIサーバをMySQLと接続し、データを返却できるようにする
まずはGETを実装すること

APIの仕様

GET /users

content type 'application/json'
usersの情報をスコアの高い順から10返却

返却形式

ArrayをJSONにしたもの

GET /words

content type 'application/json'
randomにDBの単語を返却する。
複数の単語を返却する(10個くらい)。
フロントは、複数の個数の返却に対応しています。

返却形式

ArrayをJSONにしたもの

POST /users

ユーザーの追加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants