havok89 / Hoosk

Hoosk Codeigniter CMS
http://hoosk.org
Other
128 stars 87 forks source link

Provide JSON output as well #19

Closed miscs closed 7 years ago

miscs commented 7 years ago

Do you have any plans to provide JSON output as well?

Maybe like http://hoosk.org/json/article/hoosk-15-update--rss-feeds-and-more

havok89 commented 7 years ago

This is something that could be implemented, what could be the use of it? If I can understand more how it would be used that would help with how I can add it

miscs commented 7 years ago

The idea was to use the JSON output for showing articles inside a native app. Seems like this would be a good idea, because the JSON is nicely structured an could be stored (offline-reading) and rendered on app-site as well...

havok89 commented 7 years ago

This is next on my list for new features

miscs commented 7 years ago

cool, looking forward to it :)

havok89 commented 7 years ago

Hey,

how does this look?

http://beta.hoosk.org/feed/json

It includes post title, url, date posted, excerpt, content in HTML format and since the content editor stored it in JSON format that is included too.

I havent pushed it to master yet still have some other bits im working on