Mission-Prerna / nl-apis

All the BE APIs to configure, manage & run the NL app
1 stars 16 forks source link

Mentor API Updation #219

Closed rohitsamagra closed 5 months ago

rohitsamagra commented 6 months ago

Goal: Update "mentor assessments API" to show students

Acceptance Criteria: Technosys to be able to access student level data in mentor assessments API

Telemetry Information: None specific

Test Cases: Access the API and should be able to access student level data as part of mentor assessments API

rohitsamagra commented 6 months ago

@karntrehan Updated this ticket - please let me know if I need to give more clarity here - thanks

Ajay-Maury commented 6 months ago

@rohitsamagra Can you please elaborate more, what do you mean by should be able to access student level data as part of mentor assessments API do we need data like :-

[
    {
        "block_name": "Achhnera",
        "class": 1,
        "created_at": "2023-10-30 11:34:27.486",
        "district_name": "AGRA",
        "phone_no": "9997883967",
        "result": "NOT NIPUN",
        "student": {
            "class": 1,
            "gender": "female",
            "roll_no": 7509,
            "student_id": "038264384",
            "student_name": "Rashi kumari",
            "udise": 9150200401
        },
        "udise": 9150200401,
        "user_type": "teacher"
    },
    {
        "block_name": "Achhnera",
        "class": 1,
        "created_at": "2023-11-16 10:31:13.722",
        "district_name": "AGRA",
        "phone_no": "9997883967",
        "result": "NOT NIPUN",
        "student": {
            "class": 1,
            "gender": "female",
            "roll_no": 7509,
            "student_id": "038264384",
            "student_name": "Rashi kumari",
            "udise": 9150200401
        },
        "udise": 9150200401,
        "user_type": "teacher"
    }
]
karntrehan commented 6 months ago

Single API to be shared for both mentor and teacher. If student ID not available NULL to be sent @Ajay-Maury

tushar5526 commented 6 months ago

PR up by Ajay.

Ajay-Maury commented 6 months ago

Deployed to Prod. curl:-

curl --location 'http://103.154.251.109:8000/data/student-assessment-data?limit=10&offset=0&from_date=2022-01-01&to_date=2034-02-01&actor_type=mentor' \
--header 'Authorization: Bearer <auth-token>'

In this actor_type query is optional, It can be used as an actor filter like actor_type=mentor or actor_type=teacher or anything else.

rohitsamagra commented 5 months ago
AakashSatpute119 commented 5 months ago

Image

Image

Image