Skip to content

Instantly share code, notes, and snippets.

@kinlane
Created August 19, 2018 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save kinlane/bceb9b04fca28de92246117097c20165 to your computer and use it in GitHub Desktop.
Save kinlane/bceb9b04fca28de92246117097c20165 to your computer and use it in GitHub Desktop.
zenddesk-openapi
{
"swagger": "2.0",
"info": {
"version": "v2",
"title": "Swagger API"
},
"host": "{host}.zendesk.com",
"basePath": "/api/v2/",
"schemes": [
"http"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/tickets.json": {
"post": {
"description": "Create Ticket",
"summary": "createTicket",
"operationId": "TicketsJsonPost",
"produces": [
"application/json"
],
"parameters": [
{
"name": "ticket",
"in": "body",
"required": true,
"description": "Ticket",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": ""
}
},
"x-unitTests": [],
"x-operation-settings": {
"CollectParameters": false,
"AllowDynamicQueryParameters": false,
"AllowDynamicFormParameters": false,
"IsMultiContentStreaming": false
}
}
}
},
"definitions": {
"Ticket": {
"title": "Ticket",
"type": "object",
"properties": {
"ticket": {
"description": "",
"type": "object"
}
}
},
"TicketResponse": {
"title": "TicketResponse",
"type": "object",
"properties": {
"id": {
"description": "",
"type": "integer",
"format": "int32"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment