Created
March 12, 2016 18:51
-
-
Save lgg/bfef33e8404e5e656ab6 to your computer and use it in GitHub Desktop.
This file contains 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": { | |
"version": "3.0.0", | |
"title": "Gitlab issues api" | |
}, | |
"host": "gitlab.com", | |
"basePath": "/api/v3", | |
"schemes": [ | |
"http", | |
"https" | |
], | |
"paths": { | |
"/issues": { | |
"get": { | |
"description": "Get all issues created by the authenticated user.\n", | |
"parameters": [ | |
{ | |
"name": "state", | |
"in": "query", | |
"description": "Return all issues or just those that are opened or closed", | |
"required": false, | |
"type": "string", | |
"format": "string" | |
}, | |
{ | |
"name": "labels", | |
"in": "query", | |
"description": "Comma-separated list of label names", | |
"required": false, | |
"type": "string", | |
"format": "string" | |
}, | |
{ | |
"name": "order_by", | |
"in": "query", | |
"description": "Return requests ordered by created_at or updated_at fields. Default is created_at", | |
"required": false, | |
"type": "string", | |
"format": "string" | |
}, | |
{ | |
"name": "sort", | |
"in": "query", | |
"description": "Return requests sorted in asc or desc order. Default is desc", | |
"required": false, | |
"type": "string", | |
"format": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Successful response", | |
"schema": { | |
"title": "ArrayOfPersons", | |
"type": "array", | |
"items": { | |
"title": "Person", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"single": { | |
"type": "boolean" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/projects/?id/issues": { | |
"get": { | |
"description": "Get all issues created by the authenticated user.\n", | |
"parameters": [ | |
{ | |
"name": "PRIVATE-TOKEN", | |
"in": "header", | |
"description": "private token for your account", | |
"required": true, | |
"type": "string" | |
}, | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "The ID of a project", | |
"required": true, | |
"type": "integer" | |
}, | |
{ | |
"name": "state", | |
"in": "query", | |
"description": "Return all issues or just those that are opened or closed", | |
"required": false, | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Successful response", | |
"schema": { | |
"title": "ArrayOfPersons", | |
"type": "array", | |
"items": { | |
"title": "Person", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"single": { | |
"type": "boolean" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment