Closed karntrehan closed 3 weeks ago
@GET(/segment-filters)
actors=-1
or actors=1,2,3
(actor_ids)districts=-1
or districts=1,2
(district_ids)blocks=-1
or blocks=1,2
(block_ids)schools=-1
or schools=U1,U2
(udises)^ All optional
{
"actors": [
{
"id": "1",
"label": "Teacher"
},
{
"id": "2",
"label": "Mentor"
}
],
"districts": [
{
"id": "1",
"label": "Agra"
},
{
"id": "2",
"label": "Unao"
}
],
"blocks": [
{
"id": "1",
"label": "Aaspur Devsara"
},
{
"id": "2",
"label": "Abholi"
}
],
"schools": [
{
"id": "9430702904",
"label": "P S VAJEERPUR"
},
{
"id": "09112900802",
"label": "Local Body (Basic Shiksha Paraishad )"
}
]
}
@POST(/segment-filters/create)
{
"actors": "1",
"districts": "3,7",
"blocks": "9,10,21,11",
"schools": "U1,U8,U9",
"name": "Segment for teacher training",
"description": "Segment for teacher training"
}
{
"actors": "1,9",
"districts": "3,7",
"blocks": "9,10,21,11",
"schools": "-1",
"name": "Segment for teacher training All schools",
"description": "Segment for teacher training"
}
^ All mandatory
{
"segment_id": 1
}
{
"error_code": "",
"error_message": ""
}
teacher_school_list_mapping
and in the API body payload expecting actors
, districts
, blocks
, and schools
as an array instead of comma-separated string
cc:- @karntrehan @ankitmlesmagico
Release getting tracked in https://github.com/Mission-Prerna/prerna-lakshya-app/issues/486
As an admin I can send an outbound message to all teachers or geographical segments.
Refer to the 4th point of PRD and mockups
https://docs.google.com/document/d/1YDa282_wqMBW2XipiMEecck0ivroh9QPkyUGEkwSIJo/edit
UCI FE
NL BE