Append .json to v1 spec files to enforce Content-Type when serving in test

This commit is contained in:
Mohsen Azimi
2015-03-25 12:48:03 -07:00
parent 99eaf4eb23
commit 445e0353ca
8 changed files with 19039 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ describe('swagger 1.x spec tests', function () {
before(function (done) {
this.timeout(25 * 1000);
servers.start('/v1.2/petstore/api-docs', done);
servers.start('/v1.2/petstore/api-docs.json', done);
});
afterEach(function(){

View File

@@ -3,15 +3,15 @@
"swaggerVersion": "1.2",
"apis": [
{
"path": "http://localhost:8081/v1.2/petstore/pet",
"path": "http://localhost:8081/v1.2/petstore/pet.json",
"description": "Operations about pets"
},
{
"path": "http://localhost:8081/v1.2/petstore/user",
"path": "http://localhost:8081/v1.2/petstore/user.json",
"description": "Operations about user"
},
{
"path": "http://localhost:8081/v1.2/petstore/store",
"path": "http://localhost:8081/v1.2/petstore/store.json",
"description": "Operations about store"
}
],