Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (108 sloc) 3.23 KB
{
"swagger": "2.0",
"info": {
"title": "timeapi",
"description": "RCBJ's quick openapi definition of proxied timeapi.org",
"version": "1.0.0"
},
"host": "rcbjbluemars-test.apigee.net",
"schemes": [
"https"
],
"basePath": "/time",
"produces": [
"application/json"
],
"securityDefinitions": {
"oauth2ResourcePasswordGrant": {
"type": "oauth2",
"flow": "password",
"tokenUrl": "https://login.microsoftonline.com/75de389c-8f67-4084-9065-3a9c31e1db13/oauth2/token",
"scopes": {
"scope1": "https://rcbj0001-api.rcbj.net/"
}
}
},
"paths": {
"/{timezone}/{when}.json": {
"get": {
"summary": "UTC time at when",
"description": "UTC time at when.\n",
"parameters": [
{
"name": "timezone",
"in": "path",
"description": "the time when?.",
"required": true,
"type": "string",
"pattern": "pst|mst|cst|est|pdt|mdt|cdt|edt|utc"
},
{
"name": "when",
"in": "path",
"description": "the time when?.",
"required": true,
"type": "string"
},
{
"name": "format",
"in": "query",
"description": "time format for response.",
"required": false,
"type": "string"
}
],
"tags": [
"Time"
],
"responses": {
"200": {
"description": "Time",
"schema": {
"$ref": "#/definitions/Time"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"security": [
{
"oauth2ResourcePasswordGrant": [
"scope1"
]
}
]
}
}
},
"definitions": {
"Time": {
"type": "object",
"properties": {
"dateString": {
"type": "string",
"description": "The date string that was requested."
}
}
},
"Error": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"fields": {
"type": "string"
}
}
}
}
}
You can’t perform that action at this time.