Skip to content

Instantly share code, notes, and snippets.

@ingshtrom
Last active August 29, 2015 14:11
Show Gist options
  • Save ingshtrom/208a8665a6f89fc24735 to your computer and use it in GitHub Desktop.
Save ingshtrom/208a8665a6f89fc24735 to your computer and use it in GitHub Desktop.
changing the Bungie API file into a json document. Gathered from http://pastebin.com/GTrVtScf
{
"swagger": "2.0",
"info": {
"version": "0.0.1",
"title": "Bungie Platform API - Destiny"
},
"host": "www.bungie.net",
"basePath": "/platform/Destiny",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"definitions": {
"PlayerSearchResult": {
"properties": {
"iconPath": {
"type": "string"
},
"membershipType": {
"type": "integer",
"format": "int32",
"description": "XBL (1) or PSN (2)"
},
"membershipId": {
"type": "string"
},
"displayName": {
"type": "string"
}
}
}
},
"paths": {
"/SearchDestinyPlayer/{membershipType}/{username}/": {
"get": {
"description": "Search for a player",
"parameters": [
{
"name": "membershipType",
"in": "path",
"description": "XBL (1) or PSN (2)",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "username",
"in": "path",
"description": "username to search for",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response",
"schema": {
"title": "ResponseObject",
"type": "object",
"properties": {
"Response": {
"type": "array",
"items": {
"$ref": "#/definitions/PlayerSearchResult"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment