Skip to content

2.1. Published repository catalog

abasic edited this page Mar 10, 2020 · 1 revision

Visual representation

Tailor course list

Code example

index.json

[
  {
    "id": 11,
    "uid": "1942030f-ab05-4d30-b04b-eb75a84ca704",
    "schema": "COURSE",
    "name": "Generic course no. 1",
    "description": "Description for generic course",
    "meta": {
        "color": "#689F38"
    }
    "publishedAt": "2018-11-06T13:59:28.724Z"
  },
  {
    "id": 12,
    "uid": "1593030f-eb05-4a30-b04a-eb65a84cc844",
    "schema": "COURSE",
    "name": "Generic course no. 2",
    "description": "Description for generic course 2"
    "meta": {
        "color": "#689F38"
    }
    "publishedAt": "2018-11-10T13:34:31.424Z"
  },
  {
    "id": 13,
    "uid": "2373030f-bb15-4a30-b04a-eb65a84cc833",
    "schema": "REPOSITORY",
    "name": "Repository no. 1",
    "description": "My description"
    "meta": {
        "color": "#689F38"
    }
    "publishedAt": "2018-11-11T10:49:38.711Z"
  },
  {
    "id": 14,
    "uid": "4373030e-ac15-4c30-b04a-bb65a84cc813",
    "schema": "COURSE",
    "name": "Generic course no. 3",
    "description": "Description",
    "meta": {
        "color": "#689F38"
    }
    "publishedAt": "2018-11-11T11:52:18.654Z"
  },
  {
    "id": 15,
    "uid": "1113030e-cc21-4b30-b04a-bb65a84cc121",
    "schema": "COURSE",
    "name": "Generic course no. Test course 1",
    "description": "Description",
    "meta": {
        "color": "#689F38"
    }
    "publishedAt": "2018-11-12T12:30:28.354Z"
  }
]

*Notice that "Course with no published elements" is not listed in "index.json". That's because none of its element are yet published. Once any element in the course gets published (Goal, Interactive Exercise, Topic, etc.), that course is added to the "index.json" in the "repository" folder