Skip to content

Better documentation needed #6

@danieleguido

Description

@danieleguido

get all the themes available

GET /api/story/?filters={"tags__slug":"theme"}&orderby=priority

get single theme and chapter metadata:

GET /api/story/grief-and-loss/

Note that:

  • theme background color is in metadata.background.overlay
  • theme bouncding box is in metadata.background.bbox = [xmin, ymin, xmax, ymax]
  • the theme cover is the first item in covers list
  • chapters are listed in stories property (light version, metadata only)
  • chapters ordering is given in metadata.chapters which contains the list of the pk of its related stories (so that the slugs of the related chapters may change without much hassle..

get single chapter, contents YAML parsed

GET /api/story/the-german-invasion/?parser=yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions