Faker data generator, built around the faker ruby gem.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
.travis.yml
Dockerfile
Gemfile
Gemfile.lock
LICENSE
NAME
README.md
VERSION
app.rb
postman.json
run.sh
swagger.json

README.md

msa-faker

Faker data generator, built around the faker ruby gem.

Can generate names, addresses, phone numbers and much more. Also comes with support for various locales.

Quick start

Execute the microservice container with the following command :

docker run -ti -p 9902:80 msagency/msa-faker

Example(s)

$ curl http://localhost:9902/faker/name
Warren Bins

$  curl http://localhost:9902/faker/name?locale=fr
Noémie Clement

$ curl http://localhost:9902/faker/address/city?locale=sv
Östertuna

Endpoints

The locale parameter can be optionally supplied to any endpoint to change the locality of the generated data. This has mainly an effect on the endpoints like /faker/name and /faker/address, but will probably not change anything on endpoints like /faker/code or /faker/internet. You can check the support for each locale at https://github.com/stympy/faker/tree/master/lib/locales, and get the list with:

Check out the swagger docsfor the full list of endpoints. Here are the main ones :

Standard endpoints

About

A project by the Microservices Agency.