diff --git a/Postman/Portal/Sunbird-ED-Portal-Form-Config-V1.0.1.postman_collection.json b/Postman/Portal/Sunbird-ED-Portal-Form-Config-V1.0.1.postman_collection.json new file mode 100644 index 0000000..c8897f4 --- /dev/null +++ b/Postman/Portal/Sunbird-ED-Portal-Form-Config-V1.0.1.postman_collection.json @@ -0,0 +1,7909 @@ +{ + "info": { + "_postman_id": "cc84125b-1478-4748-b518-fbd5ae2ffc87", + "name": "Sunbird-ED-Portal-Form-Config-V1.0.1", + "description": "This document provides an overview of the form configurations for the Sunbird ED portal. Configuring these forms will allow you to set up user onboarding, home page, user profiles, dashboards, help centers, groups, certificates, et cetera.\n\n## **Before you begin**\n\nHere are a few points to remember while reading the document:\n\n1. This document shows the preferred steps of the configuration. However, you can configure them independently unless specifically mentioned.\n \n2. The type, action, subtype, and component are the mandatory metadata to create or read the API. It is advised not to change the key and value\n \n3. This document contains the mandatory and optional forms\n \n 1. Forms with _M as a suffix in their title are mandatory forms\n \n 2. Forms with _O as a suffix in their title are optional forms\n \n4. Mandatory forms have to be configured in the same steps as defined in the document.\n \n5. Post created form data will be stored in Cassandra database.\n \n\n## **Overview**\n\n- **What is form config?**\n \n - Form config refers to a set of specifications, parameters that define the structure and behavior of a form in a web application .\n \n- **Why are they required or used?**\n \n - It reduces the code dependency by decoupling form logic from the main application code. This leads to a more maintainable, modular, and flexible codebase.\n \n- **How user can create their own form config?**\n \n - Please Refer this [link](https://documenter.getpostman.com/view/25186239/2s93Y2TNAw) to create a new form.\n \n- **How to Automate portal form config?**\n \n - Mandatory forms\n \n - Step 1: set **onlyMandatory** environment variable to **true**\n \n - Step 2: Run the collection - if flag is true it will execute and configure the mandatory form only.\n \n - All forms\n \n - Step 1: set **onlyMandatory** environment variable to **false**\n \n - Step 2: Run the collection - if flag is false it will execute and configure the all the forms.\n \n\n## Categories of Sunbird ED Portal Form Configuration\n\n1. Pre-Launched Forms\n \n2. Home Page Forms\n \n3. Profile Forms\n \n4. Program Dashboard Forms\n \n5. Groups\n \n6. Help\n \n7. Certificate Forms\n \n8. Others", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "23903693" + }, + "item": [ + { + "name": "Pre-Launched-Forms", + "item": [ + { + "name": "To exclude onboarding popup_O", + "item": [ + { + "name": "Form Create (user__onboarding__exclusion)_O", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"exclusion\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"onboarding\",\n \"subType\": \"exclusion\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n \"/certs/\",\n \"/signup/\",\n \"/recover/\",\n \"/sign-in/\",\n \"/get/dial/\"\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"action\": \"get\": Indicates that the action to be performed is related to retrieving or accessing data.\n- \"fields\": Specifies the fields or URLs that are being requested.\n - Within the \"fields\" array, there are five strings representing URLs:\n - \"/certs/\": Represents the URL for accessing certificates.\n - \"/signup/\": Represents the URL for the signup page.\n - \"/recover/\": Represents the URL for the password recovery page.\n - \"/sign-in/\": Represents the URL for the sign-in page.\n - \"/get/dial/\": Represents the URL for accessing the dial endpoint." + }, + "response": [] + }, + { + "name": "Form Read (user__onboarding__exclusion)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"exclusion\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"onboarding\",\n \"subType\": \"exclusion\",\n \"component\": \"portal\",\n \"rootOrgId\": \"*\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__onboarding__exclusion)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"onboarding\",\n \"subType\": \"exclusion\",\n \"component\": \"portal\"\n \n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 07:32:33 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "537" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"219-Ymfm56sTVBzHbEXfCPOkxvBXRHM\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3AXgsHrHZPUzKQJqlZ20j6x71SHzEjdJn4.IAVHyIv59KTXq6XebA4Ha265zZ%2FzcLRzFdGr%2FEO6E%2BY; Path=/; Expires=Thu, 01 Jun 2023 08:02:33 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "35" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "66" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 07:32:33 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"e64e038d-df19-4558-b20e-a9a4f2471d70\",\n \"msgid\": \"9099c7fc-d590-4619-a777-d462e05e5ee2\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"exclusion\",\n \"action\": \"onboarding\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n \"/certs/\",\n \"/signup/\",\n \"/recover/\",\n \"/sign-in/\",\n \"/get/dial/\"\n ]\n },\n \"created_on\": \"2023-03-30T12:52:21.188Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T07:32:33.557Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "When the user first enters the URL, by default, the onboarding popup appears on the screen. Refer to the below screenshot.\n\n\n\nTo exclude the onboarding popup appearing on every screen, this form is configured.\n\nThis form serves the purpose of excluding the onboarding popup based on the route path. Specifically, if the URL contains certain routes such as \"/certs/\", \"/signup/\", or \"/recover/\", the onboarding popup should not be displayed.\n\nIn the below screenshot, the onboarding popup is not displayed on the screen after configuring this form.\n\n\n\n**\\*Impact:** The onboarding popup will appear on the portal routes screen such as /signup,/cert,/faq, etc." + }, + { + "name": "To give the name to the framework categories_M", + "item": [ + { + "name": "Form Create (customResourcebundles__list__global)_M", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + " postman.setNextRequest('Form Read (customResourcebundles__list__global)_M');", + "} " + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"customResourcebundles\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"customResourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"defaultLanguage\": \"en\",\n \"en\": {\n \"frameworkCategory1\": \"Board\",\n \"frameworkCategory2\": \"Medium\",\n \"frameworkCategory3\": \"Grade\",\n \"frameworkCategory4\": \"Subject\"\n }\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"defaultLanguage\": \"en\": Indicates that the default language for the framework categories is English.\n- \"en\": Specifies the translations for the framework categories in English.\n - \"frameworkCategory1\": \"Board\": Represents the first framework category, which is typically related to educational boards.\n - \"frameworkCategory2\": \"Medium\": Represents the second framework category, which often refers to the medium or language of instruction.\n - \"frameworkCategory3\": \"Grade\": Represents the third framework category, which pertains to the academic grade or level.\n - \"frameworkCategory4\": \"Subject\": Represents the fourth framework category, which focuses on specific subjects or disciplines." + }, + "response": [] + }, + { + "name": "Form Read (customResourcebundles__list__global)_M", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"customResourcebundles\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + "", + " postman.setNextRequest('Form Create (contentcategory__menubar__global)_M');", + "} " + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"customResourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (customResourcebundles__list__global)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "abc", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"customResourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://staging.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "staging", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 07:33:17 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "577" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29998" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"241-79BsObFGDqWS0SWFCDTClNFF27k\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "8" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "10" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 07:33:17 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"b294addd-2711-4ed7-a7a3-82c394bca37b\",\n \"msgid\": \"c6a1d5f1-d0ff-49e6-8efe-9eecd84a4f91\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"customresourcebundles\",\n \"subtype\": \"global\",\n \"action\": \"list\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"defaultLanguage\": \"en\",\n \"en\": {\n \"frameworkCategory1\": \"Board\",\n \"frameworkCategory2\": \"Medium\",\n \"frameworkCategory3\": \"Grade\",\n \"frameworkCategory4\": \"Subject\"\n }\n },\n \"created_on\": \"2023-03-30T12:49:52.771Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T07:33:17.686Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form is used to update the label name of framework category terms that are used in the portal. \"en\" is used as a default language for translation.\n\nRefer to the below screenshot.\n\n\n\n\n\n**\\*Impact:** If this form is not configured correctly, the label name will not update for the framework category terms that are used in the portal.\n\nRefer to the below screenshots:\n\n\n\n" + }, + { + "name": "To show/hide the new onboarding popup_O", + "item": [ + { + "name": "Form Create (newUserOnboarding__onboarding__global)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"newUserOnboarding\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"newUserOnboarding\",\n \"action\": \"onboarding\",\n \"subType\": \"global\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"fields\": {\n \"shownewUserOnboarding\": \"true\"\n }\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "\"shownewUserOnboarding\": \"true\": Specifies the configuration for showing new user onboarding. The value \"true\" indicates that the new user onboarding feature should be enabled.\n\n**\\*Impact :: no impact**" + }, + "response": [] + }, + { + "name": "Form Read (newUserOnboarding__onboarding__global)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"newUserOnboarding\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"newUserOnboarding\",\n \"action\": \"onboarding\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (newUserOnboarding__onboarding__global)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"newUserOnboarding\",\n \"action\": \"onboarding\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 07:33:42 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "472" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29997" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"1d8-s/icVXhgy4KtbKGMnjFAT/IbGII\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "8" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "13" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 07:33:42 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"5b895284-34b1-4edb-9909-d6dd6ecf1de3\",\n \"msgid\": \"150dfe4a-eca5-4a37-8d53-5ce2c94a4bb8\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"newuseronboarding\",\n \"subtype\": \"global\",\n \"action\": \"onboarding\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"fields\": {\n \"shownewUserOnboarding\": \"true\"\n }\n },\n \"created_on\": \"2023-03-30T12:54:15.112Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T07:33:42.686Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form controls the visibility of the new onboarding popup." + }, + { + "name": "To retrieve different language JSON files_O", + "item": [ + { + "name": "Form Create (generaliseresourcebundles__list__global)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"generaliseresourcebundles\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"generaliseresourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"collectionResourceBundles\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"textbook\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"tbk\"\n },\n \"tvclass\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"tvc\"\n },\n \"default\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"dflt\"\n },\n \"course\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"crs\"\n }\n }\n ]\n }\n \n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"templateName\": \"collectionResourceBundles\": Specifies the template name as \"collectionResourceBundles,\" indicating that it is a configuration related to resource bundles for collections.\n- \"action\": \"list\": Indicates that the action to be performed is to list the resource bundles.\n- \"fields\": Contains an array of field configurations for resource bundles.\n- \"textbook\": Represents the field code or identifier for the textbook resource bundle.\n- \"trackable\": Contains a mapping of language codes to the corresponding trackable resource bundle filenames. Each language code is associated with a JSON file that contains labels or translations for the trackable resources related to the textbook.\n- \"nontrackable\": Contains a mapping of language codes to the corresponding non-trackable resource bundle filenames. Similar to \"trackable,\" each language code is associated with a JSON file that contains labels or translations for the non-trackable resources related to the textbook.\n- \"key\": \"tbk\": Specifies the key or identifier for the textbook resource bundle." + }, + "response": [] + }, + { + "name": "Form Read (generaliseresourcebundles__list__global)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"generaliseresourcebundles\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"generaliseresourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n \n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (generaliseresourcebundles__list__global)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "bearer..." + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"generaliseresourcebundles\",\n \"action\": \"list\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n \n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 07:33:55 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29996" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"955-eGOBFxsBlsT/WN56yYe6dSzUXWo\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "7" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "7" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 07:33:55 GMT" + }, + { + "key": "Content-Encoding", + "value": "gzip" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"d41d954a-e7b6-40ba-a277-a57dbb0409ff\",\n \"msgid\": \"5f8979e0-166a-4d55-8a85-03bfa0edccce\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"generaliseresourcebundles\",\n \"subtype\": \"global\",\n \"action\": \"list\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"collectionResourceBundles\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"textbook\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"tbk\"\n },\n \"tvclass\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"tvc\"\n },\n \"default\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"dflt\"\n },\n \"course\": {\n \"trackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"nontrackable\": {\n \"hi\": \"all_labels_hi.json\",\n \"te\": \"all_labels_te.json\",\n \"kn\": \"all_labels_kn.json\",\n \"mr\": \"all_labels_mr.json\",\n \"en\": \"all_labels_en.json\",\n \"bn\": \"all_labels_bn.json\",\n \"ta\": \"all_labels_ta.json\",\n \"ur\": \"all_labels_ur.json\"\n },\n \"key\": \"crs\"\n }\n }\n ]\n },\n \"created_on\": \"2023-03-30T12:55:06.738Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T07:33:55.117Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to retrieve different language JSON files for both trackable and non-trackable contents.\n\n**\\*Impact:** If this form is not configured, then the labels will not appear properly." + }, + { + "name": "To support language translations_O", + "item": [ + { + "name": "Form Create (content__search__resourcebundle)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"content\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"resourcebundle\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"form\": {\n \"type\": \"content\",\n \"action\": \"search\",\n \"subtype\": \"resourcebundle\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"search\",\n \"fields\": [\n {\n \"code\": \"portalLanguage\",\n \"dataType\": \"text\",\n \"name\": \"Portal Language\",\n \"label\": \"Portal Language\",\n \"description\": \"Language that should be displayed on portal (Like English, Hindi etc)\",\n \"editable\": true,\n \"inputType\": \"select\",\n \"required\": false,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"range\": [\n {\n \"value\": \"en\",\n \"label\": \"English\",\n \"dir\": \"ltr\",\n \"accessibleText\": \"English\"\n },\n {\n \"value\": \"kn\",\n \"label\": \"ಕನ್ನಡ\",\n \"dir\": \"ltr\",\n \"accessibleText\": \"Kannada\"\n }\n ]\n }\n ]\n }\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"templateName\": \"defaultTemplate\": Specifies the template name as \"defaultTemplate,\" indicating that it is a configuration for a default template.\n- \"action\": \"search\": Indicates that the action to be performed is a search operation.\n- \"fields\": Contains an array of field configurations.\n- \"code\": \"portalLanguage\": Represents the code or identifier for the field.\n- \"dataType\": \"text\": Specifies the data type of the field as text.\n- \"name\": \"Portal Language\": Provides the name or title for the field.\n- \"label\": \"Portal Language\": Specifies the label for the field.\n- \"description\": \"Language that should be displayed on the portal (Like English, Hindi, etc)\": Provides a description of the field, explaining its purpose.\n- \"editable\": true: Indicates that the field is editable.\n- \"inputType\": \"select\": Specifies that the input type for the field is a select dropdown.\n- \"required\": false: Indicates that the field is not required to be filled.\n- \"displayProperty\": \"Editable\": Specifies the display property of the field as editable.\n- \"visible\": true: Indicates that the field is visible.\n- \"renderingHints\": { \"semanticColumnWidth\": \"four\" }: Provides rendering hints to determine the layout or column width of the field.\n- \"range\": Represents the available options for the select dropdown.\n- English:\n - \"value\": \"en\": Represents the value for the English language option.\n - \"label\": \"English\": Specifies the label for the English language option.\n - \"dir\": \"ltr\": Indicates the text direction as left-to-right.\n - \"accessibleText\": \"English\": Provides an accessible text description for the English language option.\n- Kannada:\n - \"value\": \"kn\": Represents the value for the Kannada language option.\n - \"label\": \"ಕನ್ನಡ\": Specifies the label for the Kannada language option.\n - \"dir\": \"ltr\": Indicates the text direction as left-to-right.\n - \"accessibleText\": \"Kannada\": Provides an accessible text description for the Kannada language option." + }, + "response": [] + }, + { + "name": "Form Read (content__search__resourcebundle)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"content\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"resourcebundle\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"contentcategory\",\n \"action\": \"menubar\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (content__search__resourcebundle)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"content\",\n \"action\": \"search\",\n \"subType\": \"resourcebundle\",\n \"component\": \"*\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 08:40:36 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "970" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"3ca-ttT2anH6D08h7czf6/lA8P0lje0\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3AUJIHKg6AcfPN5x3eeginDZ6rdleGaPzs.RGf7SOCtMismS5Eg4jCmOvJQ1ECEsPf2RvPT57KJhBc; Path=/; Expires=Thu, 01 Jun 2023 09:10:36 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "25" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "8" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 08:40:36 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"4675e524-79d2-4438-afe8-5c17c42bbd86\",\n \"msgid\": \"c96e2ca5-7da6-41fa-a763-d5f275ebe567\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"content\",\n \"subtype\": \"resourcebundle\",\n \"action\": \"search\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"search\",\n \"fields\": [\n {\n \"code\": \"portalLanguage\",\n \"dataType\": \"text\",\n \"name\": \"Portal Language\",\n \"label\": \"Portal Language\",\n \"description\": \"Language that should be displayed on portal (Like English, Hindi etc)\",\n \"editable\": true,\n \"inputType\": \"select\",\n \"required\": false,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"range\": [\n {\n \"value\": \"en\",\n \"label\": \"English\",\n \"dir\": \"ltr\",\n \"accessibleText\": \"English\"\n },\n {\n \"value\": \"kn\",\n \"label\": \"ಕನ್ನಡ\",\n \"dir\": \"ltr\",\n \"accessibleText\": \"Kannada\"\n }\n ]\n }\n ]\n },\n \"created_on\": \"2023-04-24T05:04:08.386Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T08:40:36.527Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "The Form is used to support the different language translations in the drop-down menu of the portal.\n\n\n\n**\\*Impact:** If this form is not configured correctly, then the user cannot view other language options in the drop-down menu apart from the default language (English).\n\n" + }, + { + "name": "To get the userType popup_O", + "item": [ + { + "name": "Form Create (config__get__userType)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"userType\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"userType\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"teacher\",\n \"name\": \"Teacher\",\n \"label\": \"frmelmnts.lbl.teacher\",\n \"visibility\": true,\n \"image\": \"guest-img1.svg\",\n \"index\": 0,\n \"searchFilter\": [\n \"Teacher\",\n \"Instructor\"\n ]\n },\n {\n \"code\": \"student\",\n \"name\": \"Student\",\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.student\",\n \"image\": \"guest-img2.svg\",\n \"index\": 1,\n \"searchFilter\": [\n \"Student\",\n \"Learner\"\n ]\n },\n {\n \"code\": \"administrator\",\n \"name\": \"School head OR Officials\",\n \"index\": 3,\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.administrator\",\n \"image\": \"guest-img5.svg\",\n \"searchFilter\": [\n \"administrator\"\n ]\n },\n {\n \"code\": \"parent\",\n \"name\": \"Parent\",\n \"index\": 2,\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.parent\",\n \"image\": \"guest-img4.svg\",\n \"searchFilter\": [\n \"Student\",\n \"Teacher\",\n \"Instructor\",\n \"Learner\"\n ]\n },\n {\n \"code\": \"other\",\n \"name\": \"Other\",\n \"visibility\": false,\n \"index\": 4,\n \"label\": \"frmelmnts.lbl.other\",\n \"image\": \"guest-img3.svg\",\n \"searchFilter\": [\n \"Student\",\n \"Teacher\",\n \"Instructor\",\n \"Learner\"\n ]\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": A code or identifier for the field, which in this case is set as \"teacher\".\n- \"name\": The name of the field, which is specified as \"Teacher\".\n- \"label\": A label or display name for the field, given as \"frmelmnts.lbl.teacher\" .\n- \"visibility\": A boolean value indicating whether the field should be visible or not (set as true).\n- \"image\": Specifies an image associated with the field, represented by the file name \"guest-img1.svg\".\n- \"index\": An index value associated with the field, set to 0.\n- \"searchFilter\": An array containing values that can be used as search filters for this field. In this case, the options are \"Teacher\" and \"Instructor\"." + }, + "response": [] + }, + { + "name": "Form Read (config__get__userType)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"userType\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"userType\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (config__get__userType)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"userType\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 08:49:19 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "1329" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29998" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"531-WWzBf3kViogZC+r6TwNeHWCXC9g\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "8" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "13" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 08:49:19 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"f06b9d2f-f16c-405a-ba94-822fe02687d0\",\n \"msgid\": \"8a20c8fd-edea-4562-9ed5-fd2b18d56bdc\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"config\",\n \"subtype\": \"usertype\",\n \"action\": \"get\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"teacher\",\n \"name\": \"Teacher\",\n \"label\": \"frmelmnts.lbl.teacher\",\n \"visibility\": true,\n \"image\": \"guest-img1.svg\",\n \"index\": 0,\n \"searchFilter\": [\n \"Teacher\",\n \"Instructor\"\n ]\n },\n {\n \"code\": \"student\",\n \"name\": \"Student\",\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.student\",\n \"image\": \"guest-img2.svg\",\n \"index\": 1,\n \"searchFilter\": [\n \"Student\",\n \"Learner\"\n ]\n },\n {\n \"code\": \"administrator\",\n \"name\": \"School head OR Officials\",\n \"index\": 3,\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.administrator\",\n \"image\": \"guest-img5.svg\",\n \"searchFilter\": [\n \"administrator\"\n ]\n },\n {\n \"code\": \"parent\",\n \"name\": \"Parent\",\n \"index\": 2,\n \"visibility\": true,\n \"label\": \"frmelmnts.lbl.parent\",\n \"image\": \"guest-img4.svg\",\n \"searchFilter\": [\n \"Student\",\n \"Teacher\",\n \"Instructor\",\n \"Learner\"\n ]\n },\n {\n \"code\": \"other\",\n \"name\": \"Other\",\n \"visibility\": false,\n \"index\": 4,\n \"label\": \"frmelmnts.lbl.other\",\n \"image\": \"guest-img3.svg\",\n \"searchFilter\": [\n \"Student\",\n \"Teacher\",\n \"Instructor\",\n \"Learner\"\n ]\n }\n ]\n },\n \"created_on\": \"2023-03-21T17:12:58.890Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T08:49:19.945Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to display the user type popup during user onboarding. It displays user labels and respective images. Users can customize the labels and images as per their needs.\n\nThe below screenshot shows \"guest-img1.svg\" image is used for the \"Teacher\" profile.\n\n\n\n**\\*Impact:** If this form is not configured, then the user type popup is not displayed, and the user type selection and location screen will be skipped during user onboarding.\n\n\n\nOn the click of the **CHANGE PREFERENCE** button on the landing page, the popup will appear as shown in the below screenshot.\n\n" + }, + { + "name": "On-board-selection-getting framework categories for onboarding popuop_O", + "item": [ + { + "name": "Form Create (user__update__framework)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"framework\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"update\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"update\",\n \"subType\": \"framework\",\n \"rootOrgId\": \"*\",\n \"component\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"update\",\n \"fields\": [\n {\n \"code\": \"board\",\n \"dataType\": \"text\",\n \"name\": \"Board\",\n \"label\": \"Board\",\n \"description\": \"Education Board (Like MP Board, NCERT, etc)\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 1,\n \"translation\": \"frmelmnts.lbl.boards\"\n },\n {\n \"code\": \"medium\",\n \"dataType\": \"text\",\n \"name\": \"Medium\",\n \"label\": \"Medium\",\n \"description\": \"Medium of instruction\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 2,\n \"translation\": \"frmelmnts.lbl.medium\"\n },\n {\n \"code\": \"gradeLevel\",\n \"dataType\": \"text\",\n \"name\": \"Class\",\n \"label\": \"Class\",\n \"description\": \"Grade\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 3,\n \"translation\": \"frmelmnts.lbl.class\"\n },\n {\n \"code\": \"subject\",\n \"dataType\": \"text\",\n \"name\": \"Subject\",\n \"label\": \"Subject\",\n \"description\": \"Subject of the Content to use to teach\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": false,\n \"displayProperty\": \"Editable\",\n \"visible\": false,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 4,\n \"translation\": \"frmelmnts.lbl.subject\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": A code or identifier for the field, set as \"board\".\n- \"dataType\": Specifies the data type of the field, which in this case is \"text\".\n- \"name\": The name of the field, set as \"Board\".\n- \"label\": A label or display name for the field, also set as \"Board\".\n- \"description\": Provides a description or explanation of the field's purpose, which is \"Education Board (Like MP Board, NCERT, etc)\" in this case.\n- \"editable\": A boolean value indicating whether the field is editable (set as true).\n- \"inputType\": Specifies the type of input for the field, which is \"multi-select\" in this case, indicating that multiple options can be selected.\n- \"required\": A boolean value indicating whether the field is required (set as true).\n- \"displayProperty\": Specifies how the field should be displayed, and in this case, it is set as \"Editable\".\n- \"visible\": A boolean value indicating whether the field should be visible (set as true).\n- \"renderingHints\": Additional hints or instructions for rendering the field, such as the semantic column width.\n- \"index\": An index value associated with the field, set to 1.\n- \"translation\": Provides a translation key or label for localization purposes, set as \"frmelmnts.lbl.boards\"." + }, + "response": [] + }, + { + "name": "Form Read (user__update__framework)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"framework\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"update\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"update\",\n \"subType\": \"framework\",\n \"component\": \"*\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__update__framework)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"update\",\n \"subType\": \"framework\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 08:53:32 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "1720" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"6b8-wfCod6A9xWH7419J2cCiv+TW5As\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3AWael5RIQEDoTXqwTNOnWTkSdnL0OmeFZ.NW9e4tDJeQ1WhglmTuZ2WKaPg4ZO%2BewxVnHo2ivn3Gc; Path=/; Expires=Thu, 01 Jun 2023 09:23:32 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "26" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "21" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 08:53:32 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"9bc4c7fd-f31a-407f-882c-c81656728a78\",\n \"msgid\": \"ff24e198-91f2-47d2-a4fa-b5abe3eea6b1\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"framework\",\n \"action\": \"update\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"update\",\n \"fields\": [\n {\n \"code\": \"board\",\n \"dataType\": \"text\",\n \"name\": \"Board\",\n \"label\": \"Board\",\n \"description\": \"Education Board (Like MP Board, NCERT, etc)\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 1,\n \"translation\": \"frmelmnts.lbl.boards\"\n },\n {\n \"code\": \"medium\",\n \"dataType\": \"text\",\n \"name\": \"Medium\",\n \"label\": \"Medium\",\n \"description\": \"Medium of instruction\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 2,\n \"translation\": \"frmelmnts.lbl.medium\"\n },\n {\n \"code\": \"gradeLevel\",\n \"dataType\": \"text\",\n \"name\": \"Class\",\n \"label\": \"Class\",\n \"description\": \"Grade\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": true,\n \"displayProperty\": \"Editable\",\n \"visible\": true,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 3,\n \"translation\": \"frmelmnts.lbl.class\"\n },\n {\n \"code\": \"subject\",\n \"dataType\": \"text\",\n \"name\": \"Subject\",\n \"label\": \"Subject\",\n \"description\": \"Subject of the Content to use to teach\",\n \"editable\": true,\n \"inputType\": \"multi-select\",\n \"required\": false,\n \"displayProperty\": \"Editable\",\n \"visible\": false,\n \"renderingHints\": {\n \"semanticColumnWidth\": \"four\"\n },\n \"index\": 4,\n \"translation\": \"frmelmnts.lbl.subject\"\n }\n ]\n },\n \"created_on\": null,\n \"last_modified_on\": \"2022-01-28T12:20:19.357Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T08:53:32.471Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is designed to provide a framework for selecting educational categories such as board, medium, class, and subject. Each category has a code, label, name, and description.\n\n\n\n**\\*Impact**: If the form is not configured, then on selection of the board, the API will fail to get the values for medium and grade. The popup will be closed and the user will be redirected to the landing page with the below error message.\n\n" + }, + { + "name": "On load of location selection popup_O", + "item": [ + { + "name": "Form Create (profileConfig_v2__get__default)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"profileConfig_v2\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"default\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileConfig_v2\",\n \"action\": \"get\",\n \"subType\": \"default\",\n \"rootOrgId\": \"*\",\n \"component\": \"*\",\n \"data\": {\n \"templateName\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Name\"\n }\n },\n \"hidden\": true,\n \"placeHolder\": \"Enter Name\",\n \"multiple\": false\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"persona\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"hidden\": true,\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Role\"\n }\n },\n \"placeHolder\": \"Select Role\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"SUPPORTED_PERSONA_LIST\"\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"administrator\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"teacher\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"student\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"other\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"parent\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": A code or identifier for the field, set as \"name\".\n- \"type\": Specifies the type of the field, which is \"input\" in this case.\n- \"templateOptions\": An object containing various options related to the template or layout of the field.\n- \"labelHtml\": Specifies the HTML contents for the label of the field. It includes a placeholder \"$0\" that will be replaced with the value \"Name\". Additionally, it adds a span element with a CSS class to display a required asterisk symbol.\n- \"hidden\": A boolean value indicating whether the field should be hidden (set as true).\n- \"placeHolder\": Specifies the placeholder text to be displayed within the input field, set as \"Enter Name\".\n- \"multiple\": A boolean value indicating whether multiple values can be entered in the field (set as false).\n- \"validations\": An array containing validation rules for the field. In this case, there is a single validation rule of type \"required\", indicating that the field must have a value." + }, + "response": [] + }, + { + "name": "Form Read (profileConfig_v2__get__default)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"profileConfig_v2\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"default\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileConfig_v2\",\n \"action\": \"get\",\n \"subType\": \"default\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (profileConfig_v2__get__default)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileConfig_v2\",\n \"action\": \"get\",\n \"subType\": \"default\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 08:57:20 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "8710" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29995" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"2206-XB3ASEFp3j/GHXStODr3JOGSL88\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "14" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "12" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 08:57:20 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"c47192ce-980d-4e25-85d3-e67e1f924970\",\n \"msgid\": \"2f643608-d190-4105-9c5c-dde6c465a2a2\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"profileconfig_v2\",\n \"subtype\": \"default\",\n \"action\": \"get\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Name\"\n }\n },\n \"hidden\": true,\n \"placeHolder\": \"Enter Name\",\n \"multiple\": false\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"persona\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"hidden\": true,\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Role\"\n }\n },\n \"placeHolder\": \"Select Role\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"SUPPORTED_PERSONA_LIST\"\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"administrator\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"teacher\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"student\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"other\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"parent\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"themeType\": \"material\",\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ]\n }\n }\n ]\n },\n \"created_on\": \"2023-03-24T10:26:29.829Z\",\n \"last_modified_on\": \"2023-04-13T04:24:21.551Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T08:57:20.239Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form is used to display the location values in the drop-down list while user onbaording.\n\n\n\nThis is a form configuration for a select field that allows users to choose a state from a list. Here are some ways in which a user can improvise this form configuration and use it according to their convenience:\n\n1\\. **Change the field type**:\n\nThe user can change the **type** field from \"select\" to other types such as \"radio\", \"checkbox\", or \"text\" based on their requirements.\n\n2\\. **Modify the label and placeholder text**:\n\nThe user can modify the \"_label Html_\" and \"placeHolder\" fields to change the label and placeholder text of the selected field. In this example, the label is \"State\" with an asterisk to indicate it is a required field, and the placeholder text is \"Select State\". The user can customize these values as per their needs.\n\n3\\. **Customize the data source**:\n\nThe user can customize the \"dataSrc\" field to change the data source for the selected field. In this example, the data source is specified using \"marker\" and \"params\". The user can modify these values to use a different data source or provide additional parameters for the existing data source.\n\n4\\. **Add or modify validation rules**:\n\nThe user can add or modify the validation rules specified in the **validations** field. In this example, the only validation rule is to check if the field is required. The user can add other validation rules such as minimum and maximum length, regular expressions, or custom validation functions to ensure data integrity.\n\nOverall, this form configuration provides a lot of flexibility and customization options for users to tailor the select field to their specific needs and preferences. The values from the response can be taken as labels in the form and can be altered and used as per the user's requirements.\n\n**\\*Impact:** If the form is not configured, the location dropdown will not appear.\n\n" + }, + { + "name": "To fetch user feed data if user is custodian as well as logged in_O", + "item": [ + { + "name": "Form Create (user__onboarding__externalidverification)_O", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "let reqData = {", + " \"type\": \"user\",", + " \"action\": \"onboarding\",", + " \"subType\": \"exclusion\",", + " \"rootOrgId\": \"*\",", + " \"component\": \"portal\"", + "}", + "pm.globals.set(\"onboadingExclusionFormBody\", body);" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"externalidverification\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"subtype\": \"externalidverification\",\n \"action\": \"onboarding\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"rootOrgId\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"onboarding\",\n \"fields\": [\n {\n \"code\": \"externalIdVerificationLabels\",\n \"name\": \"externalIdVerification\",\n \"range\": [\n {\n \"headerLabel\": \"Are you a government school teacher ?\",\n \"fieldLabel\": \"Enter your teacher ID for verification\",\n \"popupHeaderLabel\": \"User Verification\",\n \"verificationSuccessfulLabel\": \"Teacher profile verified successfully\",\n \"incorrectIDLabel\": \"The ID entered is incorrect. Enter the ID again\",\n \"verficationFailureLabel\": \"Could not verify teacher profile as the ID entered is incorrect\"\n }\n ]\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- code: A code or identifier for the field, set as \"externalIdVerificationLabels\".\n- name: The name given to the field, set as \"externalIdVerification\".\n- headerLabel: The label for the header or question related to the field, set as \"Are you a government school teacher?\".\n- fieldLabel: The label for the input field where the user needs to enter their teacher ID for verification, set as \"Enter your teacher ID for verification\".\n- popupHeaderLabel: The label for a popup or dialog related to user verification, set as \"User Verification\".\n- verificationSuccessfulLabel: The label displayed when the teacher's profile is successfully verified, set as \"Teacher profile verified successfully\".\n- incorrectIDLabel: The label displayed when the entered ID is incorrect and the user needs to enter it again, set as \"The ID entered is incorrect. Enter the ID again\".\n- verificationFailureLabel: The label displayed when the teacher's profile could not be verified due to an incorrect ID, set as \"Could not verify teacher profile as the ID entered is incorrect\"." + }, + "response": [] + }, + { + "name": "Form Read (user__onboarding__externalIdVerification)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"externalidverification\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"onboarding\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"onboarding\",\n \"subType\": \"externalIdVerification\",\n \"component\": \"portal\",\n \"rootOrgId\": \"*\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__onboarding_externalIdVerification)_M", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"onboarding\",\n \"subType\": \"externalIdVerification\",\n \"component\": \"portal\",\n \"rootOrgId\": \"*\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Wed, 28 Jun 2023 05:42:12 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "956" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29998" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"3bc-TBdiWZ4WU0jg23sMQb/3Aomd5Po\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "16" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "11" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Wed, 28 Jun 2023 05:42:12 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"28c85611-b5a6-4360-99ee-75b14d587a3e\",\n \"msgid\": \"f9f0c16e-a3d4-4d9e-a6a8-9f4a8b66d5de\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"externalidverification\",\n \"action\": \"onboarding\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"onboarding\",\n \"fields\": [\n {\n \"code\": \"externalIdVerificationLabels\",\n \"name\": \"externalIdVerification\",\n \"range\": [\n {\n \"headerLabel\": \"Are you a government school teacher ?\",\n \"fieldLabel\": \"Enter your teacher ID for verification\",\n \"popupHeaderLabel\": \"User Verification\",\n \"verificationSuccessfulLabel\": \"Teacher profile verified successfully\",\n \"incorrectIDLabel\": \"The ID entered is incorrect. Enter the ID again\",\n \"verficationFailureLabel\": \"Could not verify teacher profile as the ID entered is incorrect\"\n }\n ]\n }\n ]\n },\n \"created_on\": \"2023-04-17T13:11:28.220Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-28T05:42:12.162Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form will provide the label for custodian and logged user to use." + } + ], + "description": "Pre-launched forms are also the onboarding forms of the application. When a user visits the portal URL, the pre-launched forms are called.\n\n**They are mainly used to configure:**\n\n1. To exclude the onboarding popup\n2. Label names & define the framework categories\n3. Flag to show and hide the onboarding popup\n4. To set the different language JSON of the application\n5. To support different languages for translation\n6. UserType onboarding popup\n7. Board selection for the framework categories\n8. Location onboarding popup\n9. User feed data if user is custodian" + }, + { + "name": "Home Page Forms", + "item": [ + { + "name": "To configure homepage cateogory and label_O", + "item": [ + { + "name": "Form Create (category__homeListing__targetedCategory)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"category\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"targetedCategory\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"homeListing\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"category\",\n \"action\": \"homeListing\",\n \"subType\": \"targetedCategory\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"homeListing\",\n \"fields\": {\n \"cbse\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n },\n {\n \"name\": \"project\",\n \"icon\": {\n \"web\": \"\",\n \"app\": \"assets/imgs/ic_project.svg\"\n }\n }\n ]\n },\n \"ekstep_ncert_k-12\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n }\n ]\n },\n \"tn_k-12_5\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n }\n ]\n },\n \"cg_k-12\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n }\n ]\n },\n \"pb_k-12\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n }\n ]\n }\n }\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"fields\": An object containing field configurations.\n- \"cbse\": Represents the \"cbse\" attribute.\n- \"teacher\": Represents the \"teacher\" sub-attribute under \"cbse\".\n- The \"teacher\" sub-attribute contains an array of objects with different properties.\n- \"name\": Specifies the name of the teacher sub-attribute. In this case, there are two objects with names \"observation\" and \"project\".\n- \"icon\": An object that defines the icons associated with the teacher sub-attribute.\n- \"web\": Specifies the web URL or file path for the icon associated with the teacher sub-attribute.\n- \"app\": Specifies the app URL or file path for the icon associated with the teacher sub-attribute." + }, + "response": [] + }, + { + "name": "Form Read (category__homeListing__targetedCategory)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"category\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"targetedCategory\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"homeListing\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"category\",\n \"action\": \"homeListing\",\n \"subType\": \"targetedCategory\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (category__homeListing__targetedCategory)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"category\",\n \"action\": \"homeListing\",\n \"subType\": \"targetedCategory\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Tue, 27 Jun 2023 07:37:12 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "954" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29998" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"3ba-7Nwpap04CVxvAHMZslxfYaYtbSQ\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "14" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "7" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Tue, 27 Jun 2023 07:37:12 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"ba16fe3b-5b6e-40d3-baac-f245095e9407\",\n \"msgid\": \"4cc43922-b8d3-45ca-bd32-0761f311c438\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"category\",\n \"subtype\": \"targetedcategory\",\n \"action\": \"homelisting\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"fields\": {\n \"CBSE\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n }\n ]\n },\n \"NCF\": {\n \"teacher\": [\n {\n \"name\": \"observation\",\n \"icon\": {\n \"web\": \"assets/images/mask-image/observation_category.png\",\n \"app\": \"assets/imgs/ic_observation_category.png\"\n }\n },\n {\n \"name\": \"project\",\n \"icon\": {\n \"web\": \"\",\n \"app\": \"assets/imgs/ic_project.svg\"\n }\n },\n {\n \"name\": \"program\",\n \"icon\": {\n \"web\": \"\",\n \"app\": \"assets/imgs/ic_program.svg\"\n }\n }\n ]\n }\n }\n },\n \"created_on\": \"2023-05-29T10:53:04.720Z\",\n \"last_modified_on\": \"2023-06-21T11:58:00.517Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-27T07:37:12.101Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "**category__homeListing__targetedCategory_O**\n\nThe form configuration contains a category-based selection component with a targeted category subtype. The response data specifies different categories and their associated subcategories. The category and subcategory names are used as labels in the \"Browse Other Categories\" section of the component. In the Browse Other Categories section of the home page, the labels are given using this configuration.\n\nUsers can customize these labels to better suit their needs.\n\n\n\n**\\*Impact:** If this Form configuration is not used, the Browse Other Categories option will be removed from the home page" + }, + { + "name": "To show/hide the menu bar and tab in landing page section_M", + "item": [ + { + "name": "Form Create (contentcategory__menubar__global)_M", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + "", + " postman.setNextRequest('Form Read (contentcategory__menubar__global)_M');", + "} " + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"contentcategory\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"menubar\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"contentcategory\",\n \"action\": \"menubar\",\n \"subType\": \"global\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"action\": \"list\",\n \"fields\": [\n {\n \"index\": 0,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"medium\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"organisation\",\n \"topic\",\n \"mimeType\",\n \"trackable\",\n \"gradeLevel\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\"\n ],\n \"facets\": [\n \"subject\",\n \"primaryCategory\",\n \"medium\",\n \"banner\",\n \"additionalCategories\",\n \"search\",\n \"ContinueLearning\"\n ],\n \"filters\": {\n \"medium\": [],\n \"gradeLevel\": [],\n \"audience\": [],\n \"board\": [],\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\",\n \"Course\"\n ],\n \"channel\": [],\n \"subject\": []\n }\n },\n \"contentType\": \"home\",\n \"title\": \"frmelmnts.lbl.home\",\n \"default\": true,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"home\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"home\"\n },\n \"filter\": {\n \"isEnabled\": false,\n \"type\": \"facet\"\n },\n \"theme\": {\n \"className\": \"home\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"courses-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.lbl.home\",\n \"isOnlineOnly\": true,\n \"sections\": [\n {\n \"index\": 4,\n \"apiConfig\": {\n \"url\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"lastPublishedOn\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"contentType\": [\n \"Course\"\n ],\n \"batches.status\": [\n 1\n ],\n \"se_gradeLevels\": [\n \"Class 1\",\n \"Class 2\",\n \"Class 5\"\n ],\n \"batches.enrollmentType\": \"open\",\n \"se_mediums\": [\n \"English\",\n \"Tamil\"\n ],\n \"se_boards\": [\n \"State (Tamil Nadu)\"\n ],\n \"primaryCategory\": [\n \"Course\"\n ]\n },\n \"sort_by\": {\n \"lastPublishedOn\": \"desc\"\n }\n }\n },\n \"params\": \"\",\n \"sortBy\": \"lastPublishedOn\",\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.recentlyPublishedCourses\",\n \"isEnabled\": true,\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 0,\n \"facetKey\": \"ContinueLearning\",\n \"title\": \"Continue Learning\",\n \"isEnabled\": true,\n \"desc\": \"Continue Learning\"\n },\n {\n \"index\": 5,\n \"apiConfig\": {\n \"url\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"lastPublishedOn\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"primaryCategory\": [\n \"Course\",\n \"Digital Textbook\"\n ],\n \"channel\": \"01329314824202649627\"\n },\n \"sort_by\": {\n \"lastPublishedOn\": \"desc\"\n }\n }\n },\n \"params\": \"\",\n \"sortBy\": \"lastPublishedOn\",\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.fromncert\",\n \"isEnabled\": true,\n \"defaultTitle\": \"From NCERT\",\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 3,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"se_gradeLevels\": [\n \"Class 4\"\n ],\n \"audience\": [],\n \"se_mediums\": [\n \"English\"\n ],\n \"se_boards\": [\n \"State (Tamil Nadu)\"\n ],\n \"primaryCategory\": [\n \"Digital Textbook\"\n ],\n \"channel\": [],\n \"subject\": []\n }\n }\n },\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.search\",\n \"isEnabled\": true,\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 2,\n \"facetKey\": \"banner\",\n \"title\": \"frmelmnts.lbl.bannerTitle\",\n \"isEnabled\": true,\n \"desc\": \"Section for Banner\"\n },\n {\n \"index\": 1,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.subject\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/explore-course\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": true,\n \"title\": \"frmelmnts.lbl.subjects\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"landing\": {\n \"description\": \"frmelmnts.lbl.exploredescription\",\n \"title\": \"frmelmnts.lbl.exploretitle\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,139,46,1)\",\n \"secondary\": \"rgba(255,139,46,0.3)\"\n },\n {\n \"primary\": \"rgba(163,99,255,1)\",\n \"secondary\": \"rgba(163,99,255,0.3)\"\n },\n {\n \"primary\": \"rgba(34,139,255,1)\",\n \"secondary\": \"rgba(34,139,255,0.3)\"\n },\n {\n \"primary\": \"rgba(95,192,32,1)\",\n \"secondary\": \"rgba(95,192,32,0.3)\"\n },\n {\n \"primary\": \"rgba(255,128,47,1)\",\n \"secondary\": \"rgba(255,128,47,0.3)\"\n },\n {\n \"primary\": \"rgba(251,70,70,1)\",\n \"secondary\": \"rgba(251,70,70,0.3)\"\n },\n {\n \"primary\": \"rgba(83,109,252,1)\",\n \"secondary\": \"rgba(83,109,252,0.3)\"\n },\n {\n \"primary\": \"rgba(15,186,208,1)\",\n \"secondary\": \"rgba(15,186,208,0.3)\"\n }\n ],\n \"infiniteCard\": false,\n \"icons\": {\n \"default\": \"assets/images/book_default.svg\",\n \"science\": \"assets/images/globe.svg\",\n \"english\": \"assets/images/book_english.svg\",\n \"mathematics\": \"assets/images/calculator.svg\"\n }\n },\n \"facetKey\": \"subject\",\n \"desc\": \"Section for subjects\"\n },\n {\n \"index\": 6,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.primaryCategory\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/explore-course\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": true,\n \"search\": {\n \"facets\": [\n \"se_boards\",\n \"se_gradeLevels\",\n \"se_subjects\",\n \"se_mediums\",\n \"primaryCategory\",\n \"additionalCategories\"\n ]\n },\n \"title\": \"frmelmnts.lbl.dscfrmctgries\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"landing\": {\n \"description\": \"frmelmnts.lbl.exploredescription\",\n \"title\": \"frmelmnts.lbl.exploretitle\"\n },\n \"filter\": {\n \"additionalCategories\": [\n \"tv lesson\"\n ],\n \"primaryCategory\": [\n \"course\",\n \"digital textbook\",\n \"etextbook\"\n ]\n },\n \"merge\": {\n \"source\": \"primaryCategory\",\n \"destination\": \"additionalCategories\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,255,255,1)\",\n \"secondary\": \"rgba(255,255,255,1)\"\n }\n ],\n \"infiniteCard\": false,\n \"icons\": {\n \"digital textbooks\": \"assets/images/textbook.svg\",\n \"documents\": \"assets/images/documents.svg\",\n \"videos\": \"assets/images/videos.svg\",\n \"default\": \"assets/images/all_content.svg\",\n \"courses\": \"assets/images/course.svg\",\n \"tv programs\": \"assets/images/tv.svg\"\n }\n },\n \"facetKey\": \"primaryCategory\",\n \"desc\": \"Section for category\"\n },\n {\n \"index\": 7,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.medium\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/home\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": false,\n \"title\": \"frmelmnts.lbl.medium\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,139,46,1)\",\n \"secondary\": \"rgba(255,139,46,0.3)\"\n },\n {\n \"primary\": \"rgba(163,99,255,1)\",\n \"secondary\": \"rgba(163,99,255,0.3)\"\n },\n {\n \"primary\": \"rgba(34,139,255,1)\",\n \"secondary\": \"rgba(34,139,255,0.3)\"\n },\n {\n \"primary\": \"rgba(95,192,32,1)\",\n \"secondary\": \"rgba(95,192,32,0.3)\"\n },\n {\n \"primary\": \"rgba(255,128,47,1)\",\n \"secondary\": \"rgba(255,128,47,0.3)\"\n },\n {\n \"primary\": \"rgba(251,70,70,1)\",\n \"secondary\": \"rgba(251,70,70,0.3)\"\n },\n {\n \"primary\": \"rgba(83,109,252,1)\",\n \"secondary\": \"rgba(83,109,252,0.3)\"\n },\n {\n \"primary\": \"rgba(15,186,208,1)\",\n \"secondary\": \"rgba(15,186,208,0.3)\"\n }\n ],\n \"infiniteCard\": false\n },\n \"facetKey\": \"medium\",\n \"desc\": \"Section for medium\"\n }\n ],\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [\n \"CBSE\"\n ],\n \"gradeLevel\": [\n \"Class 10\"\n ]\n },\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\"\n ]\n }\n },\n {\n \"index\": 1,\n \"search\": {\n \"fields\": [\n \"audience\",\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"creator\"\n ],\n \"facets\": [\n \"audience\",\n \"se_subjects\",\n \"organisation\",\n \"creator\"\n ],\n \"filters\": {\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\"\n ]\n }\n },\n \"contentType\": \"textbook\",\n \"title\": \"frmelmnts.lbl.textbooks\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"textbook\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"textbook\"\n },\n \"theme\": {\n \"className\": \"textbooks\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"textbooks-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.lbl.textbooks\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [],\n \"gradeLevel\": []\n },\n \"cacheTimeout\": 86400000,\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\",\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"searchFilterConfig\": [\n {\n \"category\": \"board\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectBoard\",\n \"defaultPlaceholderText\": \"select board\",\n \"dataSource\": \"framework\",\n \"multiple\": false\n },\n {\n \"category\": \"medium\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectMedium\",\n \"defaultPlaceholderText\": \"select medium\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"gradeLevel\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectClass\",\n \"defaultPlaceholderText\": \"select grade\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"subject\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectSubject\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"select subject\",\n \"multiple\": true\n },\n {\n \"category\": \"audience\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"Select User Type\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"Select User Type\",\n \"multiple\": true\n },\n {\n \"category\": \"creator\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"Select Creator\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select creator\",\n \"multiple\": true\n }\n ]\n }\n },\n {\n \"index\": 2,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\"\n ],\n \"facets\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"primaryCategory\",\n \"mimeType\",\n \"publisher\",\n \"audience\"\n ],\n \"filters\": {\n \"mimeType\": [\n {\n \"values\": [\n \"application/vnd.ekstep.ecml-archive\",\n \"application/vnd.sunbird.questionset\",\n \"application/vnd.ekstep.html-archive\",\n \"application/vnd.android.package-archive\",\n \"application/vnd.ekstep.content-archive\",\n \"application/vnd.ekstep.content-collection\",\n \"application/vnd.ekstep.plugin-archive\",\n \"application/vnd.ekstep.h5p-archive\",\n \"application/epub\",\n \"text/x-url\",\n \"video/x-youtube\",\n \"application/octet-stream\",\n \"application/msword\",\n \"application/pdf\",\n \"image/jpeg\",\n \"image/jpg\",\n \"image/png\",\n \"image/tiff\",\n \"image/bmp\",\n \"image/gif\",\n \"image/svg+xml\",\n \"video/avi\",\n \"video/mpeg\",\n \"video/quicktime\",\n \"video/3gpp\",\n \"video/mpeg\",\n \"video/mp4\",\n \"video/ogg\",\n \"video/webm\",\n \"audio/mp3\",\n \"audio/mp4\",\n \"audio/mpeg\",\n \"audio/ogg\",\n \"audio/webm\",\n \"audio/x-wav\",\n \"audio/wav\"\n ],\n \"name\": \"all\"\n },\n {\n \"values\": [\n \"video/avi\",\n \"video/mpeg\",\n \"video/quicktime\",\n \"video/3gpp\",\n \"video/mpeg\",\n \"video/mp4\",\n \"video/ogg\",\n \"video/webm\"\n ],\n \"name\": \"video\"\n },\n {\n \"values\": [\n \"application/pdf\",\n \"application/epub\",\n \"application/msword\"\n ],\n \"name\": \"documents\"\n },\n {\n \"values\": [\n \"application/vnd.ekstep.ecml-archive\",\n \"application/vnd.ekstep.h5p-archive\",\n \"application/vnd.ekstep.html-archive\"\n ],\n \"name\": \"interactive\"\n },\n {\n \"values\": [\n \"audio/mp3\",\n \"audio/mp4\",\n \"audio/mpeg\",\n \"audio/ogg\",\n \"audio/webm\",\n \"audio/x-wav\",\n \"audio/wav\"\n ],\n \"name\": \"audio\"\n }\n ],\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\"\n ]\n }\n },\n \"contentType\": \"mydownloads\",\n \"title\": \"frmelmnts.lbl.desktop.mylibrary\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/mydownloads\",\n \"queryParam\": \"mydownloads\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/mydownloads\",\n \"queryParam\": \"mydownloads\"\n },\n \"theme\": {\n \"className\": \"myDownloads\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"textbooks-banner-img.svg\"\n },\n \"isOnlineOnly\": false,\n \"menuType\": \"Content\",\n \"desc\": \"frmelmnts.lbl.desktop.mylibrary\"\n },\n {\n \"index\": 3,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"creator\"\n ],\n \"facets\": [\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"contentType\": [\n \"Course\"\n ],\n \"primaryCategory\": [\n \"Course\",\n \"Course Assessment\"\n ]\n }\n },\n \"contentType\": \"course\",\n \"title\": \"frmelmnts.tab.courses\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"course\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"course\"\n },\n \"theme\": {\n \"className\": \"courses\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"courses-banner-img.svg\"\n },\n \"batchEndCounter\": 4,\n \"desc\": \"frmelmnts.tab.courses\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [\n \"CBSE\"\n ],\n \"gradeLevel\": [\n \"Class 10\"\n ]\n },\n \"cacheTimeout\": 86400000,\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\",\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"searchFilterConfig\": [\n {\n \"category\": \"board\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.boards\",\n \"defaultLabelText\": \"board\",\n \"placeholderText\": \"frmelmnts.lbl.selectBoard\",\n \"defaultPlaceholderText\": \"select board\",\n \"dataSource\": \"framework\",\n \"multiple\": false\n },\n {\n \"category\": \"medium\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.medium\",\n \"defaultLabelText\": \"medium\",\n \"placeholderText\": \"frmelmnts.lbl.selectMedium\",\n \"defaultPlaceholderText\": \"select medium\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"gradeLevel\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.class\",\n \"defaultLabelText\": \"grade\",\n \"placeholderText\": \"frmelmnts.lbl.selectClass\",\n \"defaultPlaceholderText\": \"select grade\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"subject\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.subject\",\n \"defaultLabelText\": \"subject\",\n \"placeholderText\": \"frmelmnts.lbl.selectSubject\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"select subject\",\n \"multiple\": true\n },\n {\n \"category\": \"audience\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.publishedUserType\",\n \"defaultLabelText\": \"audience\",\n \"placeholderText\": \"Select User Type\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"Select User Type\",\n \"multiple\": true\n },\n {\n \"category\": \"creator\",\n \"type\": \"dropdown\",\n \"labelText\": \"Creator\",\n \"defaultLabelText\": \"creator\",\n \"placeholderText\": \"Select Creator\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select creator\",\n \"multiple\": true\n },\n {\n \"category\": \"organisation\",\n \"type\": \"dropdown\",\n \"labelText\": \"Organisation\",\n \"defaultLabelText\": \"org\",\n \"placeholderText\": \"Select Organisation\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select org\",\n \"multiple\": true\n }\n ]\n }\n },\n {\n \"index\": 4,\n \"contentType\": \"observation\",\n \"anonumousUserRoute\": {\n \"route\": \"/observation\",\n \"queryParam\": \"observation\"\n },\n \"isLoginMandatory\": true,\n \"isEnabled\": true,\n \"title\": \"frmelmnts.lbl.observation\",\n \"loggedInUserRoute\": {\n \"route\": \"/observation\",\n \"queryParam\": \"observation\"\n },\n \"theme\": {\n \"className\": \"tests\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"observation.svg\"\n },\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"desc\": \"frmelmnts.lbl.observation\"\n },\n {\n \"index\": 5,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\"\n ],\n \"facets\": [\n \"se_boards\",\n \"se_gradeLevels\",\n \"se_subjects\",\n \"se_mediums\",\n \"primaryCategory\",\n \"mediaType\",\n \"mimeType\"\n ],\n \"filters\": {\n \"primaryCategory\": [\n \"Collection\",\n \"Resource\",\n \"Content Playlist\",\n \"Course\",\n \"Course Assessment\",\n \"Digital Textbook\",\n \"eTextbook\",\n \"Explanation Content\",\n \"Learning Resource\",\n \"Lesson Plan Unit\",\n \"Practice Question Set\",\n \"Teacher Resource\",\n \"Textbook Unit\",\n \"LessonPlan\",\n \"FocusSpot\",\n \"Learning Outcome Definition\",\n \"Curiosity Questions\",\n \"MarkingSchemeRubric\",\n \"ExplanationResource\",\n \"ExperientialResource\",\n \"Practice Resource\",\n \"TVLesson\",\n \"Course Unit\",\n \"Exam Question\",\n \"Question paper\"\n ],\n \"visibility\": [\n \"Default\",\n \"Parent\"\n ]\n }\n },\n \"contentType\": \"all\",\n \"title\": \"frmelmnts.tab.all\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore/1\",\n \"queryParam\": \"all\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/search/Library/1\",\n \"queryParam\": \"all\"\n },\n \"theme\": {\n \"className\": \"all\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"all-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.tab.all\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"cacheTimeout\": 3600000\n }\n }\n ],\n \"templateName\": \"menuConfig\"\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"fields\": An array that specifies the fields to be included in the search.\n- \"index\": An index value associated with the search.\n- \"search\": An object containing the search settings and configurations.\n- \"contentType\": Specifies the type of content for the search.\n- \"title\": The title or label associated with the search.\n- \"default\": Indicates whether this search configuration is the default option.\n- \"isEnabled\": Specifies whether the search functionality is enabled.\n- \"anonymousUserRoute\": Specifies the route and query parameter for anonymous users.\n- \"loggedInUserRoute\": Specifies the route and query parameter for logged-in users.\n- \"filter\": Specifies the filter settings for the search.\n- \"theme\": Defines the visual theme or styling for the search.\n- \"desc\": A description or label associated with the search.\n- \"metaData\": Contains the metadata . It also contains the **searchFilterConfig** which helps in customising the search filter for the respective tab" + }, + "response": [] + }, + { + "name": "Form Read (contentcategory__menubar__global)_M", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"contentcategory\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"global\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"menubar\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + "", + " postman.setNextRequest('Form Create (schemas__get__search)_M');", + "} " + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"contentcategory\",\n \"action\": \"menubar\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (contentcategory__menubar__global)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"contentcategory\",\n \"action\": \"menubar\",\n \"subType\": \"global\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 07:34:44 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "16044" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29995" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"3eac-axUEH0oaT71Ql8lDeZlGdu3h4ig\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "25" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "10" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 07:34:44 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"4c001294-8df3-4434-a61c-ab63b7d81fea\",\n \"msgid\": \"5cd65dd6-efaa-4df7-bf32-0b9f4a983f19\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"contentcategory\",\n \"subtype\": \"global\",\n \"action\": \"menubar\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"action\": \"list\",\n \"fields\": [\n {\n \"index\": 0,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"medium\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"organisation\",\n \"topic\",\n \"mimeType\",\n \"trackable\",\n \"gradeLevel\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\"\n ],\n \"facets\": [\n \"subject\",\n \"primaryCategory\",\n \"medium\",\n \"banner\",\n \"additionalCategories\",\n \"search\",\n \"ContinueLearning\"\n ],\n \"filters\": {\n \"medium\": [],\n \"gradeLevel\": [],\n \"audience\": [],\n \"board\": [],\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\",\n \"Course\"\n ],\n \"channel\": [],\n \"subject\": []\n }\n },\n \"contentType\": \"home\",\n \"title\": \"frmelmnts.lbl.home\",\n \"default\": true,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"home\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"home\"\n },\n \"filter\": {\n \"isEnabled\": false,\n \"type\": \"facet\"\n },\n \"theme\": {\n \"className\": \"home\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"courses-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.lbl.home\",\n \"isOnlineOnly\": true,\n \"sections\": [\n {\n \"index\": 4,\n \"apiConfig\": {\n \"url\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"lastPublishedOn\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"contentType\": [\n \"Course\"\n ],\n \"batches.status\": [\n 1\n ],\n \"se_gradeLevels\": [\n \"Class 1\",\n \"Class 2\",\n \"Class 5\"\n ],\n \"batches.enrollmentType\": \"open\",\n \"se_mediums\": [\n \"English\",\n \"Tamil\"\n ],\n \"se_boards\": [\n \"State (Tamil Nadu)\"\n ],\n \"primaryCategory\": [\n \"Course\"\n ]\n },\n \"sort_by\": {\n \"lastPublishedOn\": \"desc\"\n }\n }\n },\n \"params\": \"\",\n \"sortBy\": \"lastPublishedOn\",\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.recentlyPublishedCourses\",\n \"isEnabled\": true,\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 0,\n \"facetKey\": \"ContinueLearning\",\n \"title\": \"Continue Learning\",\n \"isEnabled\": true,\n \"desc\": \"Continue Learning\"\n },\n {\n \"index\": 5,\n \"apiConfig\": {\n \"url\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"lastPublishedOn\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"primaryCategory\": [\n \"Course\",\n \"Digital Textbook\"\n ],\n \"channel\": \"01329314824202649627\"\n },\n \"sort_by\": {\n \"lastPublishedOn\": \"desc\"\n }\n }\n },\n \"params\": \"\",\n \"sortBy\": \"lastPublishedOn\",\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.fromncert\",\n \"isEnabled\": true,\n \"defaultTitle\": \"From NCERT\",\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 3,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {\n \"request\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\"\n ],\n \"facets\": [\n \"se_subjects\"\n ],\n \"limit\": 100,\n \"filters\": {\n \"se_gradeLevels\": [\n \"Class 4\"\n ],\n \"audience\": [],\n \"se_mediums\": [\n \"English\"\n ],\n \"se_boards\": [\n \"State (Tamil Nadu)\"\n ],\n \"primaryCategory\": [\n \"Digital Textbook\"\n ],\n \"channel\": [],\n \"subject\": []\n }\n }\n },\n \"contextKey\": \"res.facet.search\",\n \"method\": \"\"\n },\n \"title\": \"frmelmnts.lbl.search\",\n \"isEnabled\": true,\n \"facetKey\": \"search\",\n \"desc\": \"Section for Searched contents\"\n },\n {\n \"index\": 2,\n \"facetKey\": \"banner\",\n \"title\": \"frmelmnts.lbl.bannerTitle\",\n \"isEnabled\": true,\n \"desc\": \"Section for Banner\"\n },\n {\n \"index\": 1,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.subject\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/explore-course\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": true,\n \"title\": \"frmelmnts.lbl.subjects\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"landing\": {\n \"description\": \"frmelmnts.lbl.exploredescription\",\n \"title\": \"frmelmnts.lbl.exploretitle\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,139,46,1)\",\n \"secondary\": \"rgba(255,139,46,0.3)\"\n },\n {\n \"primary\": \"rgba(163,99,255,1)\",\n \"secondary\": \"rgba(163,99,255,0.3)\"\n },\n {\n \"primary\": \"rgba(34,139,255,1)\",\n \"secondary\": \"rgba(34,139,255,0.3)\"\n },\n {\n \"primary\": \"rgba(95,192,32,1)\",\n \"secondary\": \"rgba(95,192,32,0.3)\"\n },\n {\n \"primary\": \"rgba(255,128,47,1)\",\n \"secondary\": \"rgba(255,128,47,0.3)\"\n },\n {\n \"primary\": \"rgba(251,70,70,1)\",\n \"secondary\": \"rgba(251,70,70,0.3)\"\n },\n {\n \"primary\": \"rgba(83,109,252,1)\",\n \"secondary\": \"rgba(83,109,252,0.3)\"\n },\n {\n \"primary\": \"rgba(15,186,208,1)\",\n \"secondary\": \"rgba(15,186,208,0.3)\"\n }\n ],\n \"infiniteCard\": false,\n \"icons\": {\n \"default\": \"assets/images/book_default.svg\",\n \"science\": \"assets/images/globe.svg\",\n \"english\": \"assets/images/book_english.svg\",\n \"mathematics\": \"assets/images/calculator.svg\"\n }\n },\n \"facetKey\": \"subject\",\n \"desc\": \"Section for subjects\"\n },\n {\n \"index\": 6,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.primaryCategory\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/explore-course\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": true,\n \"search\": {\n \"facets\": [\n \"se_boards\",\n \"se_gradeLevels\",\n \"se_subjects\",\n \"se_mediums\",\n \"primaryCategory\",\n \"additionalCategories\"\n ]\n },\n \"title\": \"frmelmnts.lbl.dscfrmctgries\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"landing\": {\n \"description\": \"frmelmnts.lbl.exploredescription\",\n \"title\": \"frmelmnts.lbl.exploretitle\"\n },\n \"filter\": {\n \"additionalCategories\": [\n \"tv lesson\"\n ],\n \"primaryCategory\": [\n \"course\",\n \"digital textbook\",\n \"etextbook\"\n ]\n },\n \"merge\": {\n \"source\": \"primaryCategory\",\n \"destination\": \"additionalCategories\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,255,255,1)\",\n \"secondary\": \"rgba(255,255,255,1)\"\n }\n ],\n \"infiniteCard\": false,\n \"icons\": {\n \"digital textbooks\": \"assets/images/textbook.svg\",\n \"documents\": \"assets/images/documents.svg\",\n \"videos\": \"assets/images/videos.svg\",\n \"default\": \"assets/images/all_content.svg\",\n \"courses\": \"assets/images/course.svg\",\n \"tv programs\": \"assets/images/tv.svg\"\n }\n },\n \"facetKey\": \"primaryCategory\",\n \"desc\": \"Section for category\"\n },\n {\n \"index\": 7,\n \"apiConfig\": {\n \"url\": \"\",\n \"params\": \"\",\n \"req\": {},\n \"contextKey\": \"res.facet.medium\",\n \"method\": \"\"\n },\n \"anonumousUserRoute\": {\n \"route\": \"/home\",\n \"queryParam\": \"course\"\n },\n \"isEnabled\": false,\n \"title\": \"frmelmnts.lbl.medium\",\n \"loggedInUserRoute\": {\n \"route\": \"/learn\",\n \"queryParam\": \"course\"\n },\n \"theme\": {\n \"component\": \"sb-pills-grid\",\n \"limit\": 10,\n \"colorMapping\": [\n {\n \"primary\": \"rgba(255,139,46,1)\",\n \"secondary\": \"rgba(255,139,46,0.3)\"\n },\n {\n \"primary\": \"rgba(163,99,255,1)\",\n \"secondary\": \"rgba(163,99,255,0.3)\"\n },\n {\n \"primary\": \"rgba(34,139,255,1)\",\n \"secondary\": \"rgba(34,139,255,0.3)\"\n },\n {\n \"primary\": \"rgba(95,192,32,1)\",\n \"secondary\": \"rgba(95,192,32,0.3)\"\n },\n {\n \"primary\": \"rgba(255,128,47,1)\",\n \"secondary\": \"rgba(255,128,47,0.3)\"\n },\n {\n \"primary\": \"rgba(251,70,70,1)\",\n \"secondary\": \"rgba(251,70,70,0.3)\"\n },\n {\n \"primary\": \"rgba(83,109,252,1)\",\n \"secondary\": \"rgba(83,109,252,0.3)\"\n },\n {\n \"primary\": \"rgba(15,186,208,1)\",\n \"secondary\": \"rgba(15,186,208,0.3)\"\n }\n ],\n \"infiniteCard\": false\n },\n \"facetKey\": \"medium\",\n \"desc\": \"Section for medium\"\n }\n ],\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [\n \"CBSE\"\n ],\n \"gradeLevel\": [\n \"Class 10\"\n ]\n },\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\"\n ]\n }\n },\n {\n \"index\": 1,\n \"search\": {\n \"fields\": [\n \"audience\",\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"creator\"\n ],\n \"facets\": [\n \"audience\",\n \"se_subjects\",\n \"organisation\",\n \"creator\"\n ],\n \"filters\": {\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\"\n ]\n }\n },\n \"contentType\": \"textbook\",\n \"title\": \"frmelmnts.lbl.textbooks\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"textbook\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"textbook\"\n },\n \"theme\": {\n \"className\": \"textbooks\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"textbooks-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.lbl.textbooks\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [],\n \"gradeLevel\": []\n },\n \"cacheTimeout\": 86400000,\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\",\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"searchFilterConfig\": [\n {\n \"category\": \"board\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectBoard\",\n \"defaultPlaceholderText\": \"select board\",\n \"dataSource\": \"framework\",\n \"multiple\": false\n },\n {\n \"category\": \"medium\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectMedium\",\n \"defaultPlaceholderText\": \"select medium\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"gradeLevel\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectClass\",\n \"defaultPlaceholderText\": \"select grade\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"subject\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"frmelmnts.lbl.selectSubject\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"select subject\",\n \"multiple\": true\n },\n {\n \"category\": \"audience\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"Select User Type\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"Select User Type\",\n \"multiple\": true\n },\n {\n \"category\": \"creator\",\n \"type\": \"dropdown\",\n \"placeholderText\": \"Select Creator\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select creator\",\n \"multiple\": true\n }\n ]\n }\n },\n {\n \"index\": 2,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\"\n ],\n \"facets\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"primaryCategory\",\n \"mimeType\",\n \"publisher\",\n \"audience\"\n ],\n \"filters\": {\n \"mimeType\": [\n {\n \"values\": [\n \"application/vnd.ekstep.ecml-archive\",\n \"application/vnd.sunbird.questionset\",\n \"application/vnd.ekstep.html-archive\",\n \"application/vnd.android.package-archive\",\n \"application/vnd.ekstep.content-archive\",\n \"application/vnd.ekstep.content-collection\",\n \"application/vnd.ekstep.plugin-archive\",\n \"application/vnd.ekstep.h5p-archive\",\n \"application/epub\",\n \"text/x-url\",\n \"video/x-youtube\",\n \"application/octet-stream\",\n \"application/msword\",\n \"application/pdf\",\n \"image/jpeg\",\n \"image/jpg\",\n \"image/png\",\n \"image/tiff\",\n \"image/bmp\",\n \"image/gif\",\n \"image/svg+xml\",\n \"video/avi\",\n \"video/mpeg\",\n \"video/quicktime\",\n \"video/3gpp\",\n \"video/mpeg\",\n \"video/mp4\",\n \"video/ogg\",\n \"video/webm\",\n \"audio/mp3\",\n \"audio/mp4\",\n \"audio/mpeg\",\n \"audio/ogg\",\n \"audio/webm\",\n \"audio/x-wav\",\n \"audio/wav\"\n ],\n \"name\": \"all\"\n },\n {\n \"values\": [\n \"video/avi\",\n \"video/mpeg\",\n \"video/quicktime\",\n \"video/3gpp\",\n \"video/mpeg\",\n \"video/mp4\",\n \"video/ogg\",\n \"video/webm\"\n ],\n \"name\": \"video\"\n },\n {\n \"values\": [\n \"application/pdf\",\n \"application/epub\",\n \"application/msword\"\n ],\n \"name\": \"documents\"\n },\n {\n \"values\": [\n \"application/vnd.ekstep.ecml-archive\",\n \"application/vnd.ekstep.h5p-archive\",\n \"application/vnd.ekstep.html-archive\"\n ],\n \"name\": \"interactive\"\n },\n {\n \"values\": [\n \"audio/mp3\",\n \"audio/mp4\",\n \"audio/mpeg\",\n \"audio/ogg\",\n \"audio/webm\",\n \"audio/x-wav\",\n \"audio/wav\"\n ],\n \"name\": \"audio\"\n }\n ],\n \"primaryCategory\": [\n \"Digital Textbook\",\n \"eTextbook\"\n ]\n }\n },\n \"contentType\": \"mydownloads\",\n \"title\": \"frmelmnts.lbl.desktop.mylibrary\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/mydownloads\",\n \"queryParam\": \"mydownloads\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/mydownloads\",\n \"queryParam\": \"mydownloads\"\n },\n \"theme\": {\n \"className\": \"myDownloads\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"textbooks-banner-img.svg\"\n },\n \"isOnlineOnly\": false,\n \"menuType\": \"Content\",\n \"desc\": \"frmelmnts.lbl.desktop.mylibrary\"\n },\n {\n \"index\": 3,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_gradeLevels\",\n \"creator\"\n ],\n \"facets\": [\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"filters\": {\n \"status\": [\n \"Live\"\n ],\n \"contentType\": [\n \"Course\"\n ],\n \"primaryCategory\": [\n \"Course\",\n \"Course Assessment\"\n ]\n }\n },\n \"contentType\": \"course\",\n \"title\": \"frmelmnts.tab.courses\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore\",\n \"queryParam\": \"course\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/resources\",\n \"queryParam\": \"course\"\n },\n \"theme\": {\n \"className\": \"courses\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"courses-banner-img.svg\"\n },\n \"batchEndCounter\": 4,\n \"desc\": \"frmelmnts.tab.courses\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"defaultFilters\": {\n \"medium\": [],\n \"board\": [\n \"CBSE\"\n ],\n \"gradeLevel\": [\n \"Class 10\"\n ]\n },\n \"cacheTimeout\": 86400000,\n \"groupByKey\": \"subject\",\n \"filters\": [\n \"board\",\n \"gradeLevel\",\n \"subject\",\n \"medium\",\n \"publisher\",\n \"audience\",\n \"channel\",\n \"se_subjects\",\n \"creator\",\n \"organisation\"\n ],\n \"searchFilterConfig\": [\n {\n \"category\": \"board\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.boards\",\n \"defaultLabelText\": \"board\",\n \"placeholderText\": \"frmelmnts.lbl.selectBoard\",\n \"defaultPlaceholderText\": \"select board\",\n \"dataSource\": \"framework\",\n \"multiple\": false\n },\n {\n \"category\": \"medium\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.medium\",\n \"defaultLabelText\": \"medium\",\n \"placeholderText\": \"frmelmnts.lbl.selectMedium\",\n \"defaultPlaceholderText\": \"select medium\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"gradeLevel\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.class\",\n \"defaultLabelText\": \"grade\",\n \"placeholderText\": \"frmelmnts.lbl.selectClass\",\n \"defaultPlaceholderText\": \"select grade\",\n \"dataSource\": \"framework\",\n \"multiple\": true\n },\n {\n \"category\": \"subject\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.subject\",\n \"defaultLabelText\": \"subject\",\n \"placeholderText\": \"frmelmnts.lbl.selectSubject\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"select subject\",\n \"multiple\": true\n },\n {\n \"category\": \"audience\",\n \"type\": \"dropdown\",\n \"labelText\": \"frmelmnts.lbl.publishedUserType\",\n \"defaultLabelText\": \"audience\",\n \"placeholderText\": \"Select User Type\",\n \"dataSource\": \"framework\",\n \"defaultPlaceholderText\": \"Select User Type\",\n \"multiple\": true\n },\n {\n \"category\": \"creator\",\n \"type\": \"dropdown\",\n \"labelText\": \"Creator\",\n \"defaultLabelText\": \"creator\",\n \"placeholderText\": \"Select Creator\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select creator\",\n \"multiple\": true\n },\n {\n \"category\": \"organisation\",\n \"type\": \"dropdown\",\n \"labelText\": \"Organisation\",\n \"defaultLabelText\": \"org\",\n \"placeholderText\": \"Select Organisation\",\n \"dataSource\": \"facet\",\n \"defaultPlaceholderText\": \"Select org\",\n \"multiple\": true\n }\n ]\n }\n },\n {\n \"index\": 4,\n \"contentType\": \"observation\",\n \"anonumousUserRoute\": {\n \"route\": \"/observation\",\n \"queryParam\": \"observation\"\n },\n \"isLoginMandatory\": true,\n \"isEnabled\": true,\n \"title\": \"frmelmnts.lbl.observation\",\n \"loggedInUserRoute\": {\n \"route\": \"/observation\",\n \"queryParam\": \"observation\"\n },\n \"theme\": {\n \"className\": \"tests\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"observation.svg\"\n },\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"desc\": \"frmelmnts.lbl.observation\"\n },\n {\n \"index\": 5,\n \"search\": {\n \"fields\": [\n \"name\",\n \"appIcon\",\n \"mimeType\",\n \"gradeLevel\",\n \"identifier\",\n \"medium\",\n \"pkgVersion\",\n \"board\",\n \"subject\",\n \"resourceType\",\n \"primaryCategory\",\n \"contentType\",\n \"channel\",\n \"organisation\",\n \"trackable\"\n ],\n \"facets\": [\n \"se_boards\",\n \"se_gradeLevels\",\n \"se_subjects\",\n \"se_mediums\",\n \"primaryCategory\",\n \"mediaType\",\n \"mimeType\"\n ],\n \"filters\": {\n \"primaryCategory\": [\n \"Collection\",\n \"Resource\",\n \"Content Playlist\",\n \"Course\",\n \"Course Assessment\",\n \"Digital Textbook\",\n \"eTextbook\",\n \"Explanation Content\",\n \"Learning Resource\",\n \"Lesson Plan Unit\",\n \"Practice Question Set\",\n \"Teacher Resource\",\n \"Textbook Unit\",\n \"LessonPlan\",\n \"FocusSpot\",\n \"Learning Outcome Definition\",\n \"Curiosity Questions\",\n \"MarkingSchemeRubric\",\n \"ExplanationResource\",\n \"ExperientialResource\",\n \"Practice Resource\",\n \"TVLesson\",\n \"Course Unit\",\n \"Exam Question\",\n \"Question paper\"\n ],\n \"visibility\": [\n \"Default\",\n \"Parent\"\n ]\n }\n },\n \"contentType\": \"all\",\n \"title\": \"frmelmnts.tab.all\",\n \"isLoginMandatory\": false,\n \"isEnabled\": true,\n \"anonumousUserRoute\": {\n \"route\": \"/explore/1\",\n \"queryParam\": \"all\"\n },\n \"loggedInUserRoute\": {\n \"route\": \"/search/Library/1\",\n \"queryParam\": \"all\"\n },\n \"theme\": {\n \"className\": \"all\",\n \"baseColor\": \"\",\n \"textColor\": \"\",\n \"supportingColor\": \"\",\n \"imageName\": \"all-banner-img.svg\"\n },\n \"desc\": \"frmelmnts.tab.all\",\n \"isOnlineOnly\": true,\n \"menuType\": \"Content\",\n \"metaData\": {\n \"cacheTimeout\": 3600000\n }\n }\n ],\n \"templateName\": \"menuConfig\"\n },\n \"created_on\": \"2023-03-07T05:52:36.247Z\",\n \"last_modified_on\": \"2023-04-27T05:46:02.823Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T07:34:44.417Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form:\n\n- Displays or hides the menu bar and tab within the landing page section\n- Incorporates the filter configurations that are based on the selected tab\n \n\n\"\"\n\n**\\*Impact:**  If this form is not used, the menu bar is removed on the home page and the user cannot perform any action or navigate anywhere in the application.\n\n" + }, + { + "name": "To configure banner and notification in home page_O", + "item": [ + { + "name": "Form Create (config__get__segmentation_v2)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"segmentation_v2\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"segmentation_v2\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"segmentation_v2\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"commandId\": 1619548200000,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERLANG_en\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Welcome! You've choosen English\",\n \"isEnabled\": true,\n \"id\": 1005,\n \"title\": \"Welcome! You've choosen English\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548200290,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERLANG_kn\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"ಕನ್ನಡ ಆಯ್ಕೆ ಮಾಡಿದ್ದಕ್ಕೆ ಧನ್ಯವಾದಗಳು\",\n \"isEnabled\": true,\n \"id\": 1006,\n \"title\": \"ಕನ್ನಡ ಆಯ್ಕೆ ಮಾಡಿದ್ದಕ್ಕೆ ಧನ್ಯವಾದಗಳು\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548200020,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERFRAMEWORK_stateandhrapradesh\",\n \"USERFRAMEWORK_class10\",\n \"USERFRAMEWORK_english\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Board AP Class 10 English\",\n \"isEnabled\": true,\n \"id\": 1004,\n \"title\": \"Board AP Class 10 English\",\n \"action\": \"ACTION_PLAY\",\n \"data\": {\n \"request\": {\n \"objectId\": \"do_31269113788995174417318\",\n \"collection\": \"do_31269113788995174417318\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548204000,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"CONTENT_do_2130251541941534721178\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Content: State Course\",\n \"isEnabled\": true,\n \"id\": 1003,\n \"title\": \"Content: State Course\",\n \"action\": \"ACTION_PLAY\",\n \"data\": {\n \"request\": {\n \"objectId\": \"do_2130251541941534721178\",\n \"collection\": \"do_2130251541941534721178\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548200600,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERFRAMEWORK_stateandhrapradesh\",\n \"USERFRAMEWORK_class8\",\n \"USERFRAMEWORK_english\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Board AP class 8 english\",\n \"isEnabled\": true,\n \"id\": 1002,\n \"title\": \"Board AP class 8 english\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548200050,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERLOCATION_Tamil Nadu\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Location Tamil Nadu\",\n \"isEnabled\": true,\n \"id\": 1001,\n \"title\": \"Location Tamil Nadu\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548201250,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"BANNER_CONFIG\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERFRAMEWORK_statetamilnadu\",\n \"USERFRAMEWORK_english\",\n \"USERFRAMEWORK_class1\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"showBanner\": true,\n \"values\": [\n {\n \"code\": \"banner_external_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample External Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"externalUrl\",\n \"params\": {\n \"route\": \"https://diksha.gov.in/\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_internal_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Internal Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"internalUrl\",\n \"params\": {\n \"route\": \"profile\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Search\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_content\",\n \"ui\": {\n \"background\": \"https://ae01.alicdn.com/kf/H9e3986d0c2434909a0cc26654e766dad7/Custom-fullcolor-Vinyl-Flex-Banner-3-X-4-FT-Outdoor-Advertise-Signs-2-X6-FT-Can.jpg_Q90.jpg_.webp\",\n \"text\": \"Sample content\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"content\",\n \"params\": {\n \"identifier\": \"do_21302358976737280014\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTHA FLN COurses\",\n \"icon\": \"assets/imgs/ic_nishtha_courses.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTHA FLN COurses\",\n \"icon\": \"assets/imgs/ic_nishtha_courses.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTA Secondary Courses\",\n \"icon\": \"assets/imgs/ic_secondary_course.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Revision Preperation\",\n \"icon\": \"assets/imgs/ic_revision_preperation.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"FLN Programme\",\n \"icon\": \"assets/imgs/ic_fln_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Administration Programme\",\n \"icon\": \"assets/imgs/ic_administration_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Quiz\",\n \"icon\": \"assets/imgs/ic_quiz.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"\",\n \"params\": {\n \"route\": \"\"\n }\n },\n \"expiry\": \"1841807258\"\n }\n ]\n }\n },\n {\n \"commandId\": 1619548208500,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"BANNER_CONFIG\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERFRAMEWORK_cbse\",\n \"USERFRAMEWORK_english\",\n \"USERFRAMEWORK_class6\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"showBanner\": true,\n \"values\": [\n {\n \"code\": \"banner_external_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample External Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"externalUrl\",\n \"params\": {\n \"route\": \"https://diksha.gov.in/\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_internal_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Internal Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"internalUrl\",\n \"params\": {\n \"route\": \"profile\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Search\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_content\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample content\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"content\",\n \"params\": {\n \"identifier\": \"do_21302358976737280014\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTHA FLN COurses\",\n \"icon\": \"assets/imgs/ic_nishtha_courses.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTA Secondary Courses\",\n \"icon\": \"assets/imgs/ic_secondary_course.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Revision Preperation\",\n \"icon\": \"assets/imgs/ic_revision_preperation.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"FLN Programme\",\n \"icon\": \"assets/imgs/ic_fln_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Administration Programme\",\n \"icon\": \"assets/imgs/ic_administration_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Quiz\",\n \"icon\": \"assets/imgs/ic_quiz.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"filterIdentifier\": \"nlp\",\n \"expiry\": \"1841807258\"\n }\n ]\n }\n },\n {\n \"commandId\": 1619548201298,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"DEBUGGING_MODE\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"OR\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"ALL_android\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"traceId\": \"TID_123445\"\n }\n },\n {\n \"commandId\": 1619548200012,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"BANNER_CONFIG\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"APPVERSION_DIKSHA v4.4.104staging.97\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"showBanner\": true,\n \"values\": [\n {\n \"code\": \"banner_external_url\",\n \"ui\": {\n \"background\": \"https://image.freepik.com/free-vector/minimalist-watercolor_91008-209.jpg\",\n \"text\": \"Sample External Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"externalUrl\",\n \"params\": {\n \"route\": \"https://diksha.gov.in/\"\n }\n },\n \"expiry\": \"1653031067\"\n }\n ]\n }\n },\n {\n \"commandId\": 1619548200013,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"BANNER_CONFIG\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"DEVCONFIG_7fb8fbb3a2bb521689ff04d7f31097676adf101d\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"showBanner\": true,\n \"values\": [\n {\n \"code\": \"banner_external_url\",\n \"ui\": {\n \"background\": \"https://image.freepik.com/free-vector/minimalist-watercolor_91008-209.jpg\",\n \"text\": \"Device Based Banner\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"externalUrl\",\n \"params\": {\n \"route\": \"https://diksha.gov.in/\"\n }\n },\n \"expiry\": \"1653031067\"\n }\n ]\n }\n },\n {\n \"commandId\": 1619548200014,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERROLE_teacher\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Registred as Teacher\",\n \"isEnabled\": true,\n \"id\": 1006,\n \"title\": \"Registred as Teacher\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548200015,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERROLE_teacher\",\n \"USERLOCATION_Bengaluru U North\",\n \"USERLOCATION_Karnataka\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Welcome to Karnataka\",\n \"isEnabled\": true,\n \"id\": 1006,\n \"title\": \"Welcome to Karnataka\"\n }\n ]\n }\n ]\n },\n {\n \"commandId\": 1619548201250,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"BANNER_CONFIG\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"targetedClient\": \"portal\",\n \"tagFilters\": [\n \"USERFRAMEWORK_State (Tamil Nadu)\",\n \"USERFRAMEWORK_English\",\n \"USERFRAMEWORK_Class 1\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": {\n \"showBanner\": true,\n \"values\": [\n {\n \"code\": \"banner_external_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample External Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"externalUrl\",\n \"params\": {\n \"route\": \"https://diksha.gov.in/\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_internal_url\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Internal Url\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"internalUrl\",\n \"params\": {\n \"route\": \"profile\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"ui\": {\n \"background\": \"https://cdn.pixabay.com/photo/2015/10/29/14/38/web-1012467_960_720.jpg\",\n \"text\": \"Sample Search\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_content\",\n \"ui\": {\n \"background\": \"https://5.imimg.com/data5/RN/UY/AT/SELLER-90246361/printed-rectangle-flex-banner-500x500.jpg\",\n \"text\": \"Sample content\"\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"content\",\n \"params\": {\n \"identifier\": \"do_21302358976737280014\"\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTHA FLN COurses\",\n \"icon\": \"assets/images/ic_nishtha_courses.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTHA FLN COurses\",\n \"icon\": \"assets/images/ic_nishtha_courses.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"NISHTA Secondary Courses\",\n \"icon\": \"assets/images/ic_secondary_course.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Revision Preperation\",\n \"icon\": \"assets/images/ic_revision_preperation.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"FLN Programme\",\n \"icon\": \"assets/images/ic_fln_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Administration Programme\",\n \"icon\": \"assets/images/ic_administration_programme.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n },\n {\n \"code\": \"banner_search\",\n \"type\": \"secondary\",\n \"ui\": {\n \"text\": \"Quiz\",\n \"icon\": \"assets/images/ic_quiz.svg\",\n \"theme\": {\n \"iconBgColor\": \"#FFFFFF\",\n \"pillBgColor\": \"#FFFFFF\"\n }\n },\n \"action\": {\n \"type\": \"navigate\",\n \"subType\": \"search\",\n \"params\": {\n \"query\": \"limited attempt course\",\n \"filter\": {\n \"offset\": 0,\n \"filters\": {\n \"audience\": [],\n \"objectType\": [\n \"Content\"\n ]\n }\n }\n }\n },\n \"expiry\": \"1841807258\"\n }\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"commandId\": A numerical identifier for the command, set as 1619548200000.\n- \"commandType\": Specifies the type of command, which is \"SEGMENT_COMMAND\" in this case.\n- \"controlFunction\": Indicates the control function associated with the command, set as \"LOCAL_NOTIF\".\n- \"expiresAfter\": Represents the expiration time of the command, specified as 1841807258000.\n- \"tagCriteria\": Specifies the criteria for tag filtering, set as \"AND\" in this case.\n- \"tagFilterUpto\": This property appears to be null, indicating no specific limit on tag filtering.\n- \"tagFilters\": An array of tag filters, in this case containing a single filter \"USERLANG_en\" indicating the English language.\n- \"targetDeviceIds\": This property appears to be null, indicating no specific target devices for the notification.\n- \"targetVersion\": This property also appears to be null, indicating no specific target version for the notification.\n- \"controlFunctionPayload\": An array containing the payload for the control function, which is an object with various properties related to the local notification functionality.\n - \"code\": A code or identifier for the control function, set as \"localNotification\".\n - \"name\": The name of the control function, set as \"LocalNotification\".\n - \"type\": Specifies the type of the control function, set as 1.\n - \"config\": An array containing the configuration settings for the local notification.\n - msg\": The message to be displayed in the notification, set as \"Welcome! You've chosen English\".\n - \"isEnabled\": Specifies whether the notification is enabled or not, set as true.\n - \"id\": An identifier for the notification, set as 1005.\n - \"title\": The title of the notification, set as \"Welcome! You've chosen English\"." + }, + "response": [] + }, + { + "name": "Form Read (config__get__segmentation_v2)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"segmentation_v2\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"segmentation_v2\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (config__get__segmentation_v2)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"segmentation_v2\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 08:59:01 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "929" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29993" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"3a1-j2oFvQ0Lbn6ey8VyWP5Jg3kRTFE\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "8" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "8" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 08:59:01 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"26607a1f-cc4c-43c8-a53a-30dff0df69dc\",\n \"msgid\": \"a7fd8dc1-6986-4d26-9561-be34430c8bc9\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"config\",\n \"subtype\": \"segmentation_v2\",\n \"action\": \"get\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"segmentation_v2\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"commandId\": 1619548200000,\n \"commandType\": \"SEGMENT_COMMAND\",\n \"controlFunction\": \"LOCAL_NOTIF\",\n \"expiresAfter\": 1841807258000,\n \"tagCriteria\": \"AND\",\n \"tagFilterUpto\": null,\n \"tagFilters\": [\n \"USERLANG_en\"\n ],\n \"targetDeviceIds\": null,\n \"targetVersion\": null,\n \"controlFunctionPayload\": [\n {\n \"code\": \"localNotification\",\n \"name\": \"LocalNotification\",\n \"type\": 1,\n \"config\": [\n {\n \"msg\": \"Welcome! You've choosen English\",\n \"isEnabled\": true,\n \"id\": 1005,\n \"title\": \"Welcome! You've choosen English\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"created_on\": \"2023-03-30T12:57:35.110Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T08:59:01.551Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to create segmentation for notifications and banners to targeted users.\n\nFor instance, if the user has selected State as Tamil Nadu, Medium as English, and Grade as Class 5, then for this preference, the banners and notifications are shown accordingly to the user.\n\n\n\n**\\*Impact:** In the absence of this form, the Feature section (Banner card list) will be removed from the Explore page" + }, + { + "name": "To configure metadata of content and collection_M", + "item": [ + { + "name": "Form Create (schemas__get__search)_M", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"schemas\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + "", + " postman.setNextRequest('Form Read (schemas__get__search)_M');", + "} " + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"schemas\",\n \"action\": \"get\",\n \"subType\": \"search\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"id\": \"content\",\n \"schema\": {\n \"properties\": [\n \"name\",\n \"code\",\n \"createdOn\",\n \"lastUpdatedOn\",\n \"status\",\n \"channel\",\n \"mimeType\",\n \"osId\",\n \"contentEncoding\",\n \"contentDisposition\",\n \"mediaType\",\n \"os\",\n \"minOsVersion\",\n \"compatibilityLevel\",\n \"minGenieVersion\",\n \"minSupportedVersion\",\n \"filter\",\n \"variants\",\n \"config\",\n \"visibility\",\n \"audience\",\n \"posterImage\",\n \"badgeAssertions\",\n \"targets\",\n \"contentCredits\",\n \"appIcon\",\n \"grayScaleAppIcon\",\n \"thumbnail\",\n \"screenshots\",\n \"format\",\n \"duration\",\n \"size\",\n \"idealScreenSize\",\n \"idealScreenDensity\",\n \"releaseNotes\",\n \"pkgVersion\",\n \"semanticVersion\",\n \"versionKey\",\n \"resources\",\n \"downloadUrl\",\n \"artifactUrl\",\n \"previewUrl\",\n \"streamingUrl\",\n \"objects\",\n \"organization\",\n \"createdFor\",\n \"developer\",\n \"source\",\n \"notes\",\n \"pageNumber\",\n \"publication\",\n \"edition\",\n \"publisher\",\n \"author\",\n \"owner\",\n \"attributions\",\n \"collaborators\",\n \"creators\",\n \"contributors\",\n \"voiceCredits\",\n \"soundCredits\",\n \"imageCredits\",\n \"copyright\",\n \"license\",\n \"language\",\n \"words\",\n \"text\",\n \"forkable\",\n \"translatable\",\n \"ageGroup\",\n \"interactivityLevel\",\n \"contentType\",\n \"resourceType\",\n \"category\",\n \"templateType\",\n \"genre\",\n \"theme\",\n \"themes\",\n \"rating\",\n \"rating_a\",\n \"quality\",\n \"genieScore\",\n \"authoringScore\",\n \"popularity\",\n \"downloads\",\n \"launchUrl\",\n \"activity_class\",\n \"draftImage\",\n \"scaffolding\",\n \"feedback\",\n \"feedbackType\",\n \"teachingMode\",\n \"skills\",\n \"keywords\",\n \"domain\",\n \"dialcodes\",\n \"optStatus\",\n \"description\",\n \"instructions\",\n \"body\",\n \"oldBody\",\n \"stageIcons\",\n \"editorState\",\n \"data\",\n \"loadingMessage\",\n \"checksum\",\n \"learningObjective\",\n \"createdBy\",\n \"creator\",\n \"reviewer\",\n \"lastUpdatedBy\",\n \"lastSubmittedBy\",\n \"lastSubmittedOn\",\n \"lastPublishedBy\",\n \"lastPublishedOn\",\n \"versionDate\",\n \"origin\",\n \"originData\",\n \"versionCreatedBy\",\n \"me_totalSessionsCount\",\n \"me_creationSessions\",\n \"me_creationTimespent\",\n \"me_totalTimespent\",\n \"me_totalInteractions\",\n \"me_averageInteractionsPerMin\",\n \"me_averageSessionsPerDevice\",\n \"me_totalDevices\",\n \"me_averageTimespentPerSession\",\n \"me_averageRating\",\n \"me_totalDownloads\",\n \"me_totalSideloads\",\n \"me_totalRatings\",\n \"me_totalComments\",\n \"me_totalUsage\",\n \"me_totalLiveContentUsage\",\n \"me_usageLastWeek\",\n \"me_deletionsLastWeek\",\n \"me_lastUsedOn\",\n \"me_lastRemovedOn\",\n \"me_hierarchyLevel\",\n \"me_totalDialcodeAttached\",\n \"me_totalDialcodeLinkedToContent\",\n \"me_totalDialcode\",\n \"flagReasons\",\n \"flaggedBy\",\n \"flags\",\n \"lastFlaggedOn\",\n \"tempData\",\n \"copyType\",\n \"pragma\",\n \"publishChecklist\",\n \"publishComment\",\n \"rejectReasons\",\n \"rejectComment\",\n \"totalQuestions\",\n \"totalScore\",\n \"ownershipType\",\n \"reservedDialcodes\",\n \"dialcodeRequired\",\n \"lockKey\",\n \"badgeAssociations\",\n \"framework\",\n \"lastStatusChangedOn\",\n \"uploadError\",\n \"appId\",\n \"s3Key\",\n \"consumerId\",\n \"organisation\",\n \"nodeType\",\n \"prevState\",\n \"publishError\",\n \"publish_type\",\n \"ownedBy\",\n \"purpose\",\n \"toc_url\",\n \"reviewError\",\n \"mimeTypesCount\",\n \"contentTypesCount\",\n \"childNodes\",\n \"leafNodesCount\",\n \"depth\",\n \"SYS_INTERNAL_LAST_UPDATED_ON\",\n \"assets\",\n \"version\",\n \"qrCodeProcessId\",\n \"migratedUrl\",\n \"totalCompressedSize\",\n \"programId\",\n \"leafNodes\",\n \"editorVersion\",\n \"unitIdentifiers\",\n \"questionCategories\",\n \"certTemplate\",\n \"subject\",\n \"medium\",\n \"gradeLevel\",\n \"topic\",\n \"subDomains\",\n \"subjectCodes\",\n \"difficultyLevel\",\n \"board\",\n \"licenseterms\",\n \"copyrightYear\",\n \"organisationId\",\n \"itemSetPreviewUrl\",\n \"textbook_name\",\n \"level1Name\",\n \"level1Concept\",\n \"level2Name\",\n \"level2Concept\",\n \"level3Name\",\n \"level3Concept\",\n \"sourceURL\",\n \"me_totalTimeSpentInSec\",\n \"me_totalPlaySessionCount\",\n \"me_totalRatingsCount\",\n \"monitorable\",\n \"userConsent\",\n \"trackable\",\n \"credentials\",\n \"processId\",\n \"primaryCategory\",\n \"additionalCategories\",\n \"prevStatus\",\n \"cloudStorageKey\",\n \"batches\",\n \"year\",\n \"plugins\",\n \"showNotification\",\n \"collectionId\",\n \"learningOutcome\",\n \"displayScore\",\n \"boardIds\",\n \"gradeLevelIds\",\n \"subjectIds\",\n \"mediumIds\",\n \"topicsIds\",\n \"targetFWIds\",\n \"targetBoardIds\",\n \"targetGradeLevelIds\",\n \"targetSubjectIds\",\n \"targetMediumIds\",\n \"targetTopicIds\",\n \"maxAttempts\",\n \"se_frameworkIds\",\n \"se_boardIds\",\n \"se_subjectIds\",\n \"se_mediumIds\",\n \"se_topicIds\",\n \"se_gradeLevelIds\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_topics\",\n \"se_gradeLevels\"\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"name\": Represents the name of the content.\n- \"code\": Specifies a code associated with the content.\n- \"createdOn\": Indicates the date and time when the content was created.\n- \"lastUpdatedOn\": Represents the date and time of the last update made to the content.\n- \"status\": Represents the status of the content.\n- \"channel\": Specifies the channel associated with the content.\n- \"mimeType\": Indicates the MIME type of the content.\n- \"gradeLevel\": Specifies the grade level associated with the content.\n- \"subject\": Represents the subject of the content.\n- \"board\": Specifies the education board associated with the content.\n- \"contentType\": Represents the type of content.\n- \"resourceType\": Specifies the resource type of the content.\n- \"keywords\": Indicates the keywords associated with the content.\n- \"language\": Represents the language of the content.\n- \"medium\": Specifies the medium of instruction for the content.\n- \"thumbnail\": Represents the thumbnail image associated with the content.\n- \"downloadUrl\": Specifies the URL for downloading the content.\n- \"author\": Represents the author of the content.\n- \"publisher\": Specifies the publisher of the content.\n- \"license\": Indicates the license under which the content is published.\n- \"subjectIds\": Represents the IDs of the subjects associated with the content.\n- \"gradeLevelIds\": Specifies the IDs of the grade levels associated with the content.\n- \"boardIds\": Indicates the IDs of the education boards associated with the content.\n- \"primaryCategory\": Represents the primary category of the content.\n- \"additionalCategories\": Specifies additional categories associated with the content.\n- \"plugins\": Indicates the plugins associated with the content.\n- \"maxAttempts\": Specifies the maximum number of attempts allowed for the content.\n- \"learningOutcome\": Represents the learning outcome associated with the content.\n- \"displayScore\": Specifies whether to display the score for the content.\n- \"batches\": Indicates the batches associated with the content.\n- \"year\": Specifies the year associated with the content." + }, + "response": [] + }, + { + "name": "Form Read (schemas__get__search)_M", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"schemas\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "if (pm.collectionVariables.get('onlyMandatory') === \"true\") {", + "", + " postman.setNextRequest(null);", + "} " + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"schemas\",\n \"action\": \"get\",\n \"subType\": \"search\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (schemas__get__search)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"schemas\",\n \"action\": \"get\",\n \"subType\": \"search\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:00:13 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "4239" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"108f-2bmqzx/Ij+dDiZt86mY2CR9+LiE\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "17" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "7" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:00:13 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"41152002-2e82-4093-9bd7-c00d4d78f9ff\",\n \"msgid\": \"42f6f7b7-a106-4d84-8ea1-464acd9e5a81\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"schemas\",\n \"subtype\": \"search\",\n \"action\": \"get\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"id\": \"content\",\n \"schema\": {\n \"properties\": [\n \"name\",\n \"code\",\n \"createdOn\",\n \"lastUpdatedOn\",\n \"status\",\n \"channel\",\n \"mimeType\",\n \"osId\",\n \"contentEncoding\",\n \"contentDisposition\",\n \"mediaType\",\n \"os\",\n \"minOsVersion\",\n \"compatibilityLevel\",\n \"minGenieVersion\",\n \"minSupportedVersion\",\n \"filter\",\n \"variants\",\n \"config\",\n \"visibility\",\n \"audience\",\n \"posterImage\",\n \"badgeAssertions\",\n \"targets\",\n \"contentCredits\",\n \"appIcon\",\n \"grayScaleAppIcon\",\n \"thumbnail\",\n \"screenshots\",\n \"format\",\n \"duration\",\n \"size\",\n \"idealScreenSize\",\n \"idealScreenDensity\",\n \"releaseNotes\",\n \"pkgVersion\",\n \"semanticVersion\",\n \"versionKey\",\n \"resources\",\n \"downloadUrl\",\n \"artifactUrl\",\n \"previewUrl\",\n \"streamingUrl\",\n \"objects\",\n \"organization\",\n \"createdFor\",\n \"developer\",\n \"source\",\n \"notes\",\n \"pageNumber\",\n \"publication\",\n \"edition\",\n \"publisher\",\n \"author\",\n \"owner\",\n \"attributions\",\n \"collaborators\",\n \"creators\",\n \"contributors\",\n \"voiceCredits\",\n \"soundCredits\",\n \"imageCredits\",\n \"copyright\",\n \"license\",\n \"language\",\n \"words\",\n \"text\",\n \"forkable\",\n \"translatable\",\n \"ageGroup\",\n \"interactivityLevel\",\n \"contentType\",\n \"resourceType\",\n \"category\",\n \"templateType\",\n \"genre\",\n \"theme\",\n \"themes\",\n \"rating\",\n \"rating_a\",\n \"quality\",\n \"genieScore\",\n \"authoringScore\",\n \"popularity\",\n \"downloads\",\n \"launchUrl\",\n \"activity_class\",\n \"draftImage\",\n \"scaffolding\",\n \"feedback\",\n \"feedbackType\",\n \"teachingMode\",\n \"skills\",\n \"keywords\",\n \"domain\",\n \"dialcodes\",\n \"optStatus\",\n \"description\",\n \"instructions\",\n \"body\",\n \"oldBody\",\n \"stageIcons\",\n \"editorState\",\n \"data\",\n \"loadingMessage\",\n \"checksum\",\n \"learningObjective\",\n \"createdBy\",\n \"creator\",\n \"reviewer\",\n \"lastUpdatedBy\",\n \"lastSubmittedBy\",\n \"lastSubmittedOn\",\n \"lastPublishedBy\",\n \"lastPublishedOn\",\n \"versionDate\",\n \"origin\",\n \"originData\",\n \"versionCreatedBy\",\n \"me_totalSessionsCount\",\n \"me_creationSessions\",\n \"me_creationTimespent\",\n \"me_totalTimespent\",\n \"me_totalInteractions\",\n \"me_averageInteractionsPerMin\",\n \"me_averageSessionsPerDevice\",\n \"me_totalDevices\",\n \"me_averageTimespentPerSession\",\n \"me_averageRating\",\n \"me_totalDownloads\",\n \"me_totalSideloads\",\n \"me_totalRatings\",\n \"me_totalComments\",\n \"me_totalUsage\",\n \"me_totalLiveContentUsage\",\n \"me_usageLastWeek\",\n \"me_deletionsLastWeek\",\n \"me_lastUsedOn\",\n \"me_lastRemovedOn\",\n \"me_hierarchyLevel\",\n \"me_totalDialcodeAttached\",\n \"me_totalDialcodeLinkedToContent\",\n \"me_totalDialcode\",\n \"flagReasons\",\n \"flaggedBy\",\n \"flags\",\n \"lastFlaggedOn\",\n \"tempData\",\n \"copyType\",\n \"pragma\",\n \"publishChecklist\",\n \"publishComment\",\n \"rejectReasons\",\n \"rejectComment\",\n \"totalQuestions\",\n \"totalScore\",\n \"ownershipType\",\n \"reservedDialcodes\",\n \"dialcodeRequired\",\n \"lockKey\",\n \"badgeAssociations\",\n \"framework\",\n \"lastStatusChangedOn\",\n \"uploadError\",\n \"appId\",\n \"s3Key\",\n \"consumerId\",\n \"organisation\",\n \"nodeType\",\n \"prevState\",\n \"publishError\",\n \"publish_type\",\n \"ownedBy\",\n \"purpose\",\n \"toc_url\",\n \"reviewError\",\n \"mimeTypesCount\",\n \"contentTypesCount\",\n \"childNodes\",\n \"leafNodesCount\",\n \"depth\",\n \"SYS_INTERNAL_LAST_UPDATED_ON\",\n \"assets\",\n \"version\",\n \"qrCodeProcessId\",\n \"migratedUrl\",\n \"totalCompressedSize\",\n \"programId\",\n \"leafNodes\",\n \"editorVersion\",\n \"unitIdentifiers\",\n \"questionCategories\",\n \"certTemplate\",\n \"subject\",\n \"medium\",\n \"gradeLevel\",\n \"topic\",\n \"subDomains\",\n \"subjectCodes\",\n \"difficultyLevel\",\n \"board\",\n \"licenseterms\",\n \"copyrightYear\",\n \"organisationId\",\n \"itemSetPreviewUrl\",\n \"textbook_name\",\n \"level1Name\",\n \"level1Concept\",\n \"level2Name\",\n \"level2Concept\",\n \"level3Name\",\n \"level3Concept\",\n \"sourceURL\",\n \"me_totalTimeSpentInSec\",\n \"me_totalPlaySessionCount\",\n \"me_totalRatingsCount\",\n \"monitorable\",\n \"userConsent\",\n \"trackable\",\n \"credentials\",\n \"processId\",\n \"primaryCategory\",\n \"additionalCategories\",\n \"prevStatus\",\n \"cloudStorageKey\",\n \"batches\",\n \"year\",\n \"plugins\",\n \"showNotification\",\n \"collectionId\",\n \"learningOutcome\",\n \"displayScore\",\n \"boardIds\",\n \"gradeLevelIds\",\n \"subjectIds\",\n \"mediumIds\",\n \"topicsIds\",\n \"targetFWIds\",\n \"targetBoardIds\",\n \"targetGradeLevelIds\",\n \"targetSubjectIds\",\n \"targetMediumIds\",\n \"targetTopicIds\",\n \"maxAttempts\",\n \"se_frameworkIds\",\n \"se_boardIds\",\n \"se_subjectIds\",\n \"se_mediumIds\",\n \"se_topicIds\",\n \"se_gradeLevelIds\",\n \"se_boards\",\n \"se_subjects\",\n \"se_mediums\",\n \"se_topics\",\n \"se_gradeLevels\"\n ]\n }\n }\n ]\n },\n \"created_on\": \"2023-03-21T10:28:09.699Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:00:13.179Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "**schemas__get__search**\n\nThis form is used to configure the metadata of content and collection. It is used to call when the user clicks the **All** tab or performs a global search to explore the content to consume.\n\n\n\n**\\*Impact:** If this form is not used, the global search and **All** tab feature will not work.\n\n\n\n" + }, + { + "name": "To configure the player to be used in portal_O", + "item": [ + { + "name": "Form Create (content__play__player)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"content\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"player\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"play\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"content\",\n \"action\": \"play\",\n \"subType\": \"player\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"play\",\n \"fields\": [\n {\n \"type\": \"video-player\",\n \"version\": 2,\n \"mimeType\": [\n \"video/mp4\",\n \"video/webm\"\n ]\n },\n {\n \"type\": \"pdf-player\",\n \"version\": 2,\n \"mimeType\": [\n \"application/pdf\"\n ]\n },\n {\n \"type\": \"epub-player\",\n \"version\": 2,\n \"mimeType\": [\n \"application/epub\"\n ]\n },\n {\n \"type\": \"quml-player\",\n \"version\": 2,\n \"threshold\": 3,\n \"mimeType\": [\n \"application/vnd.sunbird.questionset\"\n ]\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- Video Player:\n - \"type\": \"video-player\": Indicates that this field represents a video player.\n - \"version\": 2: Specifies the version of the video player.\n - \"mimeType\": \\[\"video/mp4\", \"video/webm\"\\]: Specifies the supported MIME types for video content, which are \"video/mp4\" and \"video/webm\".\n- PDF Player:\n - : \"type\": \"pdf-player\": Indicates that this field represents a PDF player.\n - \"version\": 2: Specifies the version of the PDF player.\n - \"mimeType\": \\[\"application/pdf\"\\]: Specifies the supported MIME type for PDF content, which is \"application/pdf\".\n- EPUB Player:\n - \"type\": \"epub-player\": Indicates that this field represents an EPUB player.\n - \"version\": 2: Specifies the version of the EPUB player.\n - \"mimeType\": \\[\"application/epub\"\\]: Specifies the supported MIME type for EPUB content, which is \"application/epub\".\n- QUML Player:\n - \"type\": \"quml-player\": Indicates that this field represents a QUMC player.\n - \"version\": 2: Specifies the version of the QUMC player.\n - \"threshold\": 3: Specifies a threshold value for the QUMC player.\n - \"mimeType\": \\[\"application/vnd.sunbird.questionset\"\\]: Specifies the supported MIME type for QUMC content, which is \"application/vnd.sunbird.questionset\"." + }, + "response": [] + }, + { + "name": "Form Read (content__play__player)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"content\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"player\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"play\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"content\",\n \"action\": \"play\",\n \"subType\": \"player\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (content__play__player)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"content\",\n \"action\": \"play\",\n \"subType\": \"player\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:03:32 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "797" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"31d-wXMSkS2MTvgRvH19W9U+iYJagys\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "2765" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "12" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:03:32 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"710609b4-eb5b-4609-adf5-730506125ed1\",\n \"msgid\": \"78696e32-9fff-46f7-ac67-d503ce8a027e\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"content\",\n \"subtype\": \"player\",\n \"action\": \"play\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"play\",\n \"fields\": [\n {\n \"type\": \"video-player\",\n \"version\": 2,\n \"mimeType\": [\n \"video/mp4\",\n \"video/webm\"\n ]\n },\n {\n \"type\": \"pdf-player\",\n \"version\": 2,\n \"mimeType\": [\n \"application/pdf\"\n ]\n },\n {\n \"type\": \"epub-player\",\n \"version\": 2,\n \"mimeType\": [\n \"application/epub\"\n ]\n },\n {\n \"type\": \"quml-player\",\n \"version\": 2,\n \"threshold\": 3,\n \"mimeType\": [\n \"application/vnd.sunbird.questionset\"\n ]\n }\n ]\n },\n \"created_on\": \"2020-11-25T06:03:06.718Z\",\n \"last_modified_on\": \"2021-04-06T12:05:44.736Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:03:32.791Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "The form is used to provide the basic config of a player to be used in the portal.\n\nThe appropriate player will be selected and opened, based on the content type. Users can customize the player form by modifying the values of the fields or by adding new fields to meet their specific requirements.\n\n\n\n**\\*Impact:** If this form is not configured, the old player will load by default.\n\n\n\n" + }, + { + "name": "To configure the drop-down value in course dashboard report_O", + "item": [ + { + "name": "Form Create (batch__list__report_types)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"batch\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"report_types\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"batch\",\n \"action\": \"list\",\n \"subType\": \"report_types\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"lang_key\": \"frmelmnts.lbl.progressExhaustReport\",\n \"encrypt\": \"false\",\n \"title\": \" Course progress exhaust\",\n \"dataset\": \"progress-exhaust\"\n },\n {\n \"lang_key\": \"frmelmnts.lbl.userExhaustReport\",\n \"encrypt\": \"true\",\n \"title\": \"User profile exhaust\",\n \"dataset\": \"userinfo-exhaust\"\n },\n {\n \"lang_key\": \"frmelmnts.lbl.qsResponseReport\",\n \"encrypt\": \"false\",\n \"title\": \"Question set report\",\n \"dataset\": \"response-exhaust\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- lang_key: A language key or identifier for the field, set as \"frmelmnts.lbl.progressExhaustReport\". \n- encrypt: A boolean value indicating whether encryption is enabled for the field, set as \"false\". \n- title: The title or label for the field, set as \"Course progress exhaust\". \n- dataset: The dataset associated with the field, set as \"progress-exhaust\"." + }, + "response": [] + }, + { + "name": "Form Read (batch__list__report_types)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"batch\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"report_types\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"batch\",\n \"action\": \"list\",\n \"subType\": \"report_types\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (batch__list__report_types)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"batch\",\n \"action\": \"list\",\n \"subType\": \"report_types\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:42:52 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "853" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29974" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"355-HPdeT+EfnXokd2+EDu5W35i1G74\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3ADJ77mzMAhBOkNOvpo63In9muovq48RsY.GkzA3gJ7RW1brC7O7F9anQAs7ABHh%2FgPUDldVwISlIg; Path=/; Expires=Thu, 01 Jun 2023 10:12:52 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "31" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "9" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:42:52 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"517020b9-d4db-4c09-ac64-5ca5af2768e7\",\n \"msgid\": \"77be23aa-8291-4fde-b787-4d79bacf6e11\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"batch\",\n \"subtype\": \"report_types\",\n \"action\": \"list\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"lang_key\": \"frmelmnts.lbl.progressExhaustReport\",\n \"encrypt\": \"false\",\n \"title\": \" Course progress exhaust\",\n \"dataset\": \"progress-exhaust\"\n },\n {\n \"lang_key\": \"frmelmnts.lbl.userExhaustReport\",\n \"encrypt\": \"true\",\n \"title\": \"User profile exhaust\",\n \"dataset\": \"userinfo-exhaust\"\n },\n {\n \"lang_key\": \"frmelmnts.lbl.qsResponseReport\",\n \"encrypt\": \"false\",\n \"title\": \"Question set report\",\n \"dataset\": \"response-exhaust\"\n }\n ]\n },\n \"created_on\": \"2023-05-12T05:00:11.407Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:42:52.855Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to configure the report type value in the dropdown.\n\nThe below screenshot displays the label and drop-down values respectively.\n\n\n\n**\\*Impact:** If the form is not configured, the dropdown will not be shown for the report (Choose your report)\n\n" + }, + { + "name": "To configure the feedback options on completion of a content_O", + "item": [ + { + "name": "Form Create (contentfeedback__get__en)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"contentfeedback\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"en\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"contentfeedback\",\n \"action\": \"get\",\n \"subType\": \"en\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"contentfeedback\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"1\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Very Bad\"\n },\n \"2\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Bad\"\n },\n \"3\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Average\"\n },\n \"4\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Good\"\n },\n \"5\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Understood the concept well\",\n \"key\": \"UNDERSTOOD_CONCEPT\"\n },\n {\n \"idx\": 2,\n \"value\": \"Helped me prepare for my exam\",\n \"key\": \"HELPED_IN_EXAM\"\n },\n {\n \"idx\": 3,\n \"value\": \"Learnt something new\",\n \"key\": \"LEARNT_SOMETHING\"\n },\n {\n \"idx\": 4,\n \"value\": \"Helped me teach my class\",\n \"key\": \"HELPED_IN_CLASS\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is interesting and fun\",\n \"key\": \"CONTENT_INTERESTING\"\n },\n {\n \"idx\": 7,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Excellent\"\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + } + }, + "response": [] + }, + { + "name": "Form Read (contentfeedback__get__en)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"contentfeedback\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"en\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"contentfeedback\",\n \"action\": \"get\",\n \"subType\": \"en\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (contentfeedback__get__en)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"contentfeedback\",\n \"action\": \"get\",\n \"subType\": \"en\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:45:59 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "3377" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29972" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"d31-8JYsqIrDGyiW7GHV0GizAqYf07k\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "13" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "7" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:45:59 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"6dfb293a-545d-4f7b-9e00-14a95f499454\",\n \"msgid\": \"2556e9ee-75b3-4803-97e1-472901fe867a\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"contentfeedback\",\n \"subtype\": \"en\",\n \"action\": \"get\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"contentfeedback\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"1\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Very Bad\"\n },\n \"2\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Bad\"\n },\n \"3\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Average\"\n },\n \"4\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Content is inaccurate\",\n \"key\": \"CONTENT_INACCURATE\"\n },\n {\n \"idx\": 2,\n \"value\": \"Content is not displayed properly\",\n \"key\": \"CONTENT_NOT_DISPLAYED\"\n },\n {\n \"idx\": 3,\n \"value\": \"Content is not relevant\",\n \"key\": \"CONTENT_NOT_RELEVANT\"\n },\n {\n \"idx\": 4,\n \"value\": \"Did not help me understand the concept\",\n \"key\": \"DIDNT_UNDERSTAND_CONCEPT\"\n },\n {\n \"idx\": 6,\n \"value\": \"There is a technical problem\",\n \"key\": \"TECHNICAL_PROBLEM\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is insufficient or not there\",\n \"key\": \"INSUFFICIENT_CONTENT\"\n },\n {\n \"idx\": 8,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Good\"\n },\n \"5\": {\n \"question\": \"Would you like to tell us more?\",\n \"options\": [\n {\n \"idx\": 1,\n \"value\": \"Understood the concept well\",\n \"key\": \"UNDERSTOOD_CONCEPT\"\n },\n {\n \"idx\": 2,\n \"value\": \"Helped me prepare for my exam\",\n \"key\": \"HELPED_IN_EXAM\"\n },\n {\n \"idx\": 3,\n \"value\": \"Learnt something new\",\n \"key\": \"LEARNT_SOMETHING\"\n },\n {\n \"idx\": 4,\n \"value\": \"Helped me teach my class\",\n \"key\": \"HELPED_IN_CLASS\"\n },\n {\n \"idx\": 6,\n \"value\": \"Content is interesting and fun\",\n \"key\": \"CONTENT_INTERESTING\"\n },\n {\n \"idx\": 7,\n \"value\": \"Other\",\n \"key\": \"OTHER\"\n }\n ],\n \"ratingText\": \"Excellent\"\n }\n }\n ]\n },\n \"created_on\": \"2023-04-17T13:57:34.193Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:45:59.735Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form is used to show feedback options on the player once the user consumes any content.\n\nBased on their needs, users can modify the content data, such as subjective feedback, using this API call.\n\n\n\n**\\*Impact:** The absence of this form will not allow adding subjective feedback once the rating is given.\n\n" + } + ], + "description": "These forms are called when the user lands on the home page of the application. They are used to configure:\n\n- Homlisting feature on the home page\n- The menubar tab\n- Banner feature on the home page\n- Search content schemas in all tab\n- MimeType of player to be used\n- Drop-down filter to show the report\n- Additional feedback features on completion of content on player" + }, + { + "name": "Profile Forms", + "item": [ + { + "name": "To configure location details based on user subtype_O", + "item": [ + { + "name": "Form Create (profileConfig_v2__get__28)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"profileconfig_v2\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"28\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"subType\": \"28\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Name\"\n }\n },\n \"hidden\": true,\n \"placeHolder\": \"Enter Name\",\n \"multiple\": false\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"persona\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"hidden\": true,\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Role\"\n }\n },\n \"placeHolder\": \"Select Role\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"SUPPORTED_PERSONA_LIST\"\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"administrator\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"subPersona\",\n \"type\": \"select\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Subrole\"\n }\n },\n \"placeHolder\": \"Select Subrole\",\n \"multiple\": true,\n \"dataSrc\": {\n \"marker\": \"SUBPERSONA_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN\"\n }\n },\n \"options\": [\n {\n \"value\": \"hm\",\n \"label\": \"HM\"\n },\n {\n \"value\": \"crp\",\n \"label\": \"CRP\"\n },\n {\n \"value\": \"chm\",\n \"label\": \"Complex HM\"\n },\n {\n \"value\": \"meo\",\n \"label\": \"MEO\"\n },\n {\n \"value\": \"dyeo\",\n \"label\": \"DyEO\"\n },\n {\n \"value\": \"atwo\",\n \"label\": \"ATWO\"\n },\n {\n \"value\": \"dtwo\",\n \"label\": \"DTWO\"\n },\n {\n \"value\": \"gcdo_pmrc\",\n \"label\": \"GCDO PMRC\"\n },\n {\n \"value\": \"cmo_pmrc\",\n \"label\": \"CMO PMRC\"\n },\n {\n \"value\": \"amo_pmrc\",\n \"label\": \"AMO PMRC\"\n },\n {\n \"value\": \"ddtw\",\n \"label\": \"DDTW\"\n },\n {\n \"value\": \"aso_dpo\",\n \"label\": \"ASO DPO\"\n },\n {\n \"value\": \"asst_als_coordinator\",\n \"label\": \"Asst ALS Coordinator\"\n },\n {\n \"value\": \"asst_ie_coordinator\",\n \"label\": \"Asst IE Coordinator\"\n },\n {\n \"value\": \"als_coordinator\",\n \"label\": \"ALS Coordinator\"\n },\n {\n \"value\": \"ie_coordinator\",\n \"label\": \"IE Coordinator\"\n },\n {\n \"value\": \"cmo\",\n \"label\": \"CMO\"\n },\n {\n \"value\": \"aamo\",\n \"label\": \"AAMO\"\n },\n {\n \"value\": \"amo\",\n \"label\": \"AMO\"\n },\n {\n \"value\": \"apc\",\n \"label\": \"APC\"\n },\n {\n \"value\": \"diet_lecturer\",\n \"label\": \"DIET Lecturer\"\n },\n {\n \"value\": \"diet_pricipal\",\n \"label\": \"DIET Principal\"\n },\n {\n \"value\": \"deo\",\n \"label\": \"DEO\"\n },\n {\n \"value\": \"rjd\",\n \"label\": \"RJD\"\n },\n {\n \"value\": \"slcc\",\n \"label\": \"SLCC\"\n },\n {\n \"value\": \"slmo\",\n \"label\": \"SLMO\"\n },\n {\n \"value\": \"spd\",\n \"label\": \"SPD\"\n },\n {\n \"value\": \"dir_ad_ed\",\n \"label\": \"Director Adult Education\"\n },\n {\n \"value\": \"dir_pub_lib\",\n \"label\": \"Director Public Libraries\"\n },\n {\n \"value\": \"dir_scert\",\n \"label\": \"Director SCERT\"\n },\n {\n \"value\": \"sec_kgbv\",\n \"label\": \"Secretary KGBV\"\n },\n {\n \"value\": \"sec_pub_lib\",\n \"label\": \"Secretary Public Libraries\"\n },\n {\n \"value\": \"dep_dir_ad_ed\",\n \"label\": \"Deputy director Adult Education\"\n },\n {\n \"value\": \"lib_pub_lib\",\n \"label\": \"Librarian Public Libraries\"\n },\n {\n \"value\": \"sup_ad_ed\",\n \"label\": \"Supervisor Adult Education\"\n },\n {\n \"value\": \"lib_bdc\",\n \"label\": \"Librarian Public Libraries/ Book deposit center\"\n },\n {\n \"value\": \"ins_ad_ed\",\n \"label\": \"Instructor/ Volunteer Adult Education\"\n },\n {\n \"value\": \"bdc_inch\",\n \"label\": \"BDC Incharge\"\n }\n ]\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"teacher\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"student\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"other\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"parent\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": A code or identifier for the field, set as \"name\".\n- \"type\": Specifies the type of the field, which is \"input\" in this case.\n- \"templateOptions\": An object containing various options related to the template or layout of the field.\n- \"labelHtml\": Specifies the HTML contents for the label of the field. It includes a placeholder \"$0\" that will be replaced with the value \"Name\". Additionally, it adds a span element with a CSS class to display a required asterisk symbol.\n- \"hidden\": A boolean value indicating whether the field should be hidden (set as true).\n- \"placeHolder\": Specifies the placeholder text to be displayed within the input field, set as \"Enter Name\".\n- \"multiple\": A boolean value indicating whether multiple values can be entered in the field (set as false).\n- \"validations\": An array containing validation rules for the field. In this case, there is a single validation rule of type \"required\", indicating that the field must have a value." + }, + "response": [] + }, + { + "name": "Form Read (profileConfig_v2__get__28)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"profileconfig_v2\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"28\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"subType\": \"28\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (profileConfig_v2__get__28)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"profileconfig_v2\",\n \"action\": \"get\",\n \"subType\": \"28\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:04:58 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "9863" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29997" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"2687-HwD6VnLD59J/RIK3EPrHsC6zz4I\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "14" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "14" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:04:58 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"897ce026-ed4d-4d2f-ba47-78fae6614d45\",\n \"msgid\": \"6bd56e1b-aa55-4130-98bd-a9ee65481aa8\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"profileconfig_v2\",\n \"subtype\": \"28\",\n \"action\": \"get\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Name\"\n }\n },\n \"hidden\": true,\n \"placeHolder\": \"Enter Name\",\n \"multiple\": false\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"persona\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"hidden\": true,\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Role\"\n }\n },\n \"placeHolder\": \"Select Role\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"SUPPORTED_PERSONA_LIST\"\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"administrator\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"subPersona\",\n \"type\": \"select\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"Subrole\"\n }\n },\n \"placeHolder\": \"Select Subrole\",\n \"multiple\": true,\n \"dataSrc\": {\n \"marker\": \"SUBPERSONA_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN\"\n }\n },\n \"options\": [\n {\n \"value\": \"hm\",\n \"label\": \"HM\"\n },\n {\n \"value\": \"crp\",\n \"label\": \"CRP\"\n },\n {\n \"value\": \"chm\",\n \"label\": \"Complex HM\"\n },\n {\n \"value\": \"meo\",\n \"label\": \"MEO\"\n },\n {\n \"value\": \"dyeo\",\n \"label\": \"DyEO\"\n },\n {\n \"value\": \"atwo\",\n \"label\": \"ATWO\"\n },\n {\n \"value\": \"dtwo\",\n \"label\": \"DTWO\"\n },\n {\n \"value\": \"gcdo_pmrc\",\n \"label\": \"GCDO PMRC\"\n },\n {\n \"value\": \"cmo_pmrc\",\n \"label\": \"CMO PMRC\"\n },\n {\n \"value\": \"amo_pmrc\",\n \"label\": \"AMO PMRC\"\n },\n {\n \"value\": \"ddtw\",\n \"label\": \"DDTW\"\n },\n {\n \"value\": \"aso_dpo\",\n \"label\": \"ASO DPO\"\n },\n {\n \"value\": \"asst_als_coordinator\",\n \"label\": \"Asst ALS Coordinator\"\n },\n {\n \"value\": \"asst_ie_coordinator\",\n \"label\": \"Asst IE Coordinator\"\n },\n {\n \"value\": \"als_coordinator\",\n \"label\": \"ALS Coordinator\"\n },\n {\n \"value\": \"ie_coordinator\",\n \"label\": \"IE Coordinator\"\n },\n {\n \"value\": \"cmo\",\n \"label\": \"CMO\"\n },\n {\n \"value\": \"aamo\",\n \"label\": \"AAMO\"\n },\n {\n \"value\": \"amo\",\n \"label\": \"AMO\"\n },\n {\n \"value\": \"apc\",\n \"label\": \"APC\"\n },\n {\n \"value\": \"diet_lecturer\",\n \"label\": \"DIET Lecturer\"\n },\n {\n \"value\": \"diet_pricipal\",\n \"label\": \"DIET Principal\"\n },\n {\n \"value\": \"deo\",\n \"label\": \"DEO\"\n },\n {\n \"value\": \"rjd\",\n \"label\": \"RJD\"\n },\n {\n \"value\": \"slcc\",\n \"label\": \"SLCC\"\n },\n {\n \"value\": \"slmo\",\n \"label\": \"SLMO\"\n },\n {\n \"value\": \"spd\",\n \"label\": \"SPD\"\n },\n {\n \"value\": \"dir_ad_ed\",\n \"label\": \"Director Adult Education\"\n },\n {\n \"value\": \"dir_pub_lib\",\n \"label\": \"Director Public Libraries\"\n },\n {\n \"value\": \"dir_scert\",\n \"label\": \"Director SCERT\"\n },\n {\n \"value\": \"sec_kgbv\",\n \"label\": \"Secretary KGBV\"\n },\n {\n \"value\": \"sec_pub_lib\",\n \"label\": \"Secretary Public Libraries\"\n },\n {\n \"value\": \"dep_dir_ad_ed\",\n \"label\": \"Deputy director Adult Education\"\n },\n {\n \"value\": \"lib_pub_lib\",\n \"label\": \"Librarian Public Libraries\"\n },\n {\n \"value\": \"sup_ad_ed\",\n \"label\": \"Supervisor Adult Education\"\n },\n {\n \"value\": \"lib_bdc\",\n \"label\": \"Librarian Public Libraries/ Book deposit center\"\n },\n {\n \"value\": \"ins_ad_ed\",\n \"label\": \"Instructor/ Volunteer Adult Education\"\n },\n {\n \"value\": \"bdc_inch\",\n \"label\": \"BDC Incharge\"\n }\n ]\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"teacher\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"student\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"other\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ],\n \"parent\": [\n {\n \"code\": \"state\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"State\"\n }\n },\n \"placeHolder\": \"Select State\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"STATE_LOCATION_LIST\",\n \"params\": {\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"district\",\n \"type\": \"select\",\n \"context\": \"state\",\n \"default\": null,\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0 *\",\n \"values\": {\n \"$0\": \"District\"\n }\n },\n \"placeHolder\": \"Select District\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"district\",\n \"useCase\": \"SIGNEDIN_GUEST\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ]\n },\n {\n \"code\": \"block\",\n \"type\": \"select\",\n \"context\": \"district\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Block\",\n \"placeHolder\": \"Select Block\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"block\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n },\n \"validations\": []\n },\n {\n \"code\": \"cluster\",\n \"type\": \"select\",\n \"context\": \"block\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"Cluster\",\n \"placeHolder\": \"Select Cluster\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"cluster\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n },\n {\n \"code\": \"school\",\n \"type\": \"select\",\n \"context\": \"cluster\",\n \"default\": null,\n \"templateOptions\": {\n \"label\": \"School\",\n \"placeHolder\": \"Select School\",\n \"multiple\": false,\n \"dataSrc\": {\n \"marker\": \"LOCATION_LIST\",\n \"params\": {\n \"id\": \"school\",\n \"useCase\": \"SIGNEDIN\"\n }\n }\n }\n }\n ]\n }\n }\n ]\n },\n \"created_on\": \"2023-04-25T08:10:01.562Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:04:58.434Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "The form is used to configure to get the location details based on the user subtype.\n\n**\\*Impact:** If this form is not configured, location details will not show for the particular subtype." + }, + { + "name": "To configure user constent_O", + "item": [ + { + "name": "Form Create (user__get__tenantPersonaInfo)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"tenantPersonaInfo\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"get\",\n \"subType\": \"tenantPersonaInfo\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"tenantPersonaInfo\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"tenant\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"label\": \"I wish to share my data with:\",\n \"placeHolder\": \"Select State/Institution\",\n \"options\": [\n {\n \"label\": \"State (Punjab)\",\n \"value\": \"012775810960252928563\",\n \"index\": 1\n },\n {\n \"label\": \"Andra Pradesh\",\n \"value\": \"0129109366089728000\",\n \"index\": 2\n },\n {\n \"label\": \"Haryana State\",\n \"value\": \"0127674553846579203\",\n \"index\": 3\n },\n {\n \"label\": \"Karnataka State Org\",\n \"value\": \"0127236218321879040\",\n \"index\": 4\n },\n {\n \"label\": \"Tamil Nadu\",\n \"value\": \"01269878797503692810\",\n \"index\": 5\n },\n {\n \"label\": \"NCERT\",\n \"value\": \"01283607456185548825093\",\n \"index\": 6\n },\n {\n \"label\": \"CBSE\",\n \"value\": \"0128325322816552960\",\n \"index\": 7\n },\n {\n \"label\": \"Jharkhand State Board\",\n \"value\": \"012811889750941696475\",\n \"index\": 8\n },\n {\n \"label\": \"Kerala State\",\n \"value\": \"013051342708842496208\",\n \"index\": 9\n }\n ],\n \"validations\": [\n {\n \"type\": \"required\",\n \"value\": true,\n \"message\": \"Tenant name is required\"\n }\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": \"tenant\": Specifies the code or identifier for the field.\n- \"type\": \"select\": Indicates that this field represents a select field where users can choose from a list of options.\n- \"templateOptions\": Defines the template options for the field, such as label,\n - \"label\": \"I wish to share my data with:\": Specifies the label for the field, indicating the purpose of the selection.\n - \"placeHolder\": \"Select State/Institution\": Specifies the placeholder text that is displayed in the select field when no option is selected.\n - \"options\": Specifies the available options for the select field. Each option is defined as an object with a label, value, and index.\n - \"label\": \"State (Punjab)\": Specifies the display label for the option.\n - \"value\": \"012775810960252928563\": Specifies the value associated with the option. This value can be used to identify the selected option.\n - \"index\": 1: Specifies the index of the option, indicating its position in the list." + }, + "response": [] + }, + { + "name": "Form Read (user__get__tenantPersonaInfo)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"tenantPersonaInfo\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"get\",\n \"subType\": \"tenantPersonaInfo\",\n \"component\": \"portal\"\n }\n \n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__get__tenantPersonaInfo)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"get\",\n \"subType\": \"tenantPersonaInfo\",\n \"component\": \"portal\"\n }\n \n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:09:02 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "1335" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999998" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"537-sY33Eu/P6lAXdT1WyrLFp8Nt3tE\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "10" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "9" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:09:02 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"8e1c8408-8af5-4a9d-b510-5dc41b34fbae\",\n \"msgid\": \"6fc18980-1bda-4330-9cde-81bc1bd692d6\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"tenantpersonainfo\",\n \"action\": \"get\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"tenantPersonaInfo\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"code\": \"tenant\",\n \"type\": \"select\",\n \"templateOptions\": {\n \"label\": \"I wish to share my data with:\",\n \"placeHolder\": \"Select State/Institution\",\n \"options\": [\n {\n \"label\": \"State (Punjab)\",\n \"value\": \"012775810960252928563\",\n \"index\": 1\n },\n {\n \"label\": \"Andra Pradesh\",\n \"value\": \"0129109366089728000\",\n \"index\": 2\n },\n {\n \"label\": \"Haryana State\",\n \"value\": \"0127674553846579203\",\n \"index\": 3\n },\n {\n \"label\": \"Karnataka State Org\",\n \"value\": \"0127236218321879040\",\n \"index\": 4\n },\n {\n \"label\": \"Tamil Nadu\",\n \"value\": \"01269878797503692810\",\n \"index\": 5\n },\n {\n \"label\": \"NCERT\",\n \"value\": \"01283607456185548825093\",\n \"index\": 6\n },\n {\n \"label\": \"CBSE\",\n \"value\": \"0128325322816552960\",\n \"index\": 7\n },\n {\n \"label\": \"Jharkhand State Board\",\n \"value\": \"012811889750941696475\",\n \"index\": 8\n },\n {\n \"label\": \"Kerala State\",\n \"value\": \"013051342708842496208\",\n \"index\": 9\n }\n ],\n \"validations\": [\n {\n \"type\": \"required\",\n \"value\": true,\n \"message\": \"Tenant name is required\"\n }\n ]\n }\n }\n ]\n },\n \"created_on\": \"2021-01-11T12:20:38.854Z\",\n \"last_modified_on\": \"2021-04-01T10:52:58.771Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:09:02.165Z\",\n \"ver\": \"1.0\"\n}" + } + ] + }, + { + "name": "Form Create (user__submit__selfDeclaration)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"selfDeclaration\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"submit\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"submit\",\n \"subType\": \"selfDeclaration\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"selfDeclaration\",\n \"action\": \"submit\",\n \"fields\": [\n {\n \"code\": \"externalIds\",\n \"type\": \"nested_group\",\n \"children\": [\n {\n \"code\": \"declared-ext-id\",\n \"fieldName\": \"Your ID from State/Board/Org\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0\",\n \"values\": {\n \"$0\": \"ID as requested by your State/ Board/ Org\"\n }\n },\n \"placeHolder\": \"Enter ID\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[^\\\"',\\\\r\\\\n|\\\\r|\\\\n]*$\",\n \"message\": \"This field does not allow you to enter special characters\"\n }\n ]\n },\n {\n \"code\": \"declared-phone\",\n \"fieldName\": \"Mobile Number\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0\",\n \"values\": {\n \"$0\": \"Mobile Number for State/ Org\"\n }\n },\n \"placeHolder\": \"Enter Mobile Number\",\n \"prefix\": \"+91 -\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[6-9*][0-9*]{9}$\",\n \"message\": \"Enter a valid mobile number\"\n }\n ],\n \"asyncValidation\": {\n \"marker\": \"MOBILE_OTP_VALIDATION\",\n \"message\": \"Validate your mobile number\",\n \"trigger\": \"validate\"\n }\n },\n {\n \"code\": \"declared-email\",\n \"fieldName\": \"Email Address\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"placeHolder\": \"Enter email address\",\n \"label\": \"Email ID for State/ Org\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[A-Za-z0-9._*%+-]+@[A-Za-z0-9.-]+\\\\.[a-z]{2,}$\",\n \"message\": \"Enter a valid email address\"\n }\n ],\n \"asyncValidation\": {\n \"marker\": \"EMAIL_OTP_VALIDATION\",\n \"message\": \"Validate your email address\",\n \"trigger\": \"validate\"\n }\n }\n ],\n \"templateOptions\": {}\n },\n {\n \"code\": \"tnc\",\n \"type\": \"checkbox\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$tnc $0\",\n \"values\": {\n \"$tnc\": \"I consent to provide my Profile Details and the additional details listed above with the administrators of my State / Institution. All administrators on DIKSHA are bound by the Privacy Policy and Administrator Guidelines in their use of my data.\",\n \"$url\": \"url\",\n \"$0\": \"Privacy Policy\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\",\n \"value\": true,\n \"message\": \"\"\n }\n ]\n },\n {\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"

$0

\",\n \"values\": {\n \"$0\": \"You can edit your details from your Profile Page\"\n }\n }\n },\n \"code\": \"consentInfo\",\n \"type\": \"label\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": \"declared-ext-id\": Specifies the code or identifier for the child field.\n- \"fieldName\": \"Your ID from State/Board/Org\": Specifies the field name or label for the child field.\n- \"type\": \"input\": Indicates that this child field represents an input field where users can enter text.\n- \"templateOptions\": Defines the template options for the child field, such as label and placeholder.\n - \"labelHtml\": Specifies the HTML content for the label. In this case, it contains a placeholder for a dynamic value.\n - \"contents\": \"$0\": Specifies the HTML content, where $0 will be replaced by the actual label value.\n - \"values\": {\"$0\": \"ID as requested by your State/ Board/ Org\"}: Provides the actual value to be inserted into the HTML content.\n - \"placeHolder\": \"Enter ID\": Specifies the placeholder text that is displayed in the input field.\n- \"validations\": Specifies the validations to be applied to the input field.\n - \"type\": \"pattern\": Indicates that a pattern validation rule should be applied.\n - \"value\": \"^\\[^\\\\\"',\\\\\\\\r\\\\\\\\n|\\\\\\\\r|\\\\\\\\n\\]\\\\\\*$\": Specifies the regular expression pattern that the input should match.\n - \"message\": \"This field does not allow you to enter special characters\": Specifies the error message to be displayed if the pattern validation fails." + }, + "response": [] + }, + { + "name": "Form Read (user__submit__selfDeclaration)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"selfDeclaration\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"submit\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"submit\",\n \"subType\": \"selfDeclaration\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__submit__selfDeclaration)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"submit\",\n \"subType\": \"selfDeclaration\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:10:30 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "2489" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999997" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"9b9-ZrHjLj51gfhDV6TtKWsZP+fj/u4\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "8" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "70" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:10:30 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"16738801-8c90-4f23-b0e1-ffbe19155d53\",\n \"msgid\": \"a13684ea-4ce2-4457-987b-eb79fcecb12c\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"selfdeclaration\",\n \"action\": \"submit\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"selfDeclaration\",\n \"action\": \"submit\",\n \"fields\": [\n {\n \"code\": \"externalIds\",\n \"type\": \"nested_group\",\n \"children\": [\n {\n \"code\": \"declared-ext-id\",\n \"fieldName\": \"Your ID from State/Board/Org\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0\",\n \"values\": {\n \"$0\": \"ID as requested by your State/ Board/ Org\"\n }\n },\n \"placeHolder\": \"Enter ID\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[^\\\"',\\\\r\\\\n|\\\\r|\\\\n]*$\",\n \"message\": \"This field does not allow you to enter special characters\"\n }\n ]\n },\n {\n \"code\": \"declared-phone\",\n \"fieldName\": \"Mobile Number\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$0\",\n \"values\": {\n \"$0\": \"Mobile Number for State/ Org\"\n }\n },\n \"placeHolder\": \"Enter Mobile Number\",\n \"prefix\": \"+91 -\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[6-9*][0-9*]{9}$\",\n \"message\": \"Enter a valid mobile number\"\n }\n ],\n \"asyncValidation\": {\n \"marker\": \"MOBILE_OTP_VALIDATION\",\n \"message\": \"Validate your mobile number\",\n \"trigger\": \"validate\"\n }\n },\n {\n \"code\": \"declared-email\",\n \"fieldName\": \"Email Address\",\n \"type\": \"input\",\n \"templateOptions\": {\n \"placeHolder\": \"Enter email address\",\n \"label\": \"Email ID for State/ Org\"\n },\n \"validations\": [\n {\n \"type\": \"pattern\",\n \"value\": \"^[A-Za-z0-9._*%+-]+@[A-Za-z0-9.-]+\\\\.[a-z]{2,}$\",\n \"message\": \"Enter a valid email address\"\n }\n ],\n \"asyncValidation\": {\n \"marker\": \"EMAIL_OTP_VALIDATION\",\n \"message\": \"Validate your email address\",\n \"trigger\": \"validate\"\n }\n }\n ],\n \"templateOptions\": {}\n },\n {\n \"code\": \"tnc\",\n \"type\": \"checkbox\",\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"$tnc $0\",\n \"values\": {\n \"$tnc\": \"I consent to provide my Profile Details and the additional details listed above with the administrators of my State / Institution. All administrators on DIKSHA are bound by the Privacy Policy and Administrator Guidelines in their use of my data.\",\n \"$url\": \"url\",\n \"$0\": \"Privacy Policy\"\n }\n }\n },\n \"validations\": [\n {\n \"type\": \"required\",\n \"value\": true,\n \"message\": \"\"\n }\n ]\n },\n {\n \"templateOptions\": {\n \"labelHtml\": {\n \"contents\": \"

$0

\",\n \"values\": {\n \"$0\": \"You can edit your details from your Profile Page\"\n }\n }\n },\n \"code\": \"consentInfo\",\n \"type\": \"label\"\n }\n ]\n },\n \"created_on\": \"2021-03-19T07:23:00.613Z\",\n \"last_modified_on\": \"2021-12-29T11:17:09.043Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:10:30.334Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "**user__get__tenantPersonaInfo**\n\nThis form is used to share user data with the state/organisation.\n\n\n\nThis is a select form field, where users can choose any option from a drop-down list. The form field is configured to allow the user to select a State or Institution they wish to share their data with. The label used here is \"I wish to share my data with:\".\n\nThe form configuration also includes additional template options, such as a placeholder text that appears in the dropdown when no option is selected. The options themselves are defined by the values assigned to each label, such as \"012775810960252928563\" and \"0129109366089728000\".\n\n**Advantage:** Flexible to customize the form to the user's specific needs. For example, if the dropdown values needed to be changed to Organizations instead of States, the label and options could be easily reconfigured. \n\n**\\*Impact:** If this form is not configured then \"I wish to share my data with\" input field will be removed from update details screen in profile.\n\n**user__submit__selfDeclaration**\n\nThe Form is used for entering the ID requested by the state, board, or org.\n\n\n\nThe above response describes a configuration for a form, which allows users to input a unique identifier code.\n\nOverall, this form configuration provides flexibility and customization options for users to input a unique identifier code, while ensuring that the entered data meets certain validation criteria.\n\n**\\*Impact:** If this form is not configured \"ID as requested by your state\" input field will be removed from the Update details page in the profile section." + }, + { + "name": "To configure the name input field in the Add user screen_O", + "item": [ + { + "name": "Form Create (user__create__child)_O", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"create\",\n \"subType\": \"child\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"create\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"visible\": true,\n \"editable\": true,\n \"displayProperty\": \"Editable\",\n \"dataType\": \"text\",\n \"renderingHints\": {\n \"fieldColumnWidth\": \"twelve\"\n },\n \"name\": \"Name\",\n \"description\": \"Enter your name\",\n \"index\": 1,\n \"inputType\": \"input\",\n \"label\": \"Name\",\n \"required\": true\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"templateName\": \"defaultTemplate\": Specifies the name of the template being used for the action. In this case, it is \"defaultTemplate\".\n- \"action\": \"create\": Indicates that the action to be performed is related to creating content.\n- \"fields\": Specifies the fields or criteria for the action.\n- \"code\": \"name\": Specifies the code or identifier for the field. In this case, it represents the field for capturing the name.\n- \"visible\": true: Indicates whether the field should be visible or hidden.\n- \"editable\": true: Indicates whether the field should be editable or read-only.\n- \"displayProperty\": \"Editable\": Specifies the display property of the field. In this case, it is set to \"Editable\".\n- \"dataType\": \"text\": Specifies the data type of the field. In this case, it is \"text\".\n- \"renderingHints\": Provides additional hints or properties related to the rendering of the field.\n- \"fieldColumnWidth\": \"twelve\": Specifies the width of the field column. In this case, it is set to \"twelve\".\n- \"name\": \"Name\": Specifies the name or label of the field.\n- \"description\": \"Enter your name\": Provides a description or tooltip for the field.\n- \"index\": 1: Specifies the index or position of the field.\n- \"inputType\": \"input\": Specifies the input type of the field. In this case, it is a general input field.\n- \"label\": \"Name\": Specifies the label to be displayed for the field.\n- : Indicates whether the field is required to be filled or not." + }, + "response": [] + }, + { + "name": "Form Read (user__create__child)_O", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"create\",\n \"subType\": \"child\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__create__child)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"user\",\n \"action\": \"create\",\n \"subType\": \"child\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:27:26 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "722" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29983" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"2d2-k8o3Thy86vKfvrXcY9L2U/B4AU0\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "7" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "13" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:27:26 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"264894da-13af-43fe-b528-0ce8e67837b7\",\n \"msgid\": \"0ab8def3-2060-46dc-a2ae-c305bbca4268\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"child\",\n \"action\": \"create\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"create\",\n \"fields\": [\n {\n \"code\": \"name\",\n \"visible\": true,\n \"editable\": true,\n \"displayProperty\": \"Editable\",\n \"dataType\": \"text\",\n \"renderingHints\": {\n \"fieldColumnWidth\": \"twelve\"\n },\n \"name\": \"Name\",\n \"description\": \"Enter your name\",\n \"index\": 1,\n \"inputType\": \"input\",\n \"label\": \"Name\",\n \"required\": true\n }\n ]\n },\n \"created_on\": \"2023-04-20T11:52:30.064Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:27:26.287Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to create an input field in the profile Add user screen.\n\n\n\n**\\*Impact:** If this form is not configured, the Name (Enter your name) input field option will be removed from the Add user screen.\n\n" + } + ], + "description": "These forms are called when the user clicks on the profile section. They are used to configure:\n\n- The location details based on user.\n- Share user data with the state/orgranisation\n- ID requested by state, board or org\n- Input field with a label for the name in add user section." + }, + { + "name": "Groups forms", + "item": [ + { + "name": "To configure the activity type in groups_O", + "item": [ + { + "name": "Form Create (group__list__supported_activities)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"supported_activities\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"supported_activities\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"supported_activities\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"index\": 0,\n \"activityType\": \"Explanation Content\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Explanation Content\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Explanation Content\",\n \"translations\": \"{\\\"en\\\": \\\"Explanation Content\\\", \\\"as\\\": \\\"ব্যাখ্যা কৰা বিষয়বস্তু\\\", \\\"bn\\\": \\\"বিষয়বস্তুর ব্যাখ্যা\\\", \\\"gu\\\":\\\"એક્સપ્લેનેશન કન્ટેન્ટ\\\", \\\"hi\\\":\\\"स्पष्टीकरण सामग्री\\\", \\\"kn\\\":\\\"ವಿವರಣಾತ್ಮಕ ಪಠ್ಯಾಂಶ\\\", \\\"mr\\\":\\\"स्पष्टीकरण सामग्री\\\", \\\"or\\\":\\\"ବିସ୍ତାରିତ କଣ୍ଟେଣ୍ଟ୍\\\", \\\"pa\\\":\\\"ਵਿਆਖਿਆ ਕੰਟੇਂਟ\\\", \\\"ta\\\":\\\"விளக்க உள்ளடக்கம்\\\", \\\"te\\\":\\\"అర్థము కంటెంట్\\\", \\\"ur\\\":\\\"وضاحت کا مواد\\\"}\"\n },\n {\n \"index\": 1,\n \"activityType\": \"Learning Resource\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Learning Resource\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Learning Resource\",\n \"translations\": \"{\\\"en\\\": \\\"Learning module\\\", \\\"as\\\": \\\"শিক্ষণৰ ম'ডিউল\\\", \\\"bn\\\": \\\"প্রশিক্ষণ মডিউল\\\", \\\"gu\\\":\\\"શીખવાનું મોડ્યુલ\\\", \\\"hi\\\":\\\"अध्ययन मॉड्यूल\\\", \\\"kn\\\":\\\"ಕಲಿಕಾ ಮಾಡ್ಯೂಲ್\\\", \\\"mr\\\":\\\"अभ्यास विभाग\\\", \\\"or\\\":\\\"ଶିକ୍ଷଣ ମଡ୍ୟୁଲ\\\", \\\"pa\\\":\\\"ਸਿਖਲਾਈ ਮੋਡੀਊਲ\\\", \\\"ta\\\":\\\"கற்றல் மாடுயூல்\\\", \\\"te\\\":\\\"మాడ్యూల్ నేర్చుకోవడం\\\", \\\"ur\\\":\\\"سیکھنے کا ماڈیول\\\"}\"\n },\n {\n \"index\": 2,\n \"activityType\": \"Course\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Course\\\"],\\\"batches.status\\\":1,\\\"batches.enrollmentType\\\":\\\"open\\\",\\\"objectType\\\":[\\\"Content\\\"],\\\"status\\\":[\\\"Live\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Course\",\n \"translations\": \"{\\\"en\\\": \\\"Course\\\", \\\"as\\\": \\\"পাঠ্যক্ৰমসমুহ\\\", \\\"bn\\\": \\\"পাঠ্যধারাগুলি\\\", \\\"gu\\\":\\\"કોર્સ\\\", \\\"hi\\\":\\\"कोर्स\\\", \\\"kn\\\":\\\"ಕೋರ್ಸ್ ಗಳು\\\", \\\"mr\\\":\\\"कोर्सेस\\\", \\\"or\\\":\\\"ପାଠ୍ୟକ୍ରମଗୁଡ଼ିକ\\\", \\\"pa\\\":\\\"ਕੋਰਸਿਸ\\\", \\\"ta\\\":\\\"பாடநெறிகள்\\\", \\\"te\\\":\\\"కోర్సులు\\\", \\\"ur\\\":\\\"کورسز\\\"}\"\n },\n {\n \"index\": 3,\n \"activityType\": \"Practice Question Set\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Practice Question Set\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Practice Question Set\",\n \"translations\": \"{\\\"en\\\": \\\"Practice question set\\\", \\\"as\\\": \\\"অনুশীলনৰ প্ৰশ্নৰ সমষ্টি\\\", \\\"bn\\\": \\\"অনুশীলনের প্রশ্ন সেট\\\", \\\"gu\\\":\\\"પ્રેક્ટિસ પ્રશ્ન સેટ\\\", \\\"hi\\\":\\\"अभ्यास प्रश्न संग्रह\\\", \\\"kn\\\":\\\"ಅಭ್ಯಾಸ ಪ್ರಶ್ನಾವಳಿ\\\", \\\"mr\\\":\\\"सराव प्रश्नसंच\\\", \\\"or\\\":\\\"ଅଭ୍ୟାସ ପ୍ରଶ୍ନପତ୍ର ସେଟ୍\\\", \\\"pa\\\":\\\"ਅਭਿਆਸ ਪ੍ਰਸ਼ਨ ਸੈੱਟ\\\", \\\"ta\\\":\\\"பயிற்சி கேள்வி தொகுப்பு\\\", \\\"te\\\":\\\"ప్రాక్టీస్ ప్రశ్న సెట్\\\", \\\"ur\\\":\\\"مشق سوال سیٹ\\\"}\"\n },\n {\n \"index\": 4,\n \"activityType\": \"eTextBook\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"eTextBook\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"eTextBook\",\n \"translations\": \"{\\\"en\\\": \\\"PDF TextBook\\\", \\\"as\\\": \\\"PDF পাঠ্যপুথি\\\", \\\"bn\\\": \\\"পাঠ্যপুস্তকের পিডিএফ\\\", \\\"gu\\\":\\\"PDF ટેક્સ્ટબુક\\\", \\\"hi\\\":\\\"PDF पाठ्यपुस्तकें\\\", \\\"kn\\\":\\\"ಪಿಡಿಎಫ್ ಪಠ್ಯಪುಸ್ತಕ\\\", \\\"mr\\\":\\\"PDF पाठ्यपुस्तक\\\", \\\"or\\\":\\\"PDF ପାଠ୍ୟପୁସ୍ତକ\\\", \\\"pa\\\":\\\"PDF ਪਾਠ ਪੁਸਤਕ\\\", \\\"ta\\\":\\\"பி.டீ.எப் பாடபுத்தங்கள்\\\", \\\"te\\\":\\\"PDF పాఠ్య పుస్తకం\\\", \\\"ur\\\":\\\"پی ڈی ایف درسی کتاب\\\"}\"\n },\n {\n \"index\": 5,\n \"activityType\": \"Teacher Resource\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Teacher Resource\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Teacher Resource\",\n \"translations\": \"{\\\"en\\\": \\\"Teaching Resource\\\", \\\"as\\\": \\\"শিক্ষাদানৰ সমলসমূহ\\\", \\\"bn\\\": \\\"শিক্ষার সংস্থান\\\", \\\"gu\\\":\\\"શિક્ષણ સંસાધનો\\\", \\\"hi\\\":\\\"शिक्षण संसाधन\\\", \\\"kn\\\":\\\"ಬೋಧನಾ ಸಂಪನ್ಮೂಲಗಳು\\\", \\\"mr\\\":\\\"शिक्षण संसाधने\\\", \\\"or\\\":\\\"ଶିକ୍ଷଣ ସଂସାଧନ\\\", \\\"pa\\\":\\\"ਅਧਿਆਪਨ ਦੇ ਸਰੋਤ\\\", \\\"ta\\\":\\\"கற்பித்தல் பொருள்\\\", \\\"te\\\":\\\"బోధనా వనరులు\\\", \\\"ur\\\":\\\" تدریسی وسائل \\\"}\"\n },\n {\n \"index\": 6,\n \"activityType\": \"Digital Textbook\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Digital Textbook\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Digital Textbook\",\n \"translations\": \"{\\\"en\\\": \\\"Digital textbooks\\\", \\\"as\\\": \\\"ডিজিটেল পাঠ্যপুথিসমূহ\\\", \\\"bn\\\": \\\"ডিজিটাল পাঠ্যবই\\\", \\\"gu\\\":\\\"ડિજિટલ પાઠયપુસ્તકો\\\", \\\"hi\\\":\\\"डिजिटल पाठ्यपुस्तकें\\\", \\\"kn\\\":\\\"ಡಿಜಿಟಲ್ ಪಠ್ಯಪುಸ್ತಕಗಳು\\\", \\\"mr\\\":\\\"डिजिटल पाठ्यपुस्तके\\\", \\\"or\\\":\\\"ଡିଜିଟାଲ୍ ପାଠ୍ୟପୁସ୍ତକ\\\", \\\"pa\\\":\\\"ਡਿਜੀਟਲ ਪਾਠ ਪੁਸਤਕਾਂ\\\", \\\"ta\\\":\\\"டிஜிட்டல் பாடப்புத்தகங்கள்\\\", \\\"te\\\":\\\"పాఠ్యపుస్తకాలు\\\", \\\"ur\\\":\\\" ڈیجیٹل درسی کتابیں \\\"}\"\n },\n {\n \"index\": 7,\n \"activityType\": \"Content Playlist\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Content Playlist\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Content Playlist\",\n \"translations\": \"{\\\"en\\\": \\\"Content Playlist\\\", \\\"as\\\": \\\"বিষয়বস্তুৰ প্লে'লিষ্ট\\\", \\\"bn\\\": \\\"কন্টেন্ট প্লেলিস্ট\\\", \\\"gu\\\":\\\"કન્ટેન્ટ જોવાનું લિસ્ટ\\\", \\\"hi\\\":\\\"कंटेन्ट प्लेलिस्ट\\\", \\\"kn\\\":\\\" ಪಠ್ಯಾಂಶ ಪ್ಲೇಲಿಸ್ಟ್\\\", \\\"mr\\\":\\\"सामग्री प्लेलिस्ट \\\", \\\"or\\\":\\\" କଣ୍ଟେଣ୍ଟ ପ୍ଲେଲିଷ୍ଟ\\\", \\\"pa\\\":\\\"ਕੰਟੇੇਂਟ ਪਲੇਲਿਸਟ\\\", \\\"ta\\\":\\\"உள்ளடக்க பிளேலிஸ்ட்\\\", \\\"te\\\":\\\"కంటెంట్ ప్లేజాబితా\\\", \\\"ur\\\":\\\" مواد پلے لسٹ \\\"}\"\n },\n {\n \"index\": 8,\n \"activityType\": \"TV Lesson\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Explanation Content\\\"],\\\"additionalCategories\\\":[\\\"TV Lesson\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"TV Lesson\",\n \"translations\": \"{\\\"en\\\": \\\"TV Class\\\", \\\"as\\\": \\\"টিভি শ্ৰেণীসমূহ\\\", \\\"bn\\\": \\\"টিভিতে সম্প্রচারিত শিক্ষাদানের অনুষ্ঠানগুলি\\\", \\\"gu\\\":\\\"TV વર્ગો\\\", \\\"hi\\\":\\\"टीवी कक्षाएँ\\\", \\\"kn\\\":\\\"ಟಿವಿ ತರಗತಿಗಳು\\\", \\\"mr\\\":\\\"टीव्ही वर्ग \\\", \\\"or\\\":\\\"TV କ୍ଲାସଗୁଡ଼ିକ\\\", \\\"pa\\\":\\\"ਟੀਵੀ ਕਲਾਸਾਂ\\\", \\\"ta\\\":\\\"தொலைக்காட்சி வகுப்புகள்\\\", \\\"te\\\":\\\"టీవీ క్లాసులు\\\", \\\"ur\\\":\\\" ٹی وی کلاسز\\\"}\"\n },\n {\n \"index\": 9,\n \"activityType\": \"Previous Board Exam Papers\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Learning Resource\\\"],\\\"additionalCategories\\\":[\\\"Previous Board Exam Papers\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Previous Board Exam Papers\",\n \"translations\": \"{\\\"en\\\": \\\"Earlier Year's Board Exam Papers\\\", \\\"as\\\": \\\"আগৰ বছৰৰ ব'ৰ্ডৰ পৰীক্ষাৰ প্ৰশ্নসমূহ\\\", \\\"bn\\\": \\\"আগের বছরের বোর্ড পরীক্ষার প্রশ্নপত্র\\\", \\\"gu\\\":\\\"ગત બોર્ડ પરીક્ષાના પેપર્સ\\\", \\\"hi\\\":\\\"पिछले वर्षों की बोर्ड परीक्षा पेपर\\\", \\\"kn\\\":\\\"ಹಿಂದಿನ ವರ್ಷಗಳ ಮಂಡಳಿ ಪರೀಕ್ಷೆ ಪ್ರಶ್ನೆಪತ್ರಿಕೆಗಳು\\\", \\\"mr\\\":\\\"मागील वर्षाचे बोर्ड परीक्षेचे पेपर \\\", \\\"or\\\":\\\"ପୂର୍ବ ବର୍ଷର ବୋର୍ଡ ପରୀକ୍ଷା ପ୍ରଶ୍ନପତ୍ର\\\", \\\"pa\\\":\\\"ਸ਼ੁਰੂਆਤੀ ਸਾਲ ਬੋਰਡ ਪ੍ਰੀਖਿਆ ਪੇਪਰ\\\", \\\"ta\\\":\\\"முந்தைய ஆண்டுகளில் போர்டு தேர்வுத் தாள்கள்\\\", \\\"te\\\":\\\"అంతకుముందు సంవత్సరం బోర్డు పరీక్షా పత్రాలు\\\", \\\"ur\\\":\\\"ابتدائی سالوں کے بورڈ کے امتحانی پرچے\\\"}\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"index\": 0: Specifies the index of the field.\n- \"activityType\": \"Explanation Content\": Indicates the type of activity, which is \"Explanation Content\" in this case.\n- \"objectType\": \"Content\": Specifies the object type, which is \"Content\".\n- \"isEnabled\": true: Indicates whether the activity is enabled or not, and it is set to true.\n- \"sortBy\": Specifies the sorting criteria for the activity.\n - \"name\": \"asc\": Indicates that the activity should be sorted in ascending order based on the \"name\" property.\n- \"searchQuery\": Specifies the search query to retrieve the activity data. It includes filters and fields to be included in the search results.\n- \"title\": \"Explanation Content\": Specifies the title or label for the activity, which is \"Explanation Content\".\n- \"translations\": Provides translations for the title in different languages. It is a JSON object where each key represents a language code, and the value represents the translation for the title." + }, + "response": [] + }, + { + "name": "Form Read (group__list__supported_activities)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"supported_activities\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"supported_activities\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (group__list__supported_activities)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"supported_activities\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:12:35 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "11739" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29992" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"2ddb-is1I0Ijq73PaSoHQy15Zyk1gh2k\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "14" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "11" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:12:35 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"850d599e-dab2-4bbf-a3a0-4f3a78032518\",\n \"msgid\": \"2931e5db-82eb-431a-8928-5afdf2838867\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"group\",\n \"subtype\": \"supported_activities\",\n \"action\": \"list\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"supported_activities\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"index\": 0,\n \"activityType\": \"Explanation Content\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Explanation Content\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Explanation Content\",\n \"translations\": \"{\\\"en\\\": \\\"Explanation Content\\\", \\\"as\\\": \\\"ব্যাখ্যা কৰা বিষয়বস্তু\\\", \\\"bn\\\": \\\"বিষয়বস্তুর ব্যাখ্যা\\\", \\\"gu\\\":\\\"એક્સપ્લેનેશન કન્ટેન્ટ\\\", \\\"hi\\\":\\\"स्पष्टीकरण सामग्री\\\", \\\"kn\\\":\\\"ವಿವರಣಾತ್ಮಕ ಪಠ್ಯಾಂಶ\\\", \\\"mr\\\":\\\"स्पष्टीकरण सामग्री\\\", \\\"or\\\":\\\"ବିସ୍ତାରିତ କଣ୍ଟେଣ୍ଟ୍\\\", \\\"pa\\\":\\\"ਵਿਆਖਿਆ ਕੰਟੇਂਟ\\\", \\\"ta\\\":\\\"விளக்க உள்ளடக்கம்\\\", \\\"te\\\":\\\"అర్థము కంటెంట్\\\", \\\"ur\\\":\\\"وضاحت کا مواد\\\"}\"\n },\n {\n \"index\": 1,\n \"activityType\": \"Learning Resource\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Learning Resource\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Learning Resource\",\n \"translations\": \"{\\\"en\\\": \\\"Learning module\\\", \\\"as\\\": \\\"শিক্ষণৰ ম'ডিউল\\\", \\\"bn\\\": \\\"প্রশিক্ষণ মডিউল\\\", \\\"gu\\\":\\\"શીખવાનું મોડ્યુલ\\\", \\\"hi\\\":\\\"अध्ययन मॉड्यूल\\\", \\\"kn\\\":\\\"ಕಲಿಕಾ ಮಾಡ್ಯೂಲ್\\\", \\\"mr\\\":\\\"अभ्यास विभाग\\\", \\\"or\\\":\\\"ଶିକ୍ଷଣ ମଡ୍ୟୁଲ\\\", \\\"pa\\\":\\\"ਸਿਖਲਾਈ ਮੋਡੀਊਲ\\\", \\\"ta\\\":\\\"கற்றல் மாடுயூல்\\\", \\\"te\\\":\\\"మాడ్యూల్ నేర్చుకోవడం\\\", \\\"ur\\\":\\\"سیکھنے کا ماڈیول\\\"}\"\n },\n {\n \"index\": 2,\n \"activityType\": \"Course\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Course\\\"],\\\"batches.status\\\":1,\\\"batches.enrollmentType\\\":\\\"open\\\",\\\"objectType\\\":[\\\"Content\\\"],\\\"status\\\":[\\\"Live\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Course\",\n \"translations\": \"{\\\"en\\\": \\\"Course\\\", \\\"as\\\": \\\"পাঠ্যক্ৰমসমুহ\\\", \\\"bn\\\": \\\"পাঠ্যধারাগুলি\\\", \\\"gu\\\":\\\"કોર્સ\\\", \\\"hi\\\":\\\"कोर्स\\\", \\\"kn\\\":\\\"ಕೋರ್ಸ್ ಗಳು\\\", \\\"mr\\\":\\\"कोर्सेस\\\", \\\"or\\\":\\\"ପାଠ୍ୟକ୍ରମଗୁଡ଼ିକ\\\", \\\"pa\\\":\\\"ਕੋਰਸਿਸ\\\", \\\"ta\\\":\\\"பாடநெறிகள்\\\", \\\"te\\\":\\\"కోర్సులు\\\", \\\"ur\\\":\\\"کورسز\\\"}\"\n },\n {\n \"index\": 3,\n \"activityType\": \"Practice Question Set\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Practice Question Set\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Practice Question Set\",\n \"translations\": \"{\\\"en\\\": \\\"Practice question set\\\", \\\"as\\\": \\\"অনুশীলনৰ প্ৰশ্নৰ সমষ্টি\\\", \\\"bn\\\": \\\"অনুশীলনের প্রশ্ন সেট\\\", \\\"gu\\\":\\\"પ્રેક્ટિસ પ્રશ્ન સેટ\\\", \\\"hi\\\":\\\"अभ्यास प्रश्न संग्रह\\\", \\\"kn\\\":\\\"ಅಭ್ಯಾಸ ಪ್ರಶ್ನಾವಳಿ\\\", \\\"mr\\\":\\\"सराव प्रश्नसंच\\\", \\\"or\\\":\\\"ଅଭ୍ୟାସ ପ୍ରଶ୍ନପତ୍ର ସେଟ୍\\\", \\\"pa\\\":\\\"ਅਭਿਆਸ ਪ੍ਰਸ਼ਨ ਸੈੱਟ\\\", \\\"ta\\\":\\\"பயிற்சி கேள்வி தொகுப்பு\\\", \\\"te\\\":\\\"ప్రాక్టీస్ ప్రశ్న సెట్\\\", \\\"ur\\\":\\\"مشق سوال سیٹ\\\"}\"\n },\n {\n \"index\": 4,\n \"activityType\": \"eTextBook\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"eTextBook\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"eTextBook\",\n \"translations\": \"{\\\"en\\\": \\\"PDF TextBook\\\", \\\"as\\\": \\\"PDF পাঠ্যপুথি\\\", \\\"bn\\\": \\\"পাঠ্যপুস্তকের পিডিএফ\\\", \\\"gu\\\":\\\"PDF ટેક્સ્ટબુક\\\", \\\"hi\\\":\\\"PDF पाठ्यपुस्तकें\\\", \\\"kn\\\":\\\"ಪಿಡಿಎಫ್ ಪಠ್ಯಪುಸ್ತಕ\\\", \\\"mr\\\":\\\"PDF पाठ्यपुस्तक\\\", \\\"or\\\":\\\"PDF ପାଠ୍ୟପୁସ୍ତକ\\\", \\\"pa\\\":\\\"PDF ਪਾਠ ਪੁਸਤਕ\\\", \\\"ta\\\":\\\"பி.டீ.எப் பாடபுத்தங்கள்\\\", \\\"te\\\":\\\"PDF పాఠ్య పుస్తకం\\\", \\\"ur\\\":\\\"پی ڈی ایف درسی کتاب\\\"}\"\n },\n {\n \"index\": 5,\n \"activityType\": \"Teacher Resource\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Teacher Resource\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Teacher Resource\",\n \"translations\": \"{\\\"en\\\": \\\"Teaching Resource\\\", \\\"as\\\": \\\"শিক্ষাদানৰ সমলসমূহ\\\", \\\"bn\\\": \\\"শিক্ষার সংস্থান\\\", \\\"gu\\\":\\\"શિક્ષણ સંસાધનો\\\", \\\"hi\\\":\\\"शिक्षण संसाधन\\\", \\\"kn\\\":\\\"ಬೋಧನಾ ಸಂಪನ್ಮೂಲಗಳು\\\", \\\"mr\\\":\\\"शिक्षण संसाधने\\\", \\\"or\\\":\\\"ଶିକ୍ଷଣ ସଂସାଧନ\\\", \\\"pa\\\":\\\"ਅਧਿਆਪਨ ਦੇ ਸਰੋਤ\\\", \\\"ta\\\":\\\"கற்பித்தல் பொருள்\\\", \\\"te\\\":\\\"బోధనా వనరులు\\\", \\\"ur\\\":\\\" تدریسی وسائل \\\"}\"\n },\n {\n \"index\": 6,\n \"activityType\": \"Digital Textbook\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Digital Textbook\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Digital Textbook\",\n \"translations\": \"{\\\"en\\\": \\\"Digital textbooks\\\", \\\"as\\\": \\\"ডিজিটেল পাঠ্যপুথিসমূহ\\\", \\\"bn\\\": \\\"ডিজিটাল পাঠ্যবই\\\", \\\"gu\\\":\\\"ડિજિટલ પાઠયપુસ્તકો\\\", \\\"hi\\\":\\\"डिजिटल पाठ्यपुस्तकें\\\", \\\"kn\\\":\\\"ಡಿಜಿಟಲ್ ಪಠ್ಯಪುಸ್ತಕಗಳು\\\", \\\"mr\\\":\\\"डिजिटल पाठ्यपुस्तके\\\", \\\"or\\\":\\\"ଡିଜିଟାଲ୍ ପାଠ୍ୟପୁସ୍ତକ\\\", \\\"pa\\\":\\\"ਡਿਜੀਟਲ ਪਾਠ ਪੁਸਤਕਾਂ\\\", \\\"ta\\\":\\\"டிஜிட்டல் பாடப்புத்தகங்கள்\\\", \\\"te\\\":\\\"పాఠ్యపుస్తకాలు\\\", \\\"ur\\\":\\\" ڈیجیٹل درسی کتابیں \\\"}\"\n },\n {\n \"index\": 7,\n \"activityType\": \"Content Playlist\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Content Playlist\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Content Playlist\",\n \"translations\": \"{\\\"en\\\": \\\"Content Playlist\\\", \\\"as\\\": \\\"বিষয়বস্তুৰ প্লে'লিষ্ট\\\", \\\"bn\\\": \\\"কন্টেন্ট প্লেলিস্ট\\\", \\\"gu\\\":\\\"કન્ટેન્ટ જોવાનું લિસ્ટ\\\", \\\"hi\\\":\\\"कंटेन्ट प्लेलिस्ट\\\", \\\"kn\\\":\\\" ಪಠ್ಯಾಂಶ ಪ್ಲೇಲಿಸ್ಟ್\\\", \\\"mr\\\":\\\"सामग्री प्लेलिस्ट \\\", \\\"or\\\":\\\" କଣ୍ଟେଣ୍ଟ ପ୍ଲେଲିଷ୍ଟ\\\", \\\"pa\\\":\\\"ਕੰਟੇੇਂਟ ਪਲੇਲਿਸਟ\\\", \\\"ta\\\":\\\"உள்ளடக்க பிளேலிஸ்ட்\\\", \\\"te\\\":\\\"కంటెంట్ ప్లేజాబితా\\\", \\\"ur\\\":\\\" مواد پلے لسٹ \\\"}\"\n },\n {\n \"index\": 8,\n \"activityType\": \"TV Lesson\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Explanation Content\\\"],\\\"additionalCategories\\\":[\\\"TV Lesson\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"TV Lesson\",\n \"translations\": \"{\\\"en\\\": \\\"TV Class\\\", \\\"as\\\": \\\"টিভি শ্ৰেণীসমূহ\\\", \\\"bn\\\": \\\"টিভিতে সম্প্রচারিত শিক্ষাদানের অনুষ্ঠানগুলি\\\", \\\"gu\\\":\\\"TV વર્ગો\\\", \\\"hi\\\":\\\"टीवी कक्षाएँ\\\", \\\"kn\\\":\\\"ಟಿವಿ ತರಗತಿಗಳು\\\", \\\"mr\\\":\\\"टीव्ही वर्ग \\\", \\\"or\\\":\\\"TV କ୍ଲାସଗୁଡ଼ିକ\\\", \\\"pa\\\":\\\"ਟੀਵੀ ਕਲਾਸਾਂ\\\", \\\"ta\\\":\\\"தொலைக்காட்சி வகுப்புகள்\\\", \\\"te\\\":\\\"టీవీ క్లాసులు\\\", \\\"ur\\\":\\\" ٹی وی کلاسز\\\"}\"\n },\n {\n \"index\": 9,\n \"activityType\": \"Previous Board Exam Papers\",\n \"objectType\": \"Content\",\n \"isEnabled\": true,\n \"sortBy\": [\n {\n \"name\": \"asc\"\n }\n ],\n \"searchQuery\": \"{\\\"request\\\":{\\\"filters\\\":{\\\"primaryCategory\\\":[\\\"Learning Resource\\\"],\\\"additionalCategories\\\":[\\\"Previous Board Exam Papers\\\"],\\\"status\\\":[\\\"Live\\\"],\\\"objectType\\\":[\\\"Content\\\"]},\\\"fields\\\":[\\\"name\\\",\\\"appIcon\\\",\\\"contentType\\\",\\\"identifier\\\",\\\"objectType\\\",\\\"createdBy\\\"]}}\",\n \"title\": \"Previous Board Exam Papers\",\n \"translations\": \"{\\\"en\\\": \\\"Earlier Year's Board Exam Papers\\\", \\\"as\\\": \\\"আগৰ বছৰৰ ব'ৰ্ডৰ পৰীক্ষাৰ প্ৰশ্নসমূহ\\\", \\\"bn\\\": \\\"আগের বছরের বোর্ড পরীক্ষার প্রশ্নপত্র\\\", \\\"gu\\\":\\\"ગત બોર્ડ પરીક્ષાના પેપર્સ\\\", \\\"hi\\\":\\\"पिछले वर्षों की बोर्ड परीक्षा पेपर\\\", \\\"kn\\\":\\\"ಹಿಂದಿನ ವರ್ಷಗಳ ಮಂಡಳಿ ಪರೀಕ್ಷೆ ಪ್ರಶ್ನೆಪತ್ರಿಕೆಗಳು\\\", \\\"mr\\\":\\\"मागील वर्षाचे बोर्ड परीक्षेचे पेपर \\\", \\\"or\\\":\\\"ପୂର୍ବ ବର୍ଷର ବୋର୍ଡ ପରୀକ୍ଷା ପ୍ରଶ୍ନପତ୍ର\\\", \\\"pa\\\":\\\"ਸ਼ੁਰੂਆਤੀ ਸਾਲ ਬੋਰਡ ਪ੍ਰੀਖਿਆ ਪੇਪਰ\\\", \\\"ta\\\":\\\"முந்தைய ஆண்டுகளில் போர்டு தேர்வுத் தாள்கள்\\\", \\\"te\\\":\\\"అంతకుముందు సంవత్సరం బోర్డు పరీక్షా పత్రాలు\\\", \\\"ur\\\":\\\"ابتدائی سالوں کے بورڈ کے امتحانی پرچے\\\"}\"\n }\n ]\n },\n \"created_on\": \"2023-04-17T13:38:02.342Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:12:35.441Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to configure the activity type in groups. It will allow the users to request more content.\n\n\n\nThe form configuration provided is used to enable users to browse content by specific categories such as courses, digital textbooks, and explanation content.\n\n\n\n**\\*Impact:** If this form is not configured, then the activity cards will be removed from the group." + }, + { + "name": "To configure the forum card_O", + "item": [ + { + "name": "Form Create (forum__create__group)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"forum\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"create\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"forum\",\n \"action\": \"create\",\n \"subType\": \"group\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"group_create\",\n \"action\": \"create\",\n \"fields\": [\n {\n \"category\": {\n \"name\": \"General Discussion\",\n \"pid\": \"30\",\n \"uid\": \"4\",\n \"description\": \"\",\n \"context\": [\n {\n \"type\": \"group\",\n \"identifier\": \"_groupId\"\n }\n ]\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"category\": Specifies the category of the field.\n - \"name\": \"General Discussion\": Indicates the name or title of the category, which is \"General Discussion\" in this case.\n - \"pid\": \"30\": Represents the parent ID of the category.\n - \"uid\": \"4\": Represents the unique ID of the category.\n - \"description\": \"\": Provides a description for the category, which is empty in this case.\n - \"context\": Specifies the context of the category, which determines how it is used or associated with other elements.\n - \"type\": \"group\": Indicates the type of context, which is a group in this case.\n - \"identifier\": \"_groupId\": Represents the identifier of the group associated with the category." + }, + "response": [] + }, + { + "name": "Form Read (forum__create__group)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"forum\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"create\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"forum\",\n \"action\": \"create\",\n \"subType\": \"group\",\n \"component\": \"portal\"\n \n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + }, + "description": "it is used to create the group with label \"General Discussion\"\n\n\n\n**\\*Impact: forum create feture will not work card will be removed**" + }, + "response": [ + { + "name": "Form Read (forum__create__group)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"forum\",\n \"action\": \"create\",\n \"subType\": \"group\",\n \"component\": \"portal\"\n \n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read\n", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read\n" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:14:44 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "622" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29991" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"26e-R4YOamPTZJSrQSXH4Zv/wYdAwaE\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "13" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "9" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:14:44 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"02824321-848c-430e-b09b-5c86da79f5da\",\n \"msgid\": \"5c383c83-3cbd-4b1c-b200-59bde0370eb1\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"forum\",\n \"subtype\": \"group\",\n \"action\": \"create\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"group_create\",\n \"action\": \"create\",\n \"fields\": [\n {\n \"category\": {\n \"name\": \"General Discussion\",\n \"pid\": \"6\",\n \"uid\": \"1\",\n \"description\": \"\",\n \"context\": [\n {\n \"type\": \"group\",\n \"identifier\": \"_groupId\"\n }\n ]\n }\n }\n ]\n },\n \"created_on\": \"2023-04-20T13:49:15.754Z\",\n \"last_modified_on\": \"2023-05-12T14:52:11.928Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:14:44.353Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form is used to create the group with the label \"General Discussion\".\n\n\n\n**\\*Impact:** If this form is not configured, then the forum create feature will not work and the card will be removed." + }, + { + "name": "To configure the search the content in group activity_O", + "item": [ + { + "name": "Form Create (framework__search__framework-code)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"framework\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"framework-code\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"framework\",\n \"action\": \"search\",\n \"subType\": \"framework-code\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"search\",\n \"fields\": [\n {\n \"framework\": \"TPD\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"templateName\": \"defaultTemplate\": Specifies the name of the template being used for the search action. In this case, it is \"defaultTemplate\".\n- \"action\": \"search\": Indicates that the action to be performed is a search operation.\n- \"fields\": Specifies the fields or criteria for the search operation.\n - \"framework\": \"TPD\": Represents a field with the key \"framework\" and the value \"TPD\". This indicates that the search operation is filtered based on the framework, where \"TPD\" is the framework value." + }, + "response": [] + }, + { + "name": "Form Read (framework__search__framework-code)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"framework\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"framework-code\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"search\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"framework\",\n \"action\": \"search\",\n \"subType\": \"framework-code\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (framework__search__framework-code)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"framework\",\n \"action\": \"search\",\n \"subType\": \"framework-code\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:17:26 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "503" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999996" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"1f7-rXZpZ+klwhDgiE+/2jicO26LLWs\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "20" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "10" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:17:26 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"4663a8ce-8e3f-4446-856a-19e0adcadb5d\",\n \"msgid\": \"8189969d-bf2e-483c-841f-1abf2feca3f6\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"framework\",\n \"subtype\": \"framework-code\",\n \"action\": \"search\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"search\",\n \"fields\": [\n {\n \"framework\": \"TPD\"\n }\n ]\n },\n \"created_on\": null,\n \"last_modified_on\": \"2020-10-09T08:56:10.245Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:17:26.880Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to search the content based on the framework \"TPD\".\n\n**\\*Impact:** Search will not work inside the group." + } + ], + "description": "These forms are called when the user lands on the Groups section of the application. The Form configuration enables users to:\n\n- Search for more content by specific categories\n- Configure the Forum card (a forum created for multiple users to engage in a discussion)" + }, + { + "name": "Help forms", + "item": [ + { + "name": "To configure the drop-down values in the report other issue field_O", + "item": [ + { + "name": "Form Create (config__reportIssue__faq)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"faq\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"reportIssue\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"reportIssue\",\n \"subType\": \"faq\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"faqReportIssue\",\n \"action\": \"reportIssue\",\n \"fields\": [\n {\n \"code\": \"category\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"placeHolder\": \"Select Category\",\n \"multiple\": false,\n \"hidden\": false,\n \"options\": [\n {\n \"value\": \"content\",\n \"label\": \"Content\"\n },\n {\n \"value\": \"loginRegistration\",\n \"label\": \"Login/Registration\"\n },\n {\n \"value\": \"teacherTraining\",\n \"label\": \"Teacher Training\"\n },\n {\n \"value\": \"otherissues\",\n \"label\": \"Other Issues\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n }\n ]\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"otherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ]\n }\n },\n {\n \"code\": \"subcategory\",\n \"context\": \"category\",\n \"type\": \"nested_select\",\n \"children\": {\n \"contentquality\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"contentnotplaying\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"contentavailability\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n },\n {\n \"code\": \"notify\",\n \"type\": \"checkbox\",\n \"templateOptions\": {\n \"label\": \"Notify me on availability\"\n }\n }\n ],\n \"contentotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"otpissue\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profilevalidation\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profiledetails\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"certificate\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"teacherid\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profileotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"teacherotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ]\n },\n \"templateOptions\": {\n \"placeHolder\": \"Select Subcategory\",\n \"multiple\": false,\n \"hidden\": false,\n \"options\": {\n \"loginRegistration\": [\n {\n \"value\": \"otpissue\",\n \"label\": \"OTP Issue\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"profilevalidation\",\n \"label\": \"Profile validation/No green tick on my profile\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profiledetails\",\n \"label\": \"Profile details incorrect\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"certificate\",\n \"label\": \"Certificate related\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"teacherid\",\n \"label\": \"Teacher id\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profileotherissues\",\n \"label\": \"Other issues\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n }\n ],\n \"content\": [\n {\n \"value\": \"contentquality\",\n \"label\": \"Content Quality\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentnotplaying\",\n \"label\": \"Content not playing/downloading\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentavailability\",\n \"label\": \"Content availability\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentotherissues\",\n \"label\": \"Other Issues\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n }\n ],\n \"teacherTraining\": [\n {\n \"value\": \"profilevalidation\",\n \"label\": \"Profile validation/No green tick on my profile\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profiledetails\",\n \"label\": \"Profile details incorrect\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"certificate\",\n \"label\": \"Certificate related\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"teacherotherissues\",\n \"label\": \"Other issues\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"code\": \"category\": Specifies the code or identifier of the field.\n- \"type\": \"nested_select\": Indicates that the field is a nested select type, which allows selecting options from a dropdown list.\n- \"templateOptions\": Provides additional options and configurations for the field's template.\n - \"placeHolder\": \"Select Category\": Sets the placeholder text for the select dropdown as \"Select Category\".\n - \"multiple\": false: Specifies whether multiple options can be selected. In this case, it is set to false, allowing only a single selection.\n - \"hidden\": false: Determines the visibility of the field. If set to true, the field will be hidden; otherwise, it will be visible.\n - \"options\": Specifies the available options for selection within the dropdown.\n - \"value\": \"content\": Represents the value associated with the option, which is \"content\" in this case.\n - \"label\": \"Content\": Indicates the label or display text for the option, which is \"Content\" in this case." + }, + "response": [] + }, + { + "name": "Form Read (config__reportIssue__faq)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"faq\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"reportIssue\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"reportIssue\",\n \"subType\": \"faq\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (config__reportIssue__faq)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"reportIssue\",\n \"subType\": \"faq\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:15:59 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "4893" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29990" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"131d-MHc0gocqTE0fivR34YMfEL3+yCc\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "9" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "13" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:15:59 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"7894aadc-5dfd-41c9-bc1b-8cf45d845df0\",\n \"msgid\": \"da246b55-4b54-4fdf-88b7-8a09ecac1c40\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"config\",\n \"subtype\": \"faq\",\n \"action\": \"reportissue\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"faqReportIssue\",\n \"action\": \"reportIssue\",\n \"fields\": [\n {\n \"code\": \"category\",\n \"type\": \"nested_select\",\n \"templateOptions\": {\n \"placeHolder\": \"Select Category\",\n \"multiple\": false,\n \"hidden\": false,\n \"options\": [\n {\n \"value\": \"content\",\n \"label\": \"Content\"\n },\n {\n \"value\": \"loginRegistration\",\n \"label\": \"Login/Registration\"\n },\n {\n \"value\": \"teacherTraining\",\n \"label\": \"Teacher Training\"\n },\n {\n \"value\": \"otherissues\",\n \"label\": \"Other Issues\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n }\n ]\n },\n \"validations\": [\n {\n \"type\": \"required\"\n }\n ],\n \"children\": {\n \"otherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ]\n }\n },\n {\n \"code\": \"subcategory\",\n \"context\": \"category\",\n \"type\": \"nested_select\",\n \"children\": {\n \"contentquality\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"contentnotplaying\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"contentavailability\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n },\n {\n \"code\": \"notify\",\n \"type\": \"checkbox\",\n \"templateOptions\": {\n \"label\": \"Notify me on availability\"\n }\n }\n ],\n \"contentotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"otpissue\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profilevalidation\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profiledetails\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"certificate\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"teacherid\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"profileotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ],\n \"teacherotherissues\": [\n {\n \"code\": \"details\",\n \"type\": \"textarea\",\n \"context\": null,\n \"templateOptions\": {\n \"label\": \"Tell us more\",\n \"placeHolder\": \"Enter Details\"\n },\n \"validations\": [\n {\n \"type\": \"maxLength\",\n \"value\": 1000\n }\n ]\n }\n ]\n },\n \"templateOptions\": {\n \"placeHolder\": \"Select Subcategory\",\n \"multiple\": false,\n \"hidden\": false,\n \"options\": {\n \"loginRegistration\": [\n {\n \"value\": \"otpissue\",\n \"label\": \"OTP Issue\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"profilevalidation\",\n \"label\": \"Profile validation/No green tick on my profile\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profiledetails\",\n \"label\": \"Profile details incorrect\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"certificate\",\n \"label\": \"Certificate related\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"teacherid\",\n \"label\": \"Teacher id\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profileotherissues\",\n \"label\": \"Other issues\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n }\n ],\n \"content\": [\n {\n \"value\": \"contentquality\",\n \"label\": \"Content Quality\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentnotplaying\",\n \"label\": \"Content not playing/downloading\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentavailability\",\n \"label\": \"Content availability\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n },\n {\n \"value\": \"contentotherissues\",\n \"label\": \"Other Issues\",\n \"dataSrc\": {\n \"action\": \"telemetry\"\n }\n }\n ],\n \"teacherTraining\": [\n {\n \"value\": \"profilevalidation\",\n \"label\": \"Profile validation/No green tick on my profile\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"profiledetails\",\n \"label\": \"Profile details incorrect\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"certificate\",\n \"label\": \"Certificate related\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n },\n {\n \"value\": \"teacherotherissues\",\n \"label\": \"Other issues\",\n \"dataSrc\": {\n \"action\": \"contactBoard\"\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"created_on\": \"2023-04-24T04:50:56.485Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:15:59.118Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form is used to configure/enable the drop-down values when the user wants to report issues in the application.\n\n- To enable the dropdown for the **Tell us more about the problem you faced** field when the user clicks on report other issue button\n \n\n\n\n**\\*Impact:** In the absence of this form, the user will be unable to report any issue as the dropdown will be unavailable to them.\n\n" + }, + { + "name": "To configure the time interval in debug mode_O", + "item": [ + { + "name": "Form Create (config__get__debugMode)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"debugMode\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"debugMode\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"debugMode\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"timeInterval\": \"900000\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"templateName\": \"debugMode\": Specifies the name of the template being used for the action. In this case, it is \"debugMode\".\n- \"action\": \"get\": Indicates that the action to be performed is to retrieve information.\n- \"fields\": Specifies the fields or criteria for the action.\n- \"timeInterval\": \"900000\": Represents a field with the key \"timeInterval\" and the value \"900000\". This indicates a time interval value of 900000." + }, + "response": [] + }, + { + "name": "Form Read (config__get__debugMode)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"config\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"debugMode\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"get\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"debugMode\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (config__get__debugMode)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"config\",\n \"action\": \"get\",\n \"subType\": \"debugMode\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:18:33 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "494" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29988" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"1ee-BQYGO0Ra+45kOxo144LOH/eiRX0\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "9" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "8" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:18:33 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"90133c4b-d57d-4843-b0fe-cef9c53fcfbc\",\n \"msgid\": \"bef486f9-ffc4-4350-a651-e391b4e170cd\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"config\",\n \"subtype\": \"debugmode\",\n \"action\": \"get\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"debugMode\",\n \"action\": \"get\",\n \"fields\": [\n {\n \"timeInterval\": \"900000\"\n }\n ]\n },\n \"created_on\": \"2023-04-24T04:53:48.162Z\",\n \"last_modified_on\": null,\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:18:33.757Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This form enables the user to configure the time interval in the debug mode. Users can customize the time as per their requirements.\n\n\n\n**\\*Impact:** If this form is not configured, it will consider the default time, i.e., 10 minutes to start the debug mode.\n\n" + } + ], + "description": "These forms are called when the user lands on the application's Help section. They are used to configure:\n\n- The drop-down values of the report other issue field\n- The time interval for debug mode" + }, + { + "name": "Certificate", + "item": [ + { + "name": "Form Create (certificate_course_certificatecreate)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"certificate\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"course\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"certificatecreate\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"certificate\",\n \"subtype\": \"course\",\n \"action\": \"certificatecreate\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"rootOrgId\": \"*\",\n \"data\": {\n \"enableSVGEditor\": false\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + } + }, + "response": [] + }, + { + "name": "Form Read (certificate_course_certificatecreate)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"certificate\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"course\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"certificatecreate\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"certificate\",\n \"action\": \"certificatecreate\",\n \"subType\": \"course\",\n \"component\": \"portal\"\n }\n}\n" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (certificate_course_certificatecreate)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{Authorization}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"certificate\",\n \"action\": \"certificateCreate\",\n \"subType\": \"course\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Wed, 28 Jun 2023 06:04:34 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "477" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999999" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"1dd-48L3zXOZkK0tX+8ZDDt2aQgdDNw\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3AygwYGrfv8Mpg1eG_DsCrQpL8PS0NHmcY.AU%2FnYhlgS19uhQrhOUQm70Binvd0xnEXh17lariblY4; Path=/; Expires=Wed, 28 Jun 2023 06:34:34 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "2804" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "0" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Wed, 28 Jun 2023 06:04:34 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"5fc9615c-6c5b-435e-a65e-f742645213ae\",\n \"msgid\": \"32111a10-5445-4968-9494-d9ca1992791d\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"certificate\",\n \"subtype\": \"course\",\n \"action\": \"certificatecreate\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"enableSVGEditor\": false\n },\n \"created_on\": \"2022-02-04T10:05:54.499Z\",\n \"last_modified_on\": \"2022-02-14T07:12:32.688Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-28T06:04:34.949Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form is used to enable the svg editor for the certificate." + }, + { + "name": "Program dashboard forms", + "item": [ + { + "name": "Called when a user clicks on Program Dashboard section_O", + "item": [ + { + "name": "Form Create (program-dashboard__reportData__csv-dataset)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"program-dashboard\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"csv-dataset\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"reportData\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"program-dashboard\",\n \"action\": \"reportData\",\n \"subType\": \"csv-dataset\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"program-dataset\",\n \"action\": \"create\",\n \"fields\": {\n \"improvementProject\": [\n {\n \"name\": \"Task Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-task-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"status_of_project\",\n \"value\": \"submitted\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-project-status-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status_of_project\",\n \"values\": \"$status_of_project\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status_of_project\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"submitted\",\n \"inProgress\"\n ]\n }\n ]\n },\n {\n \"name\": \"Filtered task detail report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-filtered-task-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"status_of_project\",\n \"value\": \"submitted\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"task_count\",\n \"value\": \"$task_count\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"task_evidence_count\",\n \"value\": \"$task_evidence_count\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"project_evidence_count\",\n \"value\": \"$project_evidence_count\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Minimum no. of tasks in the project\",\n \"controlType\": \"number\",\n \"reference\": \"task_count\",\n \"defaultValue\": 5\n },\n {\n \"label\": \"Minimum no. of task evidence\",\n \"controlType\": \"number\",\n \"reference\": \"task_evidence_count\",\n \"defaultValue\": 2\n },\n {\n \"label\": \"Minimum no. of project evidence\",\n \"controlType\": \"number\",\n \"reference\": \"project_evidence_count\",\n \"defaultValue\": 1\n }\n ]\n }\n ],\n \"observation\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-obs-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-obs-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\"\n ]\n }\n ]\n }\n ],\n \"observation_with_rubric\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-observation-with-rubric-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\",\n \"inprogress\"\n ]\n }\n ]\n },\n {\n \"name\": \"Domain Criteria Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-domain-criteria-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n }\n ],\n \"observation_with_rubric_no_criteria_level_report\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-observation-with-rubric-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\",\n \"inprogress\"\n ]\n }\n ]\n }\n ],\n \"survey\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-survey-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-survey-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"submission_status\",\n \"values\": \"$submission_status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$program_id\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solution_id\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"submission_status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\"\n ]\n }\n ]\n }\n ]\n }\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + }, + "description": "- \"name\": \"Task Report\": Specifies the name or label for the improvement project field, which is \"Task Report\" in this case.\n- \"encrypt\": true: Indicates that the data in this field should be encrypted.\n- \"datasetId\": \"ml-task-detail-exhaust\": Specifies the dataset ID for the improvement project field, which is set to \"ml-task-detail-exhaust\".\n- \"roles\": \\[\"PROGRAM_MANAGER\"\\]: Defines the roles that have access to this field, and in this case, only the \"PROGRAM_MANAGER\" role is allowed.\n- \"filters\": Specifies the filters to be applied to the dataset.\n - \"type\": \"equals\": Indicates that an equality filter should be applied.\n - \"dimension\": \"private_program\": Specifies the dimension or property of the dataset to filter on, which is \"private_program\" in this case.\n - \"value\": \"false\": Specifies the value that the dimension should be equal to, which is \"false\" in this case." + }, + "response": [] + }, + { + "name": "Form Read (program-dashboard__reportData__csv-dataset)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"program-dashboard\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"csv-dataset\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"reportData\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"program-dashboard\",\n \"action\": \"reportData\",\n \"subType\": \"csv-dataset\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (program-dashboard__reportData__csv-dataset)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "bearer...", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\": {\n \"type\": \"program-dashboard\",\n \"action\": \"reportData\",\n \"subType\": \"csv-dataset\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "https://dev.sunbirded.org/api/data/v1/form/read", + "protocol": "https", + "host": [ + "dev", + "sunbirded", + "org" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:11:24 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "10290" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "30000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "29993" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"2832-hymlTrqNX4LytAg5s8JDW99R+Ao\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3Afh4mcxitHuUHouLScoo07Y0ZiGfALUr-.7BsbuwfCGS%2BJDJck8VGum2tC0syYVb3p7ZI2nnycz8c; Path=/; Expires=Thu, 01 Jun 2023 09:41:24 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "176" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "9" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:11:24 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"8fa7f6df-90ba-4ee6-86dc-5d86d4df5494\",\n \"msgid\": \"c1e4f3a8-5cf8-4cc8-9111-d25b88204bd9\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"program-dashboard\",\n \"subtype\": \"csv-dataset\",\n \"action\": \"reportdata\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"program-dataset\",\n \"action\": \"create\",\n \"fields\": {\n \"improvementProject\": [\n {\n \"name\": \"Task Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-task-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"status_of_project\",\n \"value\": \"submitted\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-project-status-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status_of_project\",\n \"values\": \"$status_of_project\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status_of_project\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"submitted\",\n \"inProgress\"\n ]\n }\n ]\n },\n {\n \"name\": \"Filtered task detail report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-filtered-task-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"status_of_project\",\n \"value\": \"submitted\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"sub_task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"task_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"project_deleted_flag\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"task_count\",\n \"value\": \"$task_count\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"task_evidence_count\",\n \"value\": \"$task_evidence_count\"\n },\n {\n \"type\": \"greaterthan\",\n \"dimension\": \"project_evidence_count\",\n \"value\": \"$project_evidence_count\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Minimum no. of tasks in the project\",\n \"controlType\": \"number\",\n \"reference\": \"task_count\",\n \"defaultValue\": 5\n },\n {\n \"label\": \"Minimum no. of task evidence\",\n \"controlType\": \"number\",\n \"reference\": \"task_evidence_count\",\n \"defaultValue\": 2\n },\n {\n \"label\": \"Minimum no. of project evidence\",\n \"controlType\": \"number\",\n \"reference\": \"project_evidence_count\",\n \"defaultValue\": 1\n }\n ]\n }\n ],\n \"observation\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-obs-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-obs-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\"\n ]\n }\n ]\n }\n ],\n \"observation_with_rubric\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-observation-with-rubric-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\",\n \"inprogress\"\n ]\n }\n ]\n },\n {\n \"name\": \"Domain Criteria Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-domain-criteria-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n }\n ],\n \"observation_with_rubric_no_criteria_level_report\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-observation-with-rubric-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-observation-with-rubric-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"status\",\n \"values\": \"$status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\",\n \"inprogress\"\n ]\n }\n ]\n }\n ],\n \"survey\": [\n {\n \"name\": \"Question Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-survey-question-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"filters\": [\n {\n \"type\": \"equals\",\n \"dimension\": \"isAPrivateProgram\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"programId\",\n \"value\": \"$programId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solutionId\",\n \"value\": \"$solutionId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n },\n {\n \"type\": \"notequals\",\n \"dimension\": \"isSubmissionDeleted\",\n \"value\": \"true\"\n }\n ]\n },\n {\n \"name\": \"Status Report\",\n \"encrypt\": false,\n \"datasetId\": \"ml-survey-status-detail-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\",\n \"PROGRAM_DESIGNER\"\n ],\n \"configurableFilters\": true,\n \"filters\": [\n {\n \"type\": \"in\",\n \"dimension\": \"submission_status\",\n \"values\": \"$submission_status\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"private_program\",\n \"value\": \"false\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"program_id\",\n \"value\": \"$program_id\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"solution_id\",\n \"value\": \"$solution_id\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"district_externalId\",\n \"value\": \"$district_externalId\"\n },\n {\n \"type\": \"equals\",\n \"dimension\": \"organisation_id\",\n \"value\": \"$organisation_id\"\n }\n ],\n \"uiFilters\": [\n {\n \"label\": \"Status\",\n \"controlType\": \"multi-select\",\n \"reference\": \"submission_status\",\n \"placeholder\": \"Select status\",\n \"options\": [\n \"started\",\n \"completed\"\n ]\n }\n ]\n }\n ],\n \"user_detail_report\": [\n {\n \"name\": \"User Detail Report\",\n \"encrypt\": true,\n \"datasetId\": \"ml-program-user-exhaust\",\n \"roles\": [\n \"PROGRAM_MANAGER\"\n ],\n \"queryType\": \"cassandra\",\n \"filters\": [\n {\n \"table_name\": \"program_enrollment\",\n \"table_filters\": [\n {\n \"name\": \"program_id\",\n \"operator\": \"=\",\n \"value\": \"602512d8e6aefa27d9629bc3\"\n },\n {\n \"name\": \"user_locations['district_id']\",\n \"operator\": \"=\",\n \"value\": \"ed9e0963-0707-443a-99c4-5994fcac7a5f\"\n },\n {\n \"name\": \"organisation_id\",\n \"operator\": \"=\",\n \"value\": \"0126796199493140480\"\n },\n {\n \"name\": \"updated_at\",\n \"operator\": \">=\",\n \"value\": \"startDate\"\n },\n {\n \"name\": \"updated_at\",\n \"operator\": \"<=\",\n \"value\": \"endDate\"\n }\n ]\n },\n {\n \"table_name\": \"user_consent\",\n \"table_filters\": [\n {\n \"name\": \"object_id\",\n \"operator\": \"=\",\n \"value\": \"602512d8e6aefa27d9629bc3\"\n }\n ]\n }\n ]\n }\n ]\n }\n },\n \"created_on\": \"2023-04-28T11:20:35.707Z\",\n \"last_modified_on\": \"2023-05-17T10:41:44.877Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:11:24.903Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ], + "description": "This Form belongs to to ML Block" + } + ], + "description": "These Forms are used when the user clicks the program dashboard section." + }, + { + "name": "Miscellaneous Forms", + "item": [ + { + "name": "Form Create (user__list__personas)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"personas\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"list\",\n \"subType\": \"personas\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"code\": \"persona\",\n \"visible\": true,\n \"editable\": true,\n \"displayProperty\": \"Editable\",\n \"dataType\": \"text\",\n \"renderingHints\": {\n \"fieldColumnWidth\": \"twelve\"\n },\n \"description\": \"Select persona\",\n \"range\": [\n {\n \"index\": 1,\n \"label\": \"Teacher\",\n \"value\": \"teacher\"\n },\n {\n \"index\": 2,\n \"label\": \"Other\",\n \"value\": \"other\"\n }\n ],\n \"index\": 1,\n \"label\": \"Persona\",\n \"required\": true,\n \"name\": \"persona\",\n \"inputType\": \"select\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + } + }, + "response": [] + }, + { + "name": "Form Read (user__list__personas)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"user\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"personas\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"list\",\n \"subType\": \"personas\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (user__list__personas)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"user\",\n \"action\": \"list\",\n \"subType\": \"personas\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:41:46 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "854" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999989" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"356-SCdiNkUw6zrHrFBp+RJMW8AsCaw\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "2344" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "1" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:41:46 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"bae1dfaa-dee5-41f7-a077-3b801abfecec\",\n \"msgid\": \"ce9cef02-7fbf-4aee-ac2c-07116a533fa2\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"user\",\n \"subtype\": \"personas\",\n \"action\": \"list\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"defaultTemplate\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"code\": \"persona\",\n \"visible\": true,\n \"editable\": true,\n \"displayProperty\": \"Editable\",\n \"dataType\": \"text\",\n \"renderingHints\": {\n \"fieldColumnWidth\": \"twelve\"\n },\n \"description\": \"Select persona\",\n \"range\": [\n {\n \"index\": 1,\n \"label\": \"Teacher\",\n \"value\": \"teacher\"\n },\n {\n \"index\": 2,\n \"label\": \"Other\",\n \"value\": \"other\"\n }\n ],\n \"index\": 1,\n \"label\": \"Persona\",\n \"required\": true,\n \"name\": \"persona\",\n \"inputType\": \"select\"\n }\n ]\n },\n \"created_on\": \"2020-08-26T05:30:40.915Z\",\n \"last_modified_on\": \"2020-10-09T08:56:07.143Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:41:46.767Z\",\n \"ver\": \"1.0\"\n}" + } + ] + }, + { + "name": "Form Create (group__list__activities)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"activities\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"activities\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"templateName\": \"activities\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"isEnabled\": true,\n \"index\": 0,\n \"filters\": {\n \"contentType\": [\n \"Course\"\n ]\n },\n \"title\": \"ACTIVITY_COURSE_TITLE\",\n \"activityType\": \"Content\",\n \"desc\": \"ACTIVITY_COURSE_DESC\"\n },\n {\n \"isEnabled\": false,\n \"index\": 1,\n \"filters\": {\n \"contentType\": [\n \"TextBook\"\n ]\n },\n \"title\": \"ACTIVITY_TEXTBOOK_TITLE\",\n \"activityType\": \"Content\",\n \"desc\": \"ACTIVITY_TEXTBOOK_DESC\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + } + }, + "response": [] + }, + { + "name": "Form Read (group__list__activities)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"group\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"activities\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"list\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"activities\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (group__list__activities)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"group\",\n \"action\": \"list\",\n \"subType\": \"activities\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 09:44:35 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "806" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999988" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"326-NLXTS9vWWkxl21LyRAMilvcvRYI\"" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "447" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "11" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 09:44:35 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"5ef24418-1838-41ef-80f3-2eff5d6db978\",\n \"msgid\": \"10d924df-207e-4634-845e-2d27e4f8a1f9\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"group\",\n \"subtype\": \"activities\",\n \"action\": \"list\",\n \"component\": \"portal\",\n \"framework\": \"*\",\n \"data\": {\n \"templateName\": \"activities\",\n \"action\": \"list\",\n \"fields\": [\n {\n \"isEnabled\": true,\n \"index\": 0,\n \"filters\": {\n \"contentType\": [\n \"Course\"\n ]\n },\n \"title\": \"ACTIVITY_COURSE_TITLE\",\n \"activityType\": \"Content\",\n \"desc\": \"ACTIVITY_COURSE_DESC\"\n },\n {\n \"isEnabled\": false,\n \"index\": 1,\n \"filters\": {\n \"contentType\": [\n \"TextBook\"\n ]\n },\n \"title\": \"ACTIVITY_TEXTBOOK_TITLE\",\n \"activityType\": \"Content\",\n \"desc\": \"ACTIVITY_TEXTBOOK_DESC\"\n }\n ]\n },\n \"created_on\": \"2020-07-31T05:25:34.280Z\",\n \"last_modified_on\": \"2020-10-09T08:56:09.436Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T09:44:35.317Z\",\n \"ver\": \"1.0\"\n}" + } + ] + }, + { + "name": "Form Create (organization__sign-in__organization)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"organization\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"organization\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"sign-in\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + " pm.expect(requestBody.request).to.have.property(\"data\").to.be.an(\"object\")", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"organization\",\n \"action\": \"sign-in\",\n \"subType\": \"organization\",\n \"rootOrgId\": \"*\",\n \"component\": \"portal\",\n \"data\": {\n \"fields\": [\n {\n \"name\": \"TN Staging SSO\",\n \"loginUrl\": \"https://ops.staging.sunbirded.org/\"\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/create", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "create" + ] + } + }, + "response": [] + }, + { + "name": "Form Read (organization__sign-in__organization)_O", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Check request body\", function () {", + " const requestBody = JSON.parse(pm.request.body.raw)", + " pm.expect(requestBody.request).to.have.property(\"type\").to.equal(\"organization\");", + " pm.expect(requestBody.request).to.have.property(\"subType\").to.equal(\"organization\");", + " pm.expect(requestBody.request).to.have.property(\"action\").to.equal(\"sign-in\");", + " pm.expect(requestBody.request).to.have.property(\"component\").to.equal(\"portal\");", + "", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true, + "accept-encoding": true, + "connection": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"organization\",\n \"action\": \"sign-in\",\n \"subType\": \"organization\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "response": [ + { + "name": "Form Read (organization__sign-in__organization)", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + }, + { + "key": "Authorization", + "value": "{{kong_api_key}}", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"request\":{\n \"type\": \"organization\",\n \"action\": \"sign-in\",\n \"subType\": \"organization\",\n \"component\": \"portal\"\n }\n}" + }, + "url": { + "raw": "{{host}}/api/data/v1/form/read", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "data", + "v1", + "form", + "read" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Date", + "value": "Thu, 01 Jun 2023 10:21:15 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Content-Length", + "value": "530" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Vary", + "value": "Accept-Encoding" + }, + { + "key": "X-RateLimit-Limit-hour", + "value": "1000000" + }, + { + "key": "X-RateLimit-Remaining-hour", + "value": "999995" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "off" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=15552000; includeSubDomains" + }, + { + "key": "X-Download-Options", + "value": "noopen" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "X-Powered-By", + "value": "Express" + }, + { + "key": "ETag", + "value": "W/\"212-7JT8HE0CSe1kz6+6zhesFrNH3XM\"" + }, + { + "key": "set-cookie", + "value": "connect.sid=s%3AJfZWg0XSJLt2ZKgzwgckcaANRN8hNO9l.QJFfeJnUn0sH4jApRe%2BXySaNHTzdh5ERg2BrWI0%2BKeU; Path=/; Expires=Thu, 01 Jun 2023 10:51:15 GMT; HttpOnly" + }, + { + "key": "Access-Control-Allow-Origin", + "value": "*" + }, + { + "key": "X-Kong-Upstream-Latency", + "value": "3431" + }, + { + "key": "X-Kong-Proxy-Latency", + "value": "66" + }, + { + "key": "Via", + "value": "kong/0.14.1" + }, + { + "key": "X-Proxy-Cache", + "value": "MISS" + }, + { + "key": "X-Proxy-Cache-Date", + "value": "Thu, 01 Jun 2023 10:21:15 GMT" + } + ], + "cookie": [], + "body": "{\n \"id\": \"api.form.read\",\n \"params\": {\n \"resmsgid\": \"1cf96411-8753-4089-900d-35b63abae072\",\n \"msgid\": \"a8b03f75-79cf-46de-a5f7-26794f907416\",\n \"status\": \"successful\"\n },\n \"responseCode\": \"OK\",\n \"result\": {\n \"form\": {\n \"type\": \"organization\",\n \"subtype\": \"organization\",\n \"action\": \"sign-in\",\n \"component\": \"*\",\n \"framework\": \"*\",\n \"data\": {\n \"fields\": [\n {\n \"name\": \"TN Staging SSO\",\n \"loginUrl\": \"https://ops.staging.sunbirded.org/\"\n }\n ]\n },\n \"created_on\": \"2021-05-03T11:39:42.147Z\",\n \"last_modified_on\": \"2022-05-13T11:18:14.294Z\",\n \"rootOrgId\": \"*\"\n }\n },\n \"ts\": \"2023-06-01T10:21:15.627Z\",\n \"ver\": \"1.0\"\n}" + } + ] + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "const responseJson = pm.response.json();", + "pm.test(\"Successful POST request\", () => {", + " pm.expect(pm.response.code).to.be.oneOf([200, 201, 202]);", + "});", + "", + "pm.test(\"Response should be okay to process\", function () {", + " pm.response.to.not.be.error;", + " pm.response.to.not.have.jsonBody(\"error\");", + "});", + "", + "pm.test(\"Response must be valid and have a body\", function () {", + " pm.response.to.be.ok;", + " pm.response.to.be.withBody;", + " pm.response.to.be.json;", + "});", + "", + "pm.test(\"Checking for Errors\", () => {", + " if (responseJson.params.err) {", + " pm.expect(responseJson.params.err).to.eql(null);", + " pm.expect(responseJson.params.errmsg).to.eql(null);", + " pm.expect(responseJson.result).to.be.an('object');", + " pm.expect(responseJson.result).not.to.empty;", + " }", + "});" + ] + } + } + ], + "variable": [ + { + "key": "onlyMandatory", + "value": "true", + "type": "string" + } + ] +} \ No newline at end of file