Skip to content

A [very] simple RESTful endpoint for name generation via Faker.js

License

Notifications You must be signed in to change notification settings

Tallwave/namegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

namegen

A very simple node server that returns randomly generated names using faker.js.

URLS

/names

Returns a JSON array of randomly generated names like this:

{
  "id": "cc050911-ade7-41d8-8b0c-26906e5858a3",
  "name": "Nikita Mohr",
  "email": "Eudora_Hessel@gmail.com",
  "address": "4102 Maia Square",
  "image": "https://s3.amazonaws.com/uifaces/faces/twitter/tjrus/128.jpg"
}

You can optionally add a querystring to set the number of names returned, by default it is 20. /names?num=10

/names/:some-id

Returns a single JSON object of a randomly generated name. Do note that this is really random, if you take an id from /names, it will almost certainly not be the same one returned here.

Misc

This is currently deployed on heroku.

License

MIT. See the LICENSE text file for details.

About

A [very] simple RESTful endpoint for name generation via Faker.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published