Skip to content

GET api #555

@Lungsangg

Description

@Lungsangg

Description :

We already do have api to retrieve a single segments and need to modify it to return list of segments

End point :

GET /cms/tasks/{task_id}

Parameter :

task_id : UUID of the task to retrieve

Response example:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "title": "Morning Meditation Practice",
  "display_order": 1,
  "estimated_time": 30,
  "subtasks": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "content_type": "SOURCE_REFERENCE",
      "content": "Read and contemplate these verses from the text",
      "duration": "15 min",
      "image_url": null,
      "source_text_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
      "pecha_segment_id": "3YYxROUIWHdM08eK2DNzQ",
      "segment_ids": [
        "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "e4eaaaf2-d142-11e1-b3e4-080027620cdd"
      ],
      "display_order": 1
    },
    {
      "id": "7cb8c921-0ebe-22e2-91c5-11d04fd541d9",
      "content_type": "VIDEO",
      "content": "https://example.com/guided-meditation.mp4",
      "duration": "10 min",
      "image_url": "https://example.com/thumbnail.jpg",
      "source_text_id": null,
      "pecha_segment_id": null,
      "segment_ids": null,
      "display_order": 2
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions