Skip to content
Snippets Groups Projects
Commit 3d6376f9 authored by magnus2142's avatar magnus2142
Browse files

ADded some notes to help start creating the content services

parent 0be62b35
No related branches found
No related tags found
No related merge requests found
import json
from subprocess import call
from typing import Dict, Any
import requests
from bbcli.services.course_service import list_courses
import click
# User gets a tree structure view of the courses content
# where each content is listed something like this: _030303_1 Lectures Folder
def list_course_content(cookies: Dict, course_id: str):
print('Getting course content!')
# If it is a folder, list it like a tree structure view like mentioned above.
# If it is a document, download and open the document maybe?
# Find all types of content and have an appropriate response for them. This
# should maybe be handled in the view...
def get_content(cookies: Dict, course_id: str, content_id: str):
print('Getting content by its ID.')
# List all contents of type assignment, should be executed if a flag for example like --content-type assignment or smth is used
def list_assignments(cookies: Dict, course_id: str):
print('Getting all assignments')
# TODO: add methods for all content types like the one above
# Create content. This should have a flag which says what kind of content type it is
# Create assignment. Creates an assignment
# Delete spesific content
# Update spesific content
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment