chapps.rest.api module

Top level API definition

This module includes the other API-related modules and configures the main FastAPI object which answers web requests. That object’s name is api, making its absolute symbol path chapps.rest.api.api

async chapps.rest.api.validation_exception_handler(request, exc)[source]

Creates a log entry upon request validation error

Also returns a reasonable response with code 422 to the browser.

Parameters
  • request (starlette.requests.Request) –

  • exc (fastapi.exceptions.RequestValidationError) –