Skip to content

Commit

Permalink
add Cache-Control header #9
Browse files Browse the repository at this point in the history
  • Loading branch information
kshychko committed Apr 25, 2017
1 parent c521fc6 commit a1cb289
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions docs/2.0.0/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@
"application/json",
"application/xml"
]
},
"cacheControlHeader": {
"name": "Cache-Control",
"in": "header",
"description": "Cache-Control header",
"required": false,
"type": "string",
"default": "max-age=86400",
"enum": ["no-cache", "max-age=86400"]
}
},
"responses":{
Expand Down Expand Up @@ -449,7 +458,7 @@
}
}
},
"/api/v1/capabilityPublishers":{
"/api/v2/capabilityPublishers":{
"get":{
"tags":[
"Capability Publisher"
Expand All @@ -461,6 +470,9 @@
{
"$ref":"#/parameters/acceptHeader"
},
{
"$ref": "#/parameters/cacheControlHeader"
},
{
"$ref":"#/parameters/limit"
},
Expand All @@ -478,6 +490,10 @@
"200":{
"description":"TODO",
"headers":{
"Cache-Control": {
"type": "string",
"description": "Mandatory. no-cache or max-age directives must be defined for this header."
},
"Content-Type":{
"type":"string",
"description":"Mandatory. Depending on request:\n\t• application/json (default)\n\t• application/xml"
Expand All @@ -499,7 +515,7 @@
}
}
},
"/api/v1/accessPoints":{
"/api/v2/accessPoints":{
"get":{
"tags":[
"Access Points"
Expand All @@ -511,6 +527,9 @@
{
"$ref":"#/parameters/acceptHeader"
},
{
"$ref": "#/parameters/cacheControlHeader"
},
{
"$ref":"#/parameters/limit"
},
Expand All @@ -528,6 +547,10 @@
"200":{
"description":"TODO",
"headers":{
"Cache-Control": {
"type": "string",
"description": "Mandatory. no-cache or max-age directives must be defined for this header."
},
"Content-Type":{
"type":"string",
"description":"Mandatory. Depending on request:\n\t• application/json (default)\n\t• application/xml"
Expand Down

0 comments on commit a1cb289

Please sign in to comment.