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

Separate JS code to support JSON API requests #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TishoTM
Copy link

@TishoTM TishoTM commented Dec 9, 2015

No description provided.

@fl4p
Copy link
Owner

fl4p commented Dec 9, 2015

Seperating JS code is a good idea. But how does it support JSON API requests?

@TishoTM
Copy link
Author

TishoTM commented Dec 9, 2015

When JSON encoding the articles content, JS code inside the article breaks the JSON string and it becomes impossible to fetch the articles via RESTful API with JSON responses.

@fl4p
Copy link
Owner

fl4p commented Jan 13, 2016

Makes sense, but there have to be changed a lot more. What is your application for this, just curious?

@TishoTM
Copy link
Author

TishoTM commented Jan 15, 2016

I am mostly using the file browser view inside the articles. There might be other places in the codebase that need revision, but have not looked at those.
My particular use case is mobile app fetching the WP articles via api with JSON responses.

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

Successfully merging this pull request may close these issues.

2 participants