Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 As a sunbird system, it should have capability to associate/dissociate disassociate badge to/from course. Whenever any course batch is created, the batch inherits the associated badge. And the participant of the batch gets the same badge on completion of course.

...

We need to expose two API endpoint to associate/dissociate badge to course.


         POST coursebadging/v1/content/badgeassociation/associatecreate

Code Block
Request body :- 

{
	"request" : {
		"courseIdcontentId" : " ",
 		"badgeId"  : " ",
        "issuerId" : " "
	}
}

Response Body:-

{
    "id": "api.coursebadging.badgecontent.association.create",
    "ver": "v1",
    "ts": "2019-01-31 11:31:47:381+0530",
    "params": {
        "resmsgid": null,
        "msgid": "8e27cbf5-e299-43b0-bca7-8347f7e5abcf",
        "err": null,
        "status": "success",
        "errmsg": null
    },
    "responseCode": "OK",
    "result": {
        "response": "SUCCESS",
        "associationId":
"4613497f-653d-4be7-b437-3475fd685ca5"     }
}


        POST coursebadging/v1/content/badgeassociation/disassociatedelete

Code Block
Request Body :-

{
	"request" : {
		"courseIdcontent" : " ",
		"badgeId" : " ",
		"issuerId" : " "
	}
}

Response Body :-

{
	"id": "api.coursebadging.badgecontent.association.delete",
	"ver": "v1",
	"ts": "2019-01-31 11:31:47:381+0530",
	"params": {
		"resmsgid": null,
		"msgid": "8e27cbf5-e299-43b0-bca7-8347f7e5abcf",
		"err": null,
		"status": "success",
		"errmsg": null
	},
	"responseCode": "OK",
	"result": {
	"response": "SUCCESS"
	}
}

...