JsonをPost(API定義を設定)するだけで、CRUDのRESTWebapiを作れるシステムです https://qiita.com/HawkClaws/items/6f5a6938318fb7d7983d
下記3つの機能があります
- Jsonスキーマバリデーション
- メソッド許可(GET,POST,PUT,DELETE)の指定
- パスワード認証
lang Java
DB MongoDB
Framework SpringBoot
SampleDifin
{
"apiSecret": "",
"apiUrl":"number_battle",
"jsonSchema": {
"additionalProperties":false,
"type": "object",
"properties": {
"name": {
"description": "名前",
"type": "string",
"maxLength": 30
},
"secondNumber": {
"description": "2番目に大きいと予想した数字",
"type": "number"
}
},
"required": [
"name",
"secondNumber"
]
},
"methodSettings": [
{
"httpMethod": "GET",
"behavior": "Allow"
},
{
"httpMethod": "POST",
"behavior": "Allow"
},
{
"httpMethod": "PUT",
"behavior": "NotImplemented"
},
{
"httpMethod": "DELETE",
"behavior": "NotImplemented"
}
]
}