Skip to main content
highlighted:

We.js v1.5.0: CLI and generator super powered!

This version added more power to we.js generator and some bugfix.

New JSON model definition

Now is possible to define models in .json with suport of new modelHooks feature.

EmaIL FEATURE MOVED TO WE-PLUGIN-EMAIL

Email feature not is need in many APIs then we moved it to other plugin for make it optional.

New Swagger documentation generator:


yo wejs:doc

Improved resource and model generation:


Now is possible to set model attributes and model joins with command options, example:
yo wejs:model post title:string:allowNull=false body:text published:boolean creator:belongsTo:user
This will generate one post model with title, body and published attributes and creator association

New commands:


$we vSet

Set one variable in current We.js project.
we vset variable.path value

$we vGet

Get one variable from current We.js project.

we vget variable.path


Video with API and swagger file creation:


We.js logo
Tags:

afterContent:
Widget: Comments 14:

Comments