Generate a valid OpenAPI 3.0 specification in JSON format for the following API code. Ensure it is fully compatible with ReDoc and includes info, paths, request/response schemas