Skip to content

pragmanila/humans-api-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Humans API (Node JS)

Instructions

  1. Create a simple RESTful CRUD API using the NodeJS Express framework that will implement the service as described in the Swagger file (swagger.yml).
  2. The framework must dynamically load the Swagger file to create its routes. You can load the Swagger file through https://editor.swagger.io to understand the API requirements.
  3. Feel free to add more properties in the Swagger file using the x-* notation to suit your needs (ie. routing requests to controllers and actions).
  4. You can use the provided package.json file to start off your project.
  5. Make a public fork of this repository and email the link to info@pragmanila.com.

Requirements

  1. Implement in NodeJS Express Framework.
  2. Routes must be read from the swagger file (ie. routes are not hardcoded).
  3. Use MongoDB for data persistence.
  4. Validate all inputs. All input errors must be reported during a request, meaning the whole request input must be validated before sending out a respose (ie. server must respond that an email is not unique and a name is required)
  • id must exist when reading, updating, and deleting
  • name and email must exist when creating
  • email must be unique
  1. Response headers and http codes must be correct.

Optional (but definitely an advantage)

  1. ES6
  2. Promise
  3. Sensible and clear code abstraction
  4. Code potential for scalability
  5. NPM script (npm test) for basic code linting using JSHint (www.jshint.com)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •