Sign inSign up

codingpuss/long-api

By codingpuss

•Updated about 4 years ago

Long waiting api simulation

Image
0

252

codingpuss/long-api repository overview

⁠How to use

This is a simple api to simulate long-running API calls.

⁠Run the container

The image exposes port 8181 so map your port properly.

docker run -p xxxx:8181 codingpuss/long-api 

Currently, you can call the following apis

⁠Query a random user

/users/{delay}/random

Where delay is the number of delay in milliseconds the API will wait before returning the result

⁠Get a list of random users

/users/{delay}/{count}/random-list

delay was explained above.

count is the size of the array

Tag summary

Content type

Image

Digest

sha256:610292ad2…

Size

74.3 MB

Last updated

about 4 years ago

docker pull codingpuss/long-api:0.0.2