This is a simple netcoreapp2.0 app exposing a subset of @bchavez's Bogus library APIs as a simple web service. This is more of a dynamic routing experiment than a real world production app, but some may find it usefull to generate fake data in some scenarios!
git clone https://github.com/thatfrankdev/bogus-as-a-service.git
cd bogus-as-a-service
dotnet restore
dotnet run
** Note that when a parameters is optional in a route template (i.e. marked with a ?
after its name), you can provide it either in the path, or as a query parameter
seed
: Used to fix randomizer seed so that the random sequences generated are always the same. This must be an integer number.locale
: Used to set the locale of the inner datasets to be used. Supported locales are listed here