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

Should the basic API be pre filtered/formatted? #1607

Closed
x00 opened this issue May 28, 2013 · 2 comments
Closed

Should the basic API be pre filtered/formatted? #1607

x00 opened this issue May 28, 2013 · 2 comments

Comments

@x00
Copy link
Contributor

x00 commented May 28, 2013

Take wordpress api

https://public-api.wordpress.com/rest/v1/sites/en.blog.wordpress.com/posts

In practice the content is pretty much the same as it is on the actual page All the filters are applied to the content.

http://vanillaforums.org/discussions.json/

the formatter is not applied the Body and there is wide rage of formatters.

Of course you are always responsible for the data that you use.

However I anticipate people using this without knowing they have to sanitise.

Also wouldn't you expect the formatter to be applied anyway?

@tburry
Copy link
Contributor

tburry commented May 29, 2013

Short answer is yes, the data should be pre-formatted. Long answer is we
still need a way to get unformatted data for use-cases that want to grab
the raw data for editing.

@x00
Copy link
Contributor Author

x00 commented May 29, 2013

@linc linc removed this from the 2.2 beta milestone Feb 21, 2015
@linc linc removed the Enhancement label Jun 4, 2015
@linc linc added the API label Sep 26, 2015
@linc linc closed this as completed Jan 24, 2016
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