Last active
May 17, 2016 18:03
-
-
Save shivamMg/dacada0b45585bcd9cd0fbe4a722eddf to your computer and use it in GitHub Desktop.
Swagger spec for existing GET APIs at OE Organizer Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
title: "Open Event Organizer Server API" | |
description: "APIs provided by the Open Event Organizer Server" | |
license: | |
name: "GNU GPL v3" | |
url: "https://github.com/fossasia/open-event-orga-server/blob/master/LICENSE.md" | |
version: "1.0.0" | |
host: "127.0.0.1:8001" | |
basePath: "/api/v1" | |
schemes: | |
- "http" | |
- "https" | |
consumes: | |
- "application/json" | |
produces: | |
- "application/json" | |
- "text/html" | |
paths: | |
/event: | |
get: | |
description: "Get event details" | |
operationId: "getEvent" | |
produces: | |
- "application/json" | |
- "text/html" | |
parameters: | |
- | |
name: "id" | |
in: "query" | |
description: "id" | |
required: false | |
type: "integer" | |
responses: | |
200: | |
description: "event response" | |
default: | |
description: "unexpected error" | |
/event/{id}/sessions: | |
get: | |
description: "Get event sessions" | |
operationId: "getSessions" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "sessions response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/tracks: | |
get: | |
description: "Get event tracks" | |
operationId: "getTracks" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "tracks response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/speakers: | |
get: | |
description: "Get event speakers" | |
operationId: "getSpeakers" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "speakers response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/sponsors: | |
get: | |
description: "Get event sponsors" | |
operationId: "getSponsors" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "sponsors response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/microlocations: | |
get: | |
description: "Get event microlocations" | |
operationId: "getMicrolocations" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "microlocations response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/levels: | |
get: | |
description: "Get event levels" | |
operationId: "getLevels" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "levels response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/formats: | |
get: | |
description: "Get event formats" | |
operationId: "getFormats" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "formats response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/languages: | |
get: | |
description: "Get event languages" | |
operationId: "getLanguagess" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "languages response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" | |
/event/{id}/version: | |
get: | |
description: "Get event version" | |
operationId: "getVersion" | |
produces: | |
- "application/json" | |
- "text/html" | |
responses: | |
200: | |
description: "version response" | |
default: | |
description: "unexpected error" | |
parameters: | |
- | |
name: "id" | |
in: "path" | |
description: "id" | |
required: true | |
type: "integer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment