# GET
$ curl http://localhost/api
$ curl -X GET http://localhost/api
# GET(リクエストヘッダーあり)
$ curl -X GET -H "x-api-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" http://localhost/api
# POST(リクエストヘッダーあり)
$ curl -X POST http://localhost/api
# POST(リクエストボディあり)
$ curl -X POST -H "Content-Type: application/json" -d '{"test": 1}' http://localhost/api
# POST(リクエストヘッダーあり、リクエストボディあり)
$ curl -X POST -H "x-api-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d '{"test": 1}' http://localhost/api