Skip to content

JsonをPost(API定義を設定)するだけで、CRUDのRESTWebapiを作れるシステムです

Notifications You must be signed in to change notification settings

nison-jp/versatileapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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"
		}
	]
}

About

JsonをPost(API定義を設定)するだけで、CRUDのRESTWebapiを作れるシステムです

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%