Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.33 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.33 KB

Rejection API

Get the true Software Engineer job search experience.

This is a simple JSON API created with Go. The API returns a selection of rejection emails I've received throughout my career. Messages have been slightly modified to remove company names.

Running the API by Building the Binary

Make sure you have Go installed. Clone this repo, cd into the directory, then get the necessary packages:

go get

Build the binary:

go build

Then run it:

./rejection-api

Running with Docker

Make sure Docker is running on your system. Clone this repo, cd into the directory, then run:

docker build . -t rejection-api

After the image is built, run it with:

docker run -p 80:80 rejection-api:latest

Using the API

You can make API calls to 127.0.0.1:80.

HTTP Verb Endpoint Description
GET /rejections Get a random rejection message

Examples:

Get a random rejection:

curl -s 127.0.0.1:80/rejections

Response

{"id":"2","message":"Thank you for giving us the opportunity to consider you for employment. We have reviewed your background and qualifications and find that we do not have an appropriate position for you at this time."}