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

HTML forms for API params #10

Open
kapso opened this issue Jun 25, 2012 · 3 comments
Open

HTML forms for API params #10

kapso opened this issue Jun 25, 2012 · 3 comments

Comments

@kapso
Copy link

kapso commented Jun 25, 2012

Why not provide a form for API params rather than forcing them to be defined in routes using ApiTaster.routes ?

@kapso
Copy link
Author

kapso commented Jun 25, 2012

So this is what I have in my routes.rb - ApiTaster.routes { }

And every time I click on URL on API Taster it complains -

Route 'GET /api/v1/chats' is undefined.

Please define this route in routes.rb: 

In this particular case this request is a simple GET request without any params and I still cannot run this request from API tester? Same goes for params based request, I should be able to enter the params in a form and execute the request rather than forcing the params in ApiTaster.routes { }

@fredwu
Copy link
Owner

fredwu commented Jun 25, 2012

For now you'd have to define it and supply an empty hash for it to work.

I might add custom form in the future, but for now this work around should do.

@fredwu fredwu closed this as completed Jun 25, 2012
@kapso
Copy link
Author

kapso commented Jun 25, 2012

Ok yea we have close to 100 API end points (and growing), so does not make sense to re-define them for API Taster. Would love to see an alternative around that. Thanks for your work.

@fredwu fredwu reopened this Jun 25, 2012
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

2 participants