Skip to content

Instantly share code, notes, and snippets.

@deadlybulb
Created November 14, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadlybulb/9233e981b0ab4a349b77 to your computer and use it in GitHub Desktop.
Save deadlybulb/9233e981b0ab4a349b77 to your computer and use it in GitHub Desktop.
Sample Swagger Spec for the EVE XML API
swagger: '2.0'
info:
title: Eve Online XML Endpoint API
description: Eve Online XML Endpoint API
version: 1.0.0
host: api.eveonline.com
schemes:
- https
produces:
- application/xml
paths:
/server/ServerStatus.xml.aspx:
get:
summary: Current Tranquility server status
tags:
- Server
responses:
200:
description: Server status
schema:
$ref: '#/definitions/ServerStatus'
400:
description: Error
schema:
$ref: '#/definitions/ErrorResponse'
definitions:
ServerResponse:
type: object
xml:
name: eveapi
properties:
version:
type: integer
xml:
attribute: true
currentTime:
type: string
cachedUntil:
type: string
ErrorResponse:
allOf:
- $ref: '#/definitions/ServerResponse'
- type: object
properties:
error:
type: string
properties:
code:
type: integer
xml:
attribute: true
ServerStatus:
allOf:
- $ref: '#/definitions/ServerResponse'
- type: object
properties:
result:
type: object
properties:
serverOpen:
type: string
onlinePlayers:
type: integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment