Skip to content

Instantly share code, notes, and snippets.

@Konard
Last active October 15, 2015 12:15
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 Konard/e6a0bff583bbca4d452b to your computer and use it in GitHub Desktop.
Save Konard/e6a0bff583bbca4d452b to your computer and use it in GitHub Desktop.
{
"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"
}
}
}
}
}
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