{
	"swagger": "2.0",
	"info": {
		"title": "Link",
		"description": "This is an link for all my links. I use a single link system to manage all my sites.",
		"termsOfService": "http://stack.network/terms-of-service.html",
		"version": "v2"
	},
	"host": "link.api.kinlane.com",
	"basePath": "/",
	"schemes": ["http"],
	"produces": ["application/json"],
	"consumes": ["application/json"],
	"paths": {
		"/links/": {
			"get": {
				"summary": "all links",
				"description": "all links",
				"operationId": "getLinks",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "query",
					"description": "a text query to search across link",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Links"],
				"security": []
			},
			"post": {
				"summary": "add a link",
				"description": "add a link",
				"operationId": "addLink",
				"parameters": [{
					"in": "formData",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "description",
					"description": "description of the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "name",
					"description": "name for the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "url",
					"description": "url for the link",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Links"],
				"security": []
			}
		},
		"/links/{link_id}/": {
			"delete": {
				"summary": "delete link",
				"description": "delete link",
				"operationId": "deleteLink",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "the unique id for link entry",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Links"],
				"security": []
			},
			"get": {
				"summary": "get link",
				"description": "get link",
				"operationId": "getLink",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "the unique id for link entry",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Links"],
				"security": []
			},
			"put": {
				"summary": "update link",
				"description": "update link",
				"operationId": "updateLink",
				"parameters": [{
					"in": "formData",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "description",
					"description": "description of the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "the unique id for the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "name",
					"description": "name for the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "formData",
					"name": "url",
					"description": "url for the link",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Links"],
				"security": []
			}
		},
		"/links/{link_id}/tags/": {
			"get": {
				"summary": "link tags",
				"description": "link tags",
				"operationId": "getlinkTags",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "id for link",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Tags"],
				"security": []
			},
			"post": {
				"summary": "add tag to link",
				"description": "add tag to link",
				"operationId": "addLinkTag",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "id for the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "tag",
					"description": "tag name",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Tags"],
				"security": []
			}
		},
		"/links/{link_id}/tags/{tag}": {
			"delete": {
				"summary": "delete link tag",
				"description": "delete link tag",
				"operationId": "deletelinkTag",
				"parameters": [{
					"in": "query",
					"name": "appid",
					"description": "your appid for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "query",
					"name": "appkey",
					"description": "your appkey for accessing the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "link_id",
					"description": "id for the link",
					"type": "string",
					"format": "string"
				},
				{
					"in": "path",
					"name": "tag",
					"description": "tag to remove from link",
					"type": "string",
					"format": "string"
				}],
				"responses": {
					"200": {
						"description": "OK"
					}
				},
				"tags": ["Tags"],
				"security": []
			}
		}
	},
	"definitions": {
		"link": {
			"properties": {
				"link_id": {
					"description": "This is a default description.",
					"type": "delete"
				},
				"name": {
					"description": "This is a default description.",
					"type": "delete"
				},
				"description": {
					"description": "This is a default description.",
					"type": "delete"
				},
				"url": {
					"description": "This is a default description.",
					"type": "delete"
				}
			}
		},
		"tag": {
			"properties": {
				"tag_id": {
					"description": "This is a default description.",
					"type": "delete"
				},
				"tag": {
					"description": "This is a default description.",
					"type": "delete"
				},
				"api_count": {
					"description": "This is a default description.",
					"type": "delete"
				}
			}
		}
	}
}