Skip to content

thatfrankdev/bogus-as-a-service

Repository files navigation

Bogus as a service

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!

Build it locally

git clone https://github.com/thatfrankdev/bogus-as-a-service.git
cd bogus-as-a-service
dotnet restore
dotnet run

Usage

Play with it live

** 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

Query parameters

  • 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

Examples

About

An app exposing @bchavez's Bogus library APIs as a simple web service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages