Mirror Mode

The API has a mirror mode, this allows you to experiment with different verbs and configurations.

You will see, in your API tool, a response showing you the details of the request that you sent.

e.g.

GET https://apichallenges.herokuapp.com/mirror/request

Will return 200... everything (almost) returns a 200.

And...

GET http://apichallenges.herokuapp.com/mirror/request

Query Params
============

IP
=======
0:0:0:0:0:0:0:1

Headers
=======
Accept: */*
Content-Length: 0
Host: localhost:4567
User-Agent: insomnia/2021.2.2

Body
====

Only options and head respond differently... because options and head should respond differently.

Useful for getting started and getting used to your tooling.

If you want the response in XML or JSON then add the relevant Accept header.