Cleaning up and review of the APIs at the /credentials path is required wrt the Sunbird RC Swagger docs along with an evaluation of APIs that are completely or partially unimplemented.
APIs
Obtain Credentials by Subject or Issuer
Currently implemented here.
The request body implemented differs from request body expected according to RC Swagger Docs, as such the DTO may be needed to be updated.
Obtain Credential by ID
This API (implemented here) is currently bugged and returns only an empty array.
The RC docs again stipulate additional header parameters here which are not being handled currently.
Issue a Credential
The request body currently takes in the entire credential schema when RC docs expect only a string.
Render a Credential
This API is currently bugged (returns 500 on first call, but rendered PDF on the second). The current implementation also has other issues for which I'll create a dedicated issue soon.
Tasks
[x] Review and modify request body for API to Obtain Credentials by Subject or Issuer
[x] Review and modify request body for API to Obtain Credential by ID
[x] Review and modify request body for API to Issue a Credential
[x] Fix the bug that returns an empty array for API to Obtain Credential by ID
[x] Implement or discard API to Update Credential Status
[x] Implement or discard API to Derive a Credential
[x] Review and address the bug in Render Credential API
Description
Cleaning up and review of the APIs at the /credentials path is required wrt the Sunbird RC Swagger docs along with an evaluation of APIs that are completely or partially unimplemented.
APIs
Obtain Credentials by Subject or Issuer Currently implemented here. The request body implemented differs from request body expected according to RC Swagger Docs, as such the DTO may be needed to be updated.
Obtain Credential by ID This API (implemented here) is currently bugged and returns only an empty array. The RC docs again stipulate additional header parameters here which are not being handled currently.
Issue a Credential The request body currently takes in the entire credential schema when RC docs expect only a string.
Update Credential Status This API endpoint is currently not implemented.
Derive a Credential This API endpoint to derive a credential is currently not implemented.
Render a Credential This API is currently bugged (returns 500 on first call, but rendered PDF on the second). The current implementation also has other issues for which I'll create a dedicated issue soon.
Tasks