SunbirdED -Portal :: Copy Question Set feature #80
Replies: 3 comments 8 replies
-
@princegupta1131 Can you please share the code changes PR to understand the changes? Also what is the final service end point which will be referred from http://localhost:3000/content/questionset/v1/copy/do_2133979147196088321344 ? CC: @rajeevsathish @vinukumar-vs @PoojaJManjooran @kameshbhr @surendrasinghs @rajnishdargan @vaibhavbhuva @pallakartheekreddy @sajeshkayyath |
Beta Was this translation helpful? Give feedback.
-
Refer the below PR to onboard new API Refer this documentation to on-board new API |
Beta Was this translation helpful? Give feedback.
-
Hi @krgauraw unable to copy the question set in staging and was getting the below error could you please update these 2 Props [publish_type, migrationVersion] in the below variable and update the DevOps repo assessment.copy.props_to_remove=[“downloadUrl”, “artifactUrl”, “variants”, |
Beta Was this translation helpful? Give feedback.
-
in SunbirdED -Portal on a copy of the Question set, getting 400 bad server error
As per the suggestion, we have done the code level changes to copy the question set.
1. URL: {{host}}/questionset/v1/copy/{{questionset_id}}
2. Request Body: please use questionset instead of content
Post integration api throwing 401 Unauthorised Error
CURL
curl 'http://localhost:3000/content/questionset/v1/copy/do_2133979147196088321344' \ -H 'Accept: application/json' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -H 'Cookie: connect.sid=s%3AStewujMBObqoHrK7tIuqqI9m9bi3H49M.vsS4V%2F%2BDqhE5QyAqmaMFT9BmqecCG7zR81kzHORxMew' \ -H 'Origin: http://localhost:3000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:3000/resources/play/questionset/do_2133979147196088321344' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36' \ -H 'X-App-Id: local.sunbird.portal' \ -H 'X-App-Version: 6.0.0' \ -H 'X-Channel-Id: 01269878797503692810' \ -H 'X-Device-ID: d22678ad8b5cc0f76f63dc0e7f4d1480' \ -H 'X-Org-code: 01269878797503692810' \ -H 'X-Request-ID: 0892cc42-38c3-4214-8d29-c65a20d86191' \ -H 'X-Session-ID: RB7pvdtVRopF24OkoGYEUVUwfrYKGAIn' \ -H 'X-Source: web' \ -H 'X-User-ID: fca2925f-1eee-4654-9177-fece3fd6afc9' \ -H 'X-msgid: 0892cc42-38c3-4214-8d29-c65a20d86191' \ -H 'sec-ch-ua: "Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'ts: 2023-05-08T12:32:35+05:30' \ --data-raw '{"request":{"content":{"name":"Copy of Text type QuestionSet","description":"texts","code":"4dee29fe-1e63-1c0b-f249-9459a232bfe2.copy","creator":"Tn content creator","createdFor":["01269878797503692810"],"createdBy":"fca2925f-1eee-4654-9177-fece3fd6afc9","organisation":["Tamil nadu"],"framework":"tn_k-12_5","mimeType":"application/vnd.sunbird.questionset"}}}' \ --compressed
Discussion Link -> https://github.com/orgs/Sunbird-Ed/discussions/465
@sajeshkayyath @krgauraw can you please help us to fix this . ( might be API onboarding script is missing in ED)
CC: @rajeevsathish @vinukumar-vs @PoojaJManjooran @kameshbhr @surendrasinghs @rajnishdargan @vaibhavbhuva @pallakartheekreddy
Beta Was this translation helpful? Give feedback.
All reactions