Published REST Request Routing

Last modified: December 3, 2024

Introduction

When a REST HTTP request arrives at the server, the server needs to determine which operation to run and what security to apply.

This flow chart shows an example request, how it is processed, and what will be returned by the service under different circumstances.

Consult this flow chart to answer questions such as:

  • Which REST operation microflow will be executed for my URL?
  • What happens when an exception occurs in a REST operation microflow?
  • How does basic authentication for REST services work?
  • How does anonymous authentication for REST services work?
  • What happens when a REST operation microflow returns an empty HttpResponse?
  • Why does my REST service return 400 Bad Request?
  • Why does my REST service return 401 Not Authorized?
  • Why does my REST service return 404 Not Found?
  • Why does my REST service return 405 Method Not Allowed?

The example request is GET /rest/petstore/pet/12.