Skip to content
This repository was archived by the owner on Apr 11, 2018. It is now read-only.

"Try it out" in /docs for petstore returns 404 Not found #5

@jasonrig

Description

@jasonrig

It appears that the request URI is not appended to the basePath. Note how the request does not include the /pets suffix.

Steps to reproduce:

  1. Install swagger-suite via npm / bower
  2. npm run petstore
  3. go to http://localhost:3000/docs/
  4. Attempt to get a list of pets using the /pets method

Request:

http://localhost:3000/api HTTP/1.1
Content-Type:

Response:

HTTP/1.1 404 Not Found
Date: Mon, 26 Jan 2015 23:09:32 GMT
Vary: 127.0.0.1
X-Powered-By: Swagger-Server Mock
Access-Control-Max-Age: 0
Access-Control-Allow-Methods: get, put, post, delete, options, head, patch
Content-Type: application/json; charset=utf-8
Access-Control-Allow-Origin: 127.0.0.1
Access-Control-Allow-Credentials: true
Connection: keep-alive
Access-Control-Allow-Headers: 
Content-Length: 34
ETag: W/"22-918ae4c0"
{
  "code": 404,
  "message": "Not Found"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions