Retrieve
WeatherReport
whereaddress
is Anchorage, AlaskaSend
Payment
where therecipient
is https://keybase.io/phil andcurrency
is USD andamount
is 40Send
Message
where therecipient
is https://keybase.io/phil andtext
is Hey Phil ...
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
# Using a terms from schema.org dictionary, | |
# find services that offers WeatherForecast. | |
services = apiRegistry.find(WeatherForecast, { vocabulary: "http://schema.org"}) | |
# Query a service for WeatherForecast at GeoCoordinates. | |
forecast = service.retrieve(WeatherForecast, { GeoCoordinates: … }) | |
# Display Temperature | |
print forecast(Temperature) |
I hereby claim:
- I am zdne on github.
- I am zdenek (https://keybase.io/zdenek) on keybase.
- I have a public key whose fingerprint is AAB0 458B 4299 95C4 5C9F 0CE0 1205 3F7F C8E6 F7A4
To claim this, I am signing this object:
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
# User [/users/{id}] | |
- Attributes (object) | |
- name: John | |
- email: john@apiary.io | |
## Retrieve [GET] | |
- Response 200 (application/json) | |
- Attributes (User) | |
## Remove [DELETE] |
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
# API | |
## Globals Parameters | |
- version: 1.0 (string) - Version of the API | |
# Resource A [/{version}/some/path/to/a] | |
# Resource B [/{version}/some/path/to/b] |
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
# Fizz Buzz Solving API Blueprint | |
## Data Structures | |
## Main (array) | |
This only does 1 through 15. | |
### Members | |
- !map | |
- (array) |
$ git config --global core.editor "subl -n -w"
Install following CLI tools:
-
$ npm install apiary-blueprint-parser
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
{ | |
"_version": "1.0", | |
"metadata": {}, | |
"name": "", | |
"description": "", | |
"resourceGroups": [ | |
{ | |
"name": "", | |
"description": "", | |
"resources": [ |