- AWS Lambda Function for Gripper
- Deploy this code.
$ ./scripts/deploy.sh
- Request
curl -X "POST" "https://<API Gateway Host>/<stage>/working" \
-H "x-api-key: <API Key>" \
-H "Content-Type: application/json; charset=utf-8" \
-d "{\"user\":\"user\",\"password\":\"password\"}"
curl -X "DELETE" "https://<API Gateway Host>/<stage>/working" \
-H "x-api-key: <API Key>m" \
-H "Content-Type: application/json; charset=utf-8" \
-d "{\"user\":\"user\",\"password\":\"password\"}"
{
"status": 200,
"detail": ""
}
{
"errorMessage": "401: Could not login."
}
{
"errorMessage": "400: Inputted 2 not supported."
}