generator-jadn
v1.2.1
Published
Generator for JSONAPI .Net Core
Downloads
8
Readme
JSONAPI .Net Core Generators
Development
git clone https://github.com/Research-Institute/json-api-dotnet-core-generators
cd json-api-dotnet-core-generators
npm link
Installation
See the yeoman docs
OR
npm install -g generator-jadn
Usage
All commands should be run from the project root
Creating a model and controller:
yo jadn:entity MyEntity
- Specifying the
id
type of the model (defaults to int):
yo jadn:entity MyEntity:Guid
- Adding attributes to the model:
yo jadn:entity MyEntity name:string displayName:string
- Adding relationships:
yo jadn:entity Person hasmany:todoItems
yo jadn:entity TodoItem hasone:owner:person