yii2-openapi icon indicating copy to clipboard operation
yii2-openapi copied to clipboard

Generator Feature: Generate Generic CRUD Backend

Open cebe opened this issue 4 years ago • 0 comments

As of the release of OpenAPI 3.1 and OpenAPI Schema is now fully compatible with JSON Schema:

The Schema Object is now fully compliant with JSON Schema draft 2019-09 (see JSON Schema Core and JSON Schema Validation). See also, Breaking Changes

Resulting from this we could generate a dynamic backend for all API endpoints using json-editor.

JSON Editor will be used for creating the form for the request input, the form is created based on the JSON Schema from the OpenAPI description.

Links:

  • https://www.openapis.org/blog/2021/02/18/openapi-specification-3-1-released
  • https://github.com/OAI/OpenAPI-Specification/releases/tag/3.1.0-rc0
  • https://github.com/json-editor/json-editor
  • https://github.com/dmstr/yii2-json-editor

cebe avatar Oct 15 '21 08:10 cebe