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

Debug Server JSON #1

Open
MatthewMawby opened this issue Sep 27, 2016 · 1 comment
Open

Debug Server JSON #1

MatthewMawby opened this issue Sep 27, 2016 · 1 comment

Comments

@MatthewMawby
Copy link

After navigating to an individual article on the debug server the JSON fields are incomplete. The JSON utilized by the android app has a JSON array of articles where each individual article has the following fields:

  • "title" : String
  • "description" : String
  • "author" : String
  • "date" : String
  • "image" : String (URL)
  • "imageCaption" : String
  • "body" : String
  • "file" : String
  • "similarArticles" : Array (contains "file" field of similar articles)
  • "tag" : Array (Contains tags assosciated with current article)

"link" : String
"template" : String

The critical fields that need to have data present on the server are bolded and underlined. All the fields that android uses are bulleted. If the server could be updated to have some example articles it would make tying the app to the server much easier.

@ErykaG
Copy link

ErykaG commented Oct 4, 2016

Could change the layout of JSON array of articles to include only the "title", "author", "date", "image", "imageCaption", and the description of all articles which is then all loaded on the home page. Essentially remove the giant string for the entire body of each article, and put it into a separate file that would be called and accessed only if the user clicks on the specific article. This would save some time and reduce the data being pulled at a particular time (especially once we have hundreds of articles instead of the 9 or so we have in use now).

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

2 participants