openapi: 3.0.0 info: title: Advent of Code Solver API version: 1.0.0 description: API to solve Advent of Code problems paths: /{year}/{day}: post: summary: Solve a specific Advent of Code problem operationId: solveProblem parameters: - name: year in: path required: true schema: type: integer - name: day in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ProblemInput' responses: '200': description: Successful response with solutions for both problems content: application/json: schema: $ref: '#/components/schemas/ProblemSolutionResponse' x-amazon-apigateway-integration: uri: Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${AdventOfCodeApiHandler.Arn}/invocations responses: default: statusCode: "200" passthroughBehavior: when_no_match httpMethod: POST type: aws_proxy components: schemas: ProblemInput: type: object required: - input properties: input: type: string ProblemSolutionResponse: type: object properties: problem1: type: string problem2: type: string