Skip to content

Instantly share code, notes, and snippets.

View eiel's full-sized avatar

HIMURA Tomohiko eiel

View GitHub Profile
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: ImageMap API
description: ImageMapa APIドキュメント
version: "1.0.0"
# the domain of the service
host: localhost:3000
# array of all schemes that your API supports
require 'linkeddata'
require 'csv'
graph = RDF::Graph.load("http://hiroshimarb.github.io/")
query = RDF::Query.new({
person: {
RDF.type => RDF::Vocab::SCHEMA.Person,
RDF::Vocab::SCHEMA.name => :name,
RDF::Vocab::SCHEMA.description => :desc,
}
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Example API
description: サンプルドキュメント
version: "1.0.0"
# the domain of the service
host: api.example.com
# array of all schemes that your API supports
{
"swagger" : "2.0",
"info" : {
"description" : "サンプルドキュメント",
"version" : "1.0.0",
"title" : "Example API"
},
"host" : "api.example.com",
"basePath" : "/v1",
"schemes" : [ "https" ],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.