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

Sinatra Routes ambiguous #14

Open
granolocks opened this issue Mar 25, 2014 · 0 comments
Open

Sinatra Routes ambiguous #14

granolocks opened this issue Mar 25, 2014 · 0 comments

Comments

@granolocks
Copy link
Contributor

Compare the following:

# request of Snapi root path
curl localhost:4567/
{"status":200,"data":{"ninja":{"sneak":{"return_type":null,"arguments":[]},"attack":{"return_type":null,"arguments":[{"name":"foe","required":true,"type":"stri
ng"}]},"defend":{"return_type":null,"arguments":[{"name":"weapon","required":true,"type":"string"}]}}},"execution_time":2.833e-05}
# request of Snapi base path for ninja capability
curl localhost:4567/ninja
{"status":200,"data":{"sneak":{"return_type":null,"arguments":[]},"attack":{"return_type":null,"arguments":[{"name":"foe","required":true,"type":"string"}]},"defend":{"return_type":null,"arguments":[{"name":"weapon","required":true,"type":"string"}]}},"execution_time":4.5747e-05}

These outputs need to self identify whether or not they are a capability or a function declaration. This needs to be fixed for functionality disclosure to be more meaninful..

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

No branches or pull requests

1 participant