Introduction:
This wiki give the details about Viewer Service API(s) Spec design details.
Base
...
Request Spec:
Code Block |
---|
{ "id": "api.view", // mandatoryrequired. id of the api request "ver": "1.0", // mandatoryrequired. Current version of api "ts": "2021-01-01T00:00:00+05:30", //mandatory. Timestamp of the request "params": { "msgid": "4f04da60-1e24-4d31-aa7b-1daf91c46341" // unique request message id, UUID }, request: { // request data // required } |
API Spec
Content View Start
Expand | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
Request Spec:
Sample Requests: Sample1: consume organic content
Sample2: consume content through collection
Sample3: consume content through context
Response: 200 Ok Response:
4XX or 5XX Error Response:
Sample Response:Sample1: Valid Request
Sample2: InValid Request
|
...
Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
Request:
Sample Requests: Sample1: Without Context
Sample1: With Context
Response:
|
...
Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
Request:
Sample Request: Sample1: Without Context
Sample2: With Context
Response:
|
...
Expand | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
Request:
Response:
Response:
Sample Response:Example1 Sample1: Without context
Example2: With context
|
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Request:
Response:
|
Content Assesment Read
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Request:
Response:
|
Viewer Summary - All enrolments
Expand | |||||
---|---|---|---|---|---|
| |||||
Response:
|
Viewer Summary - All enrolments
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
Response Sample Response: Sample1:
|
Viewer Summary - Specific enrolment
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Request:
Response:
|
...
For assessment submit, do we need consider the assess events without context as well
In the summary list api, if the context is program, how to show the program metadata