Usage example for fakedata_generator
Table of Contents
fakedata_server is a showcase API implementing "fakedata_generator as a service". It provides an "API" that can return random data (one entry at a time) for GET requests.
You can start the server with Rust by executing the following command.
$ cargo run
There is a Docker image available at https://hub.docker.com/r/kevingimbel/fakedata_server.
You can start the
fakedata_server with the following command.
$ docker run -it --rm -p 8000:8000 kevingimbel/fakedata_server
The container cannot be exited with
CTRL-C, see Known issues.
Accessing the API
$ curl localhost:8000/gen/corpora/cat $ curl localhost:8000/gen/username $ curl localhost:8000/gen/domain
For some reason the index route binds to
/at the end but not to
The Docker Container does not exit when pressing
CTRL-C. When executed with
-ityou can press
CTRL-Qto detach from the container and then stop it with
MIT License Copyright (c) 2019 Kevin Gimbel