Skip to content

dcmoore/resilient-integration-workshop

Repository files navigation

Resilient Integration Workshop

This is an API that is intentionally difficult to integrate with. I use this in conjunction with a talk to introduce ways to build more resilient integration points.

Running the app

lein with-profile development trampoline run $PORT

-or-

docker build -t workshop .
docker run -p 8085:8085 workshop

Integration Docs

These are intentionally incorrect and slightly incomplete docs. If you're running the exercise for someone, share these with them:

This API is used to excavate gold. It is deployed at `https://resilient-integration-workshop.onrender.com`. You're goal is to write a script that continuously excavates gold and stores it to your account without crashing.

First, you'll need to register an account by sending a POST request to the /v1/register endpoint. Then you can use the /v1/excavate endpoint to dig gold. Each response will have a bucketId. Remember that value and send it in with the request to the /v1/store endpoint. Finally, you'll be able to see your total account value by hitting the /v1/totals endpoint.

As the admin, you can check on everyone's progress by sending a GET request to the /v1/bro-stats-dawg/ endpoint. You can play around with the various endpoints using curl in the terminal: curl -iX POST "https://resilient-integration-workshop.onrender.com/v1/register?userName=whatever".

About

Built an API that is intentionally difficult to integrate with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published