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.
 
AoClient/aoclient_v1.yml

45 lines
981 B

openapi: '3.0.2'
info:
title: AoC API
version: '1.0'
servers:
- url: https://aoc.home.tarilaus.net/v1
paths:
/solve/{year}/{day}:
get:
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