Last active
October 15, 2015 12:15
-
-
Save Konard/e6a0bff583bbca4d452b to your computer and use it in GitHub Desktop.
Links (triples, micro RDF) API swagger connector. Explore: http://editor.swagger.io/#/?import=https://gist.githubusercontent.com/Konard/e6a0bff583bbca4d452b/raw/swagger.json
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": { | |
"title": "Links (triples, micro RDF) API", | |
"description": "The minimalistic API", | |
"version": "0.0.1" | |
}, | |
"host": "api3.linksplatform.github.com", | |
"schemes": [ | |
"https" | |
], | |
"basePath": "/v1", | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/links": { | |
"get": { | |
"summary": "Links List", | |
"description": "The Links endpoint returns information about the Links matching given restrictions.", | |
"parameters": [ | |
{ | |
"name": "source", | |
"in": "query", | |
"description": "Source (beginning of link, subject) restriction.", | |
"required": false, | |
"type": "integer", | |
"format": "int64" | |
}, | |
{ | |
"name": "linker", | |
"in": "query", | |
"description": "Linker (type of connection, verb, predicate, action, operator, transition ...) restriction.", | |
"required": false, | |
"type": "integer", | |
"format": "int64" | |
}, | |
{ | |
"name": "target", | |
"in": "query", | |
"description": "Target (end of link, object) restriction.", | |
"required": false, | |
"type": "integer", | |
"format": "int64" | |
} | |
], | |
"tags": [ | |
"Links" | |
], | |
"responses": { | |
"200": { | |
"description": "An array of links", | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/Link" | |
} | |
} | |
}, | |
"default": { | |
"description": "Unexpected error", | |
"schema": { | |
"$ref": "#/definitions/Error" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"Link": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"format": "int64", | |
"description": "Unique identifier representing a specific link matching given source, linker & target restrictions." | |
}, | |
"source": { | |
"type": "integer", | |
"format": "int64", | |
"description": "Identifier of Source (beginning, subject) link." | |
}, | |
"linker": { | |
"type": "integer", | |
"format": "int64", | |
"description": "Identifier of Linker (type of connection, verb, predicate, action, operator, transition ...) link." | |
}, | |
"target": { | |
"type": "integer", | |
"format": "int64", | |
"description": "Identifier of Target (end, object) link." | |
} | |
} | |
}, | |
"Error": { | |
"type": "object", | |
"properties": { | |
"code": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"message": { | |
"type": "string" | |
}, | |
"fields": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} |
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: | |
title: Links (triples, micro RDF) API | |
description: The minimalistic API | |
version: 0.0.1 | |
host: api3.linksplatform.github.com | |
schemes: | |
- https | |
basePath: /v1 | |
produces: | |
- application/json | |
paths: | |
/links: | |
get: | |
summary: Links List | |
description: 'The Links endpoint returns information about the Links matching given restrictions.' | |
parameters: | |
- name: source | |
in: query | |
description: Source (beginning of link, subject) restriction. | |
required: false | |
type: integer | |
format: int64 | |
- name: linker | |
in: query | |
description: Linker (type of connection, verb, predicate, action, operator, transition ...) restriction. | |
required: false | |
type: integer | |
format: int64 | |
- name: target | |
in: query | |
description: Target (end of link, object) restriction. | |
required: false | |
type: integer | |
format: int64 | |
tags: | |
- Links | |
responses: | |
'200': | |
description: An array of links | |
schema: | |
type: array | |
items: | |
$ref: '#/definitions/Link' | |
default: | |
description: Unexpected error | |
schema: | |
$ref: '#/definitions/Error' | |
definitions: | |
Link: | |
type: object | |
properties: | |
id: | |
type: integer | |
format: int64 | |
description: 'Unique identifier representing a specific link matching given source, linker & target restrictions.' | |
source: | |
type: integer | |
format: int64 | |
description: Identifier of Source (beginning, subject) link. | |
linker: | |
type: integer | |
format: int64 | |
description: Identifier of Linker (type of connection, verb, predicate, action, operator, transition ...) link. | |
target: | |
type: integer | |
format: int64 | |
description: Identifier of Target (end, object) link. | |
Error: | |
type: object | |
properties: | |
code: | |
type: integer | |
format: int32 | |
message: | |
type: string | |
fields: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment