Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 593 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 593 Bytes

Person Generator

A RESTful service that allows a client to request random "person" objects.

A person consists of:

  firstName: String
  lastName: String
  phone: String
  email: String

All values are random using the Faker string generation library.

Route Endpoints

/

  • Method: GET
  • Parameter :name
  • Returns: a person as a JSON object using the :name parameter as the firstName property.

/search

  • Method: GET
  • Parameter: :name
  • Returns: an array of persons as a JSON object using the :name parameter as all the firstName properties.