basePath: / definitions: main.Login: properties: name: type: string password: type: string type: object main.Player: properties: cures: type: integer extensions: type: integer id: type: string kills: type: integer last_kill: type: string last_tagged: type: string name: type: string revives: type: integer state: type: integer type: object info: contact: {} description: This is the Swagger documentation for DCU Games Society's 2022 Humans Vs Zombies event. title: DCU Games Society Humans Vs Zombies version: "1.0" paths: /cure: get: description: Cures a zombie or infected human parameters: - description: Target ID in: path name: target required: true type: string produces: - text/plain responses: "200": description: OK summary: Cure /kill: get: description: Kills a zombie if user is authenticated as a human. Gives zombie target the stunned state parameters: - description: Target ID in: path name: target required: true type: string produces: - text/plain responses: "200": description: OK summary: Kill /login: post: consumes: - application/json description: Login parameters: - description: Player login in: body name: info required: true schema: $ref: '#/definitions/main.Login' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/main.Player' summary: Login /me: get: description: Shows user information produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/main.Player' summary: Me /revive: get: description: Revives a stunned zombie parameters: - description: Target ID in: path name: target required: true type: string produces: - text/plain responses: "200": description: OK summary: Revive /tag: get: description: Tag a human as a zombie. Gives target the infected state if user is a zombie or core zombie. parameters: - description: Target ID in: path name: target required: true type: string produces: - text/plain responses: "200": description: OK summary: Tag swagger: "2.0"