Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Endpoint name should be a slug #240

Closed
s4nji opened this issue Nov 27, 2017 · 1 comment
Closed

API Endpoint name should be a slug #240

s4nji opened this issue Nov 27, 2017 · 1 comment

Comments

@s4nji
Copy link
Contributor

s4nji commented Nov 27, 2017

Currently non-URL friendly characters can be used as API endpoint name. This is a problem as they wouldn't be accessible from /apis/API_NAME endpoint.

API endpoint name should be validated and matched against the following pattern:
/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/

Reference

https://github.com/hellofresh/janus/issues/245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant