Skip to content

Instantly share code, notes, and snippets.

@lgg
Created March 12, 2016 18:51
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 lgg/bfef33e8404e5e656ab6 to your computer and use it in GitHub Desktop.
Save lgg/bfef33e8404e5e656ab6 to your computer and use it in GitHub Desktop.
{
"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