generator-angular-fullstack
  • The Angular Full-Stack Generator
  • Getting Started
    • Pre-Requisites
    • Installation
    • Running
    • Project Overview
  • Developing
    • Overview
    • Adding a Route
  • Deployment
    • Manual Deployment
    • Google Cloud Deployment
    • index
  • Generators
    • App
    • Endpoint
  • Contributing
    • Releasing a New Version
    • Commit Style
Powered by GitBook
On this page

Was this helpful?

  1. Generators

Endpoint

Generates a new API endpoint.

Usage:

Usage:
  yo angular-fullstack:endpoint [options] <name>

Options:
  -h,   --help               # Print the generator's options and usage
        --skip-cache         # Do not remember prompt answers             Default: false
        --route              # URL for the endpoint
        --models             # Specify which model(s) to use            Options: mongoose, sequelize
        --endpointDirectory  # Parent directory for enpoints

Arguments:
  name    Type: String  Required: true

Example:

yo angular-fullstack:endpoint message
[?] What will the url of your endpoint be? /api/messages

Produces:

server/api/message/index.js
server/api/message/index.spec.js
server/api/message/message.controller.js
server/api/message/message.integration.js
server/api/message/message.model.js  (optional)
server/api/message/message.events.js (optional)
server/api/message/message.socket.js (optional)
PreviousAppNextReleasing a New Version

Last updated 5 years ago

Was this helpful?