mirror of https://github.com/pelias/api.git
Peter Johnson
10 years ago
3 changed files with 31 additions and 1 deletions
@ -0,0 +1,11 @@
|
||||
{ |
||||
"defaults": { |
||||
"protocol": "http", |
||||
"host": "localhost", |
||||
"port": 3100, |
||||
"headers": { |
||||
"User-Agent": "Ciao/Client 1.0" |
||||
} |
||||
}, |
||||
"config": {} |
||||
} |
@ -0,0 +1,17 @@
|
||||
|
||||
#> api root |
||||
path: '/' |
||||
|
||||
#? endpoint available |
||||
response.statusCode.should.equal 200 |
||||
|
||||
#? content-type header correctly set |
||||
response.should.have.header 'Content-Type','application/json; charset=utf-8' |
||||
|
||||
#? cache-control header correctly set |
||||
response.should.have.header 'Cache-Control','public,max-age=60' |
||||
|
||||
#? should respond in json with server info |
||||
should.exist json |
||||
should.exist json.name |
||||
should.exist json.version |
Loading…
Reference in new issue