easy ten
Mobile app that helps you learn
10 new, foreign words a day
Users have learned
170 000 000+
new words
1 200 000+
downloads
• Featured in 85+ countries
• Top 5 grossing apps overall (Russia)
• Top 8 grossing apps overall (Brazil)
Unauthenticated
APIコールの流流れ
Mobile apps AWS Lambda lambdaHandler
(アプリ)
Register
Login
API Gateway
Authenticated
Mobile apps AWS Lambda lambdaHandler
(アプリ)
ListPets
GetPet
API Gateway
Assume Role
CreatePet
Sigv4 Invoke with
caller credentials
Authorized by IAM
Cognito
DynamoDB
HTTPステータスコード
Register action
Login action
Create Pet action
Get Pet action
BadRequestException
BAD_REQUEST +
Stack Trace
InternalErrorException
INTERNAL_ERROR +
Stack Trace
lambdaHandler Amazon API
Gateway
responses:
"default":
statusCode: "200"
"BAD.*":
statusCode: "400"
"INT.*":
statusCode: "500"
Petモデル
{
"properties":{
"petId":{
"type":"string",
"description":"The generated unique identifier
for the new pet"
},
"petType":{
"type":"string",
"description":"Free text pet type"
},
"petName":{
"type":"string",
"description":"Free text pet name"
},
"petAge":{
"type":"integer",
"format":"int32",
"description":"Age of the new pet"
}
},
"definitions":{
}
}
モデルはリソースごとに定義する
• 同⼀一リソースの全てのメソッドで利利⽤用
する
各メソッドのリクエストとレスポ
ンスで異異なるモデルを利利⽤用するこ
とも可能
• フォーマット変換など