beckn / DSEP-Specification

Open Interoperable Specifications for Skilling and Education. An adaptation of Beckn Protocol.
Other
19 stars 21 forks source link

Discovery Examples for Mentor / Coaching / Tutoring #33

Closed ravi-prakash-v closed 2 years ago

ravi-prakash-v commented 2 years ago

DSEP Application Platform Sends a Search Intent for Mentoring Services around a specific GPS Location

{
   "context": {
       "domain": "mentors",
       "country": "IND",
       "city": "std:080",
       "action": "search",
       "core_version": "0.9.3",
       "bap_id": "exampleapp.io",
       "bap_uri": "https://api.exampleapp.io/dsep/v0/",
       "message_id": "5ac3dd78-829e-4c7d-9139-a15adbb582cc",
       "timestamp": "2021-03-23T10:00:40.065Z"
   },
   "message": {
       "intent": {
           "provider" : {
               "location" : [
                   {
                       "gps" : "22.394834,77.9822309"
                   }
               ]
           }
       }
   }
}

DSEP Application Platform Sends a Search Intent for “ONLINE” Mentoring Services

{
   "context": {
       "domain": "mentors",
       "country": "IND",
       "city": "std:080",
       "action": "search",
       "core_version": "0.9.3",
       "bap_id": "https://exampleapp.io/",
       "bap_uri": "https://api.exampleapp.io/dsep/v0/",
       "message_id": "5ac3dd78-829e-4c7d-9139-a15adbb582cc",
       "timestamp": "2021-03-23T10:00:40.065Z"
   },
   "message": {
       "intent": {
           "fulfillment" : {
               "type" : "ONLINE"
           }
       }
   }
}

DSEP Application Platform Sends a Search Intent for Mentoring Services by name

{
   "context": {
       "domain": "mentors",
       "country": "IND",
       "city": "std:080",
       "action": "search",
       "core_version": "0.9.3",
       "bap_id": "https://exampleapp.io/",
       "bap_uri": "https://api.exampleapp.io/dsep/v0/",
       "message_id": "5ac3dd78-829e-4c7d-9139-a15adbb582cc",
       "timestamp": "2021-03-23T10:00:40.065Z"
   },
   "message": {
       "intent": {
           "item" : {
               "descriptor" : {
                   "name" : "10th Std Mathematics"
               }
           }
       }
   }
}

BPP Returns a mentoring services catalog

{
   "context": {
       "domain": "mentors (just a placeholder)",
       "country": "IND",
       "city": "std:080",
       "action": "on_search",
       "core_version": "0.9.3",
       "bap_id": "https://exampleapp.io/",
       "bap_uri": "https://api.exampleapp.io/uhi/v0/",
       "bpp_id": "examplebpp.io",
       "bpp_uri": "https://api.examplebpp.io/uhi/v0/",
       "message_id": "5ac3dd78-829e-4c7d-9139-a15adbb582cc",
       "timestamp": "2021-03-23T10:00:40.065Z"
   },
   "message": {
       "catalog": {
           "bpp/descriptor": {
               "name": "Mentorship BPP"
           },
           "bpp/providers": [
               {
                   "id": " 1",
                   "descriptor": {
                       "name": "Manocha Coaching Classes"
                   },
                   "items" : [
                       {
                           "id" : "1",
                           "descriptor" : {
                               "name" : "10th Standard Mathematics (CBSE)",
                               "code" : "X-MATH-CBSE"
                           },
                           "matched" : true,
                       },
                       {
                           "id" : "2",
                           "descriptor" : {
                               "name" : "11th Standard Mathematics (CBSE)",
                               "code" : "XI-MATH-CBSE"
                           }
                       },
                       {
                           "id" : "3",
                           "descriptor" : {
                               "name" : "12th Standard Mathematics (CBSE)",
                               "code" : "XII-MATH-CBSE"
                           }
                       }
                   ],
                   "locations": [
                       {
                           "gps": "22.9874398,77.8749383",
                           "address": {
                               "./draft.full": "No 18, 2nd Street, Munirka",
                               "state": "Delhi/NCR",
                               "area_code": "110021",
                               "./draft.district": "Munirka"
                           }
                       }
                   ],
                   "fulfillments" : [
                       {
                           "id" : "1",
                           "type" : "ONLINE",
                           "person" : {
                               "name" : "Dr Rajiv Manocha",
                               "tags" : {
                                   "subjects" : "maths, physics",
                                   "grades" : "X, XI, XII",
                                   "boards" : "CBSE, ICSE"
                               }
                           },
                           "start" : {
                               "time" : "T10:00"
                           },
                           "end" : {
                               "time" : "T11:00"
                           }
                       },
                       {
                           "id" : "2",
                           "type" : "OFFLINE",
                           "person" : {
                               "name" : "Dr Rajiv Manocha",
                               "tags" : {
                                   "subjects" : "maths, physics",
                                   "grades" : "X, XI, XII",
                                   "boards" : "CBSE, ICSE"
                               }
                           },
                           "start" : {
                               "time" : "T16:00"
                           },
                           "end" : {
                               "time" : "T17:00"
                           }
                       },
                       {
                           "id" : "3",
                           "type" : "OFFLINE",
                           "person" : {
                               "name" : "Dr Manish Sharma",
                               "tags" : {
                                   "subjects" : "math, physics",
                                   "grades" : "X, XI, XII",
                                   "boards" : "CBSE, ICSE"
                               }
                           },
                           "start" : {
                               "time" : "T16:00"
                           },
                           "end" : {
                               "time" : "T17:00"
                           }
                       }

                   ]
               },
               {
                   "id": " 2",
                   "descriptor": {
                       "name": "FIIT-JEE"
                   },
                   "locations": [
                       {
                           "descriptor" : {
                               "name" : "Munirka Branch"
                           },
                           "gps": "22.658766,77.2587851",
                           "address": {
                               "./draft.full": "No 27, 2nd Street, Munirka",
                               "state": "Delhi/NCR",
                               "area_code": "110021",
                               "./draft.district": "Munirka"
                           }
                       },
                       {
                           "descriptor" : {
                               "name" : "Dwarka Branch"
                           },
                           "gps": "22.658766,77.2587851",
                           "address": {
                               "./draft.full": "",
                               "state": "Delhi/NCR",
                               "area_code": "110021",
                               "./draft.district": "Dwarka Sector 7"
                           }
                       }
                   ],
                   "items" : [
                       {
                           "id" : "1",
                           "descriptor" : {
                               "name" : "IIT JEE Preparation (2 year program) - OFFLINE"
                           },
                           "location_id" : "1",
                           "fulfillment_id" : "1"
                       },
                       {
                           "id" : "2",
                           "descriptor" : {
                               "name" : "IIT JEE Preparation (1 year program) - ONLINE"
                           },
                           "location_id" : "2",
                           "fulfillment_id" : "4"
                       }
                   ],
                   "fulfillments" : [
                       {
                           "id" : "1",
                           "type" : "OFFLINE",
                           "start" : {
                               "time" : {
                                   "timestamp" : "2022-07-01"
                               }
                           },
                           "end" : {
                               "time" : {
                                   "timestamp" : "2024-06-01"
                               }
                           }
                       },
                       {
                           "id" : "2",
                           "type" : "OFFLINE",
                           "start" : {
                               "time" : {
                                   "timestamp" : "2022-07-01"
                               }
                           },
                           "end" : {
                               "time" : {
                                   "timestamp" : "2023-06-01"
                               }
                           }
                       },
                       {
                           "id" : "3",
                           "type" : "ONLINE",
                           "start" : {
                               "time" : {
                                   "timestamp" : "2022-07-01"
                               }
                           },
                           "end" : {
                               "time" : {
                                   "timestamp" : "2024-06-30"
                               }
                           }
                       },
                       {
                           "id" : "4",
                           "type" : "ONLINE",
                           "start" : {
                               "time" : {
                                   "timestamp" : "2022-07-01"
                               }
                           },
                           "end" : {
                               "time" : {
                                   "timestamp" : "2023-06-01"
                               }
                           }
                       }
                   ]
               }
           ]
       }
   }
}