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

Implement ContentService Commands #2

Open
3 tasks
URVL opened this issue Feb 24, 2022 · 0 comments
Open
3 tasks

Implement ContentService Commands #2

URVL opened this issue Feb 24, 2022 · 0 comments

Comments

@URVL
Copy link

URVL commented Feb 24, 2022

The first time the data is taken from GitHub, and the next time it is taken from the cache (separate .json file for each language)

Implementation Commands

  • getCompainList

Query input:

{ 
  "includeEpisodes": Boolean 
  "compainId": Strnig // filter for Compain
  // if the content with the translation in the requested language is not found, we take the content with the default language, default language en_US
  // the content language is determined by the suffix of the file with the content by mask: <filename>.<language>.md , example: index.en_US.md
  "language": String
}

Query output:

[
{
  "id": String,
  "title": Sting,
  "description": String,
  "content": String,
  "episodes": [{id, title}],
},
// {...}, {...}, ...
]


  • getEpisodeContent

Query input:

{
  "episodeId": String // String -> EpisodeIdStirng
} 

Query output:

{
  "id": String,
  "title": Sting,
  "description": String,
  "content": String
}


  • chacheUpdate

Query input:

{}

Query output:

{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant