TetraTsunami / StudySearch

MadHacks 2023 Project
0 stars 0 forks source link

Create REST API endpoints to access a user's potential study groups #5

Open traitboundnotsatisfied opened 10 months ago

traitboundnotsatisfied commented 10 months ago

Have an API that allows us to access the generated groups for a user, ideally organized by class, and in order of score (how proffered they are).

traitboundnotsatisfied commented 10 months ago

Path doesn't matter. Should send back JSON of the form:

{
        "COMP SCI 300": [
            {
                "id": 111,
                "short_members": "Joe, Bob, and Your Mom",
                "pros": ["Same Section"],
                "cons": []
            },
            {
                "id": 222,
                "short_members": "Alan, Alan and Alan",
                "pros": [],
                "cons": []
            },
            {
                "id": 333,
                "short_members": "Wallace and Grommit",
                "pros": [],
                "cons": ["May Be Too Small"]
            },
            {
                "special": "more",
            }
        ],
        "MATH 234": [],
        "ASTRON 200": [
            {
                "id": 101,
                "short_members": "Neil and Carl",
                "pros": ["Same Section"],
                "cons": ["May Be Too Small"]
            }
        ],
    }
traitboundnotsatisfied commented 10 months ago

NOT FOR STUDY GROUPS THEY ARE ALREADY A MEMBER OF

traitboundnotsatisfied commented 10 months ago

Ok @SizableShrimp is making this and it's at /api/study-groups/generate.