PingAuthorize

Testing the gateway

You can test the newly created Gateway API Endpoint with cURL or Postman.

Steps

  • Issue a GET request to https://localhost:7443/meme-game/api/v1/users/user.0/answers. The following cURL command makes such a request.

    curl --insecure -X GET \
      https://localhost:7443/meme-game/api/v1/users/user.0/answers \
      -H 'Authorization: Bearer {"active": true, "sub": "user.0"}'

    Result:

    You should get a 200 OK response with a JSON response body that contains a series of answers in an array titled data.