Endpoint
Generates a new API endpoint.
Usage:
1
Usage:
2
yo angular-fullstack:endpoint [options] <name>
3
4
Options:
5
-h, --help # Print the generator's options and usage
6
--skip-cache # Do not remember prompt answers Default: false
7
--route # URL for the endpoint
8
--models # Specify which model(s) to use Options: mongoose, sequelize
9
--endpointDirectory # Parent directory for enpoints
10
11
Arguments:
12
name Type: String Required: true
Copied!
Example:
1
yo angular-fullstack:endpoint message
2
[?] What will the url of your endpoint be? /api/messages
Copied!
Produces:
1
server/api/message/index.js
2
server/api/message/index.spec.js
3
server/api/message/message.controller.js
4
server/api/message/message.integration.js
5
server/api/message/message.model.js (optional)
6
server/api/message/message.events.js (optional)
7
server/api/message/message.socket.js (optional)
Copied!
Copy link