Skip to main content
blog title image

1 minute read - API Testing API Challenges

How To - POST challenger 201

Jul 31, 2020

This post and video shows how to complete the challenge POST /challenger 201 using Insomnia.

What are the API Challenges?

Our API Challenges Application has a fully functional cloud hosted API, and a set of challenges to work through.

POST /challenger (201)

Issue a POST request on the /challenger end point, with no body, to create a new challenger session. Use the generated X-CHALLENGER header in future requests to track challenge completion.

  • This challenge is essential if you want to persist your sessions in multi-user mode
  • This challenge is optional if you want to work in single-user mode

Basic Instructions

  • Issue a POST request to end point “/challenger”
    • if running locally that would be
      • http://localhost:4567/challenger
    • if running in the cloud that would be
      • https://apichallenges.herokuapp.com/challenger
  • The response will have an X-CHALLENGER header
  • Use this in any future requests to track your progress
  • The LOCATION header has a url to access your challenge status through the GUI

Insomnia Details

POST /challenger HTTP/1.1
Host: localhost:4567
User-Agent: insomnia/6.5.4
Accept: */*
Content-Length: 0
HTTP/1.1 201 Created
Date: Tue, 28 Jul 2020 14:26:48 GMT
X-CHALLENGER: rest-api-challenges-single-player
Location: /gui/challenges
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Server: Jetty(9.4.z-SNAPSHOT)

Overview Video

Patreon ad free version

Learn More and Start Testing