From ec9db8d6d41fca1177a47dac742b81cc3ed882d8 Mon Sep 17 00:00:00 2001 From: joffinjoy Date: Fri, 25 Nov 2022 14:37:13 +0530 Subject: [PATCH 1/2] Added Examples For Search & On_Search APIs For Languages --- api/dsep.yaml | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/api/dsep.yaml b/api/dsep.yaml index 807a1b3..1e0fff6 100644 --- a/api/dsep.yaml +++ b/api/dsep.yaml @@ -212,6 +212,35 @@ paths: id: '4' descriptor: name: Engineering and Technology + Search for online courses in specific languages: + value: + context: + domain: trainings-and-courses + country: IND + city: std:011 + action: search + core_version: 1.0.0-draft + bap_id: https://exampleapp.io/ + bap_uri: https://api.exampleapp.io/v0/ + bpp_id: https://mymentor.com/ + bpp_uri: https://api.mymentor.com/v0/ + message_id: 5ac3dd78-829e-4c7d-9139-a15adbb582cc + timestamp: '2021-03-23T10:00:40.065Z' + ttl: P10S + message: + intent: + item: + descriptor: + name: AI basics + tags: + Language: + - code: eng + name: "English" + - code: hin + name: "Hindi" + fulfillment: + type: ONLINE + responses: '200': description: Acknowledgement of message received @@ -771,6 +800,61 @@ paths: fulfillments: - id: '' type: ONLINE + Publish a catalog of online courses with languages: + value: + context: + domain: trainings-and-courses + country: IND + city: std:011 + action: search + core_version: 0.5.0 + bap_id: https://exampleapp.io/ + bap_uri: https://api.exampleapp.io/uhi/v0/ + message_id: 5ac3dd78-829e-4c7d-9139-a15adbb582cc + timestamp: '2021-03-23T10:00:40.065Z' + message: + catalog: + bpp/descriptor: + name: XAcademy + providers: + descriptor: + name: XAcademy + categories: + - id: '1' + name: Software + - id: '2' + name: Management + items: + - id: '1' + descriptor: + name: Basics of AI + price: + value: '6000' + fulfillment_id: '1' + category_id: '1' + tags: + languages: + - code: "eng" + name: 'English' + - code: "hin" + name: 'Hindi' + - id: '2' + descriptor: + name: AI for Data Analysis + price: + value: '7000' + fulfillment_id: '1' + category_id: '1' + tags: + languages: + - code: "eng" + name: 'English' + - code: "mal" + name: 'Malayalam' + fulfillments: + - id: '' + type: ONLINE + responses: '200': description: Acknowledgement of message received From d8d5f25a9016b93363de94e29323c3eb9c5e2b06 Mon Sep 17 00:00:00 2001 From: joffinjoy Date: Mon, 19 Dec 2022 13:12:18 +0530 Subject: [PATCH 2/2] Made Tags As Array Of Language Object --- api/dsep.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/api/dsep.yaml b/api/dsep.yaml index 1e0fff6..5caba70 100644 --- a/api/dsep.yaml +++ b/api/dsep.yaml @@ -233,10 +233,12 @@ paths: descriptor: name: AI basics tags: - Language: - - code: eng + - code: "lang" + name: "Language" + list: + - code: ENG name: "English" - - code: hin + - code: HIN name: "Hindi" fulfillment: type: ONLINE @@ -833,10 +835,12 @@ paths: fulfillment_id: '1' category_id: '1' tags: - languages: - - code: "eng" + - code: "lang" + name: "Language" + list: + - code: "ENG" name: 'English' - - code: "hin" + - code: "HIN" name: 'Hindi' - id: '2' descriptor: @@ -846,10 +850,12 @@ paths: fulfillment_id: '1' category_id: '1' tags: - languages: - - code: "eng" + - code: "lang" + name: "Language" + list: + - code: "ENG" name: 'English' - - code: "mal" + - code: "MAL" name: 'Malayalam' fulfillments: - id: ''