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 Only? #159

Open
onedayitwillmake opened this issue Jan 3, 2020 · 3 comments
Open

API Only? #159

onedayitwillmake opened this issue Jan 3, 2020 · 3 comments
Assignees

Comments

@onedayitwillmake
Copy link

First, I'd like to say, great work on this gem! It's extremely easy to use, and versatile.

Are there any plans to make it work without any of the HTML mark up portions? With minimal wrangling, I was able to invoke the methods via their respective routes and have them return JSON instead of html strings - but now I have to manage / patch the portions I overwrote as the library updates.

As a user, and given that many new projects are using the new "API Only" mode of rails - Ideally there would be an "API" only option in Commontator to make it easier to leverage in such cases

@Dantemss Dantemss self-assigned this Jan 14, 2020
@Dantemss
Copy link
Member

What would be necessary for this?
I assume making most of the controller routes able to return JSON responses and that's it?

@onedayitwillmake
Copy link
Author

Yeah that sounds about right, I had simply cloned the controllers and did just that and it pretty much worked.

That and some docs on the request params and routes.

@martino-dot
Copy link

I agree that this should be added. This is also a feature that I was hoping would get added.

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

3 participants