Page MenuHomePhabricator

Create a generic machanism for exposing RPC-style ApiModule instances via the REST framework.
Open, Needs TriagePublic

Description

  • Define a generic Handler subclass that wraps an ApiModule instance
  • Add support for wrapping action API modules to module definition files.
  • Define an adapter interface that action API modules can use to add REST support
    • Support response body schema files
    • Support mapping action error codes to HTTP status codes
  • Add a REST compatibility mode to ApiFormat (probably using the formatversion mechanism). Especially for the representation of booleans.
  • Add a REST compatibility mode for the parameter validator used by the action API module (or just re-use the one defined by the REST framework). Note especially how booleans are represented in the query string.