Skip to content

Implement ContentService CommandsΒ #2

@URVL

Description

@URVL

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:

{}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions