localmed / api-mock

Creates a mock server based on an API Blueprint
MIT License
496 stars 58 forks source link

Escape hyphen in url parameter placeholder #51

Closed ghost closed 5 years ago

ghost commented 8 years ago

let's build a new api documentation

## Todo [/api/todo/{todo-id}]

### Get @TODO information [GET]
Get the status relative to todo reource

+ Request

    + Headers

        Accept: ...

the {todo-id} placeholder with the hyphen was not recognized by the api mock server, i get CANNOT GET /api/todo/234234 but with the underscore {todo_id} it works well.

am i doing something wrong or we just need to add an escape over the placeholder in order to let it work ?

thanks J