You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
openapi: '3.0.2'
|
|
info:
|
|
title: AoC API
|
|
version: '1.1'
|
|
servers:
|
|
- url: https://aoc.home.tarilaus.net/v1
|
|
|
|
|
|
paths:
|
|
/solve/{year}/{day}:
|
|
get:
|
|
tags:
|
|
- "Solve"
|
|
operationId: solvePuzzle
|
|
summary: Solve puzzle
|
|
description: Solves the puzzle for a given day and year
|
|
parameters:
|
|
- name: year
|
|
schema:
|
|
type: integer
|
|
required: true
|
|
in: path
|
|
description: Year to solve puzzle for
|
|
- name: day
|
|
schema:
|
|
type: integer
|
|
required: true
|
|
in: path
|
|
description: Day to solve puzzle for
|
|
requestBody:
|
|
required: true
|
|
description: Puzzle input
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: OK
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
type: string
|
|
example: test
|
|
description: Calculated solution of the puzzle
|
|
|
|
|
|
|
|
|