Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Turn Game into a proper object, add dated versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Apr 1, 2018
1 parent 1cab15f commit 16f0dbf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apis/snake/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: "3.0.1"
info:
title: "Battlesnake Snake API"
version: "0.0.1"
version: "2018.03.beta"
description: "Battlesnake participants implement this webhook API to power their snake. See battlesnake.io for details."
paths:
/start:
Expand Down Expand Up @@ -103,12 +103,17 @@ components:
type: array
items:
$ref: "#/components/schemas/Snake"
SnakeRequest:
Game:
type: object
properties:
game:
id:
type: string
example: "game-id-string"
SnakeRequest:
type: object
properties:
game:
$ref: "#/components/schemas/Game"
turn:
type: integer
minimum: 0
Expand Down

0 comments on commit 16f0dbf

Please sign in to comment.