Results API

(0 reviews)
API to get the results issued/released dates from OCR - Interchange , Centre /Qualification level embargos(exceptions) from CI - Direct and Scripts details & Candidate Result Status from EPS.

home

Overview:

  • This API is used to fetch results issued/released dates from OCR or CI view, fetch candidate data and fetch and post the script data from RM API
  • Its being used by ATS consumers to get the results data.
API MethodREST EndpointDescriptionConsumers
1.GET/{version}/businessStreams/{businessStreamId}/sessions/{sessionId}/enquireServicesGet OCR-Interchange Results, Issued Result Dates(CI) and Released Result Dates(CI)ATS
2.POST/{version}/candidates/scriptsPOST candidate resultsATS
3.GET/{version}/candidates/scripts/pdf/{docStorePageId}GET RM scriptsATS
4.GET/{version}/candidates/resultStatus/businessStream/{businessStreamId}/sessions/{sessionId}/ centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}GET result issue status of candidate from EPSATS
5.GET/{version}/businessStreams/{businessStreamId}/qpIdentifiersGet the question paper details from LIBS for both CI & OCRATS
6.GET{version}/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}/components/{componentId}/resultEnquiryStatusGet the Result enquiry statusATS
7.GET{version}/businessStream/{businessStreamId}/sessions/{sessionId}/resultStatusGet the Result statusATS

API architecture:

resources/image-df3386ee-0f7e-4f6f-8f02-e63908d59e6e.png

resources/image-4be303e1-a018-4467-ab8b-6323732ed01e.png

resources/image-cf1de0f2-b153-4d8a-8de3-02c753ecdf60.png

resources/image-953e91ad-e3ed-4414-b34b-245187676e0b.png

Sequence Diagram and Description:

ORS/CI DIRECT Results

resources/image-1102d575-0027-4760-97a3-f809a619301d.png

ORS Results

Resource : GET: /v1/businessStreams/01/sessions/{ sessionId}/enquireServices

NoStepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) and X-TRANSACTION-ID(A code to track API calls end to end) via Mule Soft Secure API layer with the proper query params
2.Validate the user CredentialsDesktop user credentials are validated by the security API mule gateway layer
3.If validation fails, service returns specific fault responseIf validation fails, service returns specific fault response
4.Send the request to Experience Layer APIThe Mule soft experience API Experience layer validated users request query parameters will redirect to the specific system API.
5.Send the request to System Layer APIThe request is processed further to ca -interchange-sapi where it calls the stored procedure.
6.If Validation fails, service returns specific fault responseIf the request gets failed during the validation the exception is thrown by the System API to the Experience API secure layer.
7.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
8.Connect to the databaseOCR Service System API establishes the connection with the database to retrieve the data from the database using Stored Procedure
9.a) Generic SQL connection Exception b) On connection failure, return error messageIf there is any connection failure during the step 5, the Oracle Exception is thrown by the service.
10.On successful connection,retrieve the data of entries, components, sessions, qualifications and center from database.After establishing successful DB connection, data of specific resource is retrieved from respective views.
11.Return responseReturns the success response.

CI Direct Results

Resource : GET: /v1/businessStreams/02/sessions/{sessionId}/enquireServices

NoStepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) and X-TRANSACTION-ID(A code to track API calls end to end) via Mule Soft Secure API layer with the proper query params
2.Validate the user CredentialsDesktop user credentials are validated by the security API mule gateway layer
3.If validation fails, service returns specific fault responseIf validation fails, service returns specific fault response
4.Send the request to Experience Layer APIThe Mule soft experience API Experience layer validated users request query parameters will redirect to the specific system API.
5.If resultDateType is equal to issueThe request is processed further to call SP dbo.CentreWiseEmbargoInfo
6.If resultDateType is equal to releaseThe request is processed further to call SP dbo.Result_Release_Date_Validation
7.If Validation fails, service returns specific fault responseIf the request gets failed during the validation the exception is thrown by the System API to the Experience API secure layer.
8.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
9.Connect to the databaseSystem API establishes the connection with the database to retrieve the data from the database.
10.a) SQLServer connection Exception b) On SQL Server connection failure, return error messageIf there is any connection failure during the step 5, the SQL Exception is thrown by the service.
11.On successful connection,retrieve the data of entries, components, sessions, qualifications and center from database.After establishing successful DB connection, data of specific resource is retrieved from respective views.
12.Return responseReturns the success response.

RM Post Scripts/ Get PDF

Resources

POST: \v1\candidates\scripts

GET: \v1\candidates\scripts\pdf(docStorePageId)

resources/image-d9f25f6f-8115-480e-b7be-f742d647f024.png

NoStepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) and X-TRANSACTION-ID(A code to track API calls end to end) via Mule Soft Secure API layer with the proper query params
2.Validate the user CredentialsDesktop user credentials are validated by the security API mule gateway layer
3.If validation fails, service returns specific fault responseIf validation fails, service returns specific fault response
4.Send the request to specific Led layered apiThe Mule soft experience API secure layer validated users request query parameters will redirect to the specific system API.
5.Validate the requestThe request is validated in the Mule System service API and if passed only then it is processed further to ca-eps-sapi
6.If Validation fails, service returns specific fault responseIf the request gets failed during the validation the exception is thrown by the System API to the Experience API secure layer.
7.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
8.Successful call to System APIThe request is processed further to call RM AUTH API
9.If RM token is generated successfullyThe request is processed further to call RM Post Scripts API
10.Connect to the RMSystem API establishes the connection with the RM to POST the data.
11.Return responseReturns the success response.

Get Issues Status from EPS

resources/image-03dbb5a5-96ce-464d-8521-1c620e2a08ba.png


Resource : GET: /v1/candidates/resultStatus/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}

NoStepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) and X-TRANSACTION-ID(A code to track API calls end to end) via Mule Soft Secure API layer with the proper query params
2.Validate the user CredentialsDesktop user credentials are validated by the security API mule gateway layer
3.If validation fails, service returns specific fault responseIf validation fails, service returns specific fault response
4.Send the request to specific Led layered apiThe Mule soft experience API secure layer validated users request query parameters will redirect to the specific system API.
5.Validate the requestThe request is validated in the Mule System service API and if passed only then it is processed further to ca-eps-sapi
6.If Validation fails, service returns specific fault responseIf the request gets failed during the validation the exception is thrown by the System API to the Experience API secure layer.
7.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
8.Successful call to System APIThe request is processed further to call RM AUTH API
9.If token validation is successfulThe request is processed further to call EPS GET Issued Status API
10.Connect to the EPS DBSystem API establishes the connection with the EPS to GET the data from SP.
11.Return responseReturns the success response.

GET CI Results from LIBS

resources/image-177a8350-a188-4252-9d48-e9cbcd085dab.png

Resource : GET: /v1/businessStreams/02/qpIdentifiers

NoStepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) and X-TRANSACTION-ID(A code to track API calls end to end) via Mule Soft Secure API layer with the proper query params
2.Validate the user CredentialsDesktop user credentials are validated by the security API mule gateway layer
3.If validation fails, service returns specific fault responseIf validation fails, service returns specific fault response
4.Send the request to specific Led layered apiThe Mule soft experience API secure layer validated users request query parameters and uri parameters will redirect to the specific system API.
5.Validate the requestThe request is validated in the Mule System service API and if passed only then it is processed further to ca-eps-sapi
6.If Validation fails, service returns specific fault responseIf the request gets failed during the validation the exception is thrown by the System API to the Experience API secure layer.
7.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
8.Connect to the databaseSystem API establishes the connection with the database to retrieve the data from the database.
9.a) Database connection Exception b) On Database connection failure, return error messageIf there is any connection failure during the step 5, the Exception is thrown by the service.
10.On successful connection,retrieve the data of entries, components, sessions, qualifications and center from database.After establishing successful DB connection, data of specific resource is retrieved from respective views.
11.Return responseReturns the success response.

Exception Handling:

  • Custom Error handler is used to handle API Kit errors as well as user defined errors.
  • HTTP endpoints have been configured with reconnection strategies with maximum of 2 retry attempts.

End Point details:


Results Experience API : /v1/businessStreams/{businessStreamId}/sessions/{sessionId}/enquireServices

TopicDetails
1.Operation DescriptionRetrieve results data from OCR/CI Direct Database
2.URIGET: /v1/businessStreams/{businessStreamId}/sessions/{sessionId}/enquireServices
3.Interface SourceATS Application
4.Interface Targetca-results-xapi 
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-results-qa1/v1/businessStreams/01/sessions/3269/enquireServices?qualificationGroupId=1, https://apis-sandbox.cambridgeassessment.org.uk/ca-results-qa1/v1/businessStreams/02/sessions/16884/enquireServices?resultDateType=release&offset=0&limit=100¢reId=1126
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : \v1\candidates\scripts

TopicDetails
1.Operation DescriptionAllows custmer to create the customerDirectives ATS request in RM
2.URIPOST: \v1\candidates\scripts
3.Interface SourceATS Application
4.Interface Targetca-rm-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-results-qa1/v1/candidates/scripts
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : \v1\candidates\scripts\pdf{docStorePageId}

TopicDetails
1.Operation DescriptionTo Retrieve scripts from RM
2.URIGET: \v1\candidates\scripts\pdf{docStorePageId}
3.Interface SourceATS Application
4.Interface Targetca-rm-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-results-qa1/v1/candidates/scripts
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : /v1/candidates/resultStatus/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}

TopicDetails
1.Operation DescriptionGET Result Issue status of Candidate from EPS
2.URIGET: /{version}/candidates/resultStatus/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}
3.Interface SourceATS Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPs
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-results-qa1/v1/candidates/resultStatus/businessStream/02/sessions/14244/centres/04200/candidateNumber/1804/assessments/0500
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : /v1/businessStreams/{businessStreamId}/qpIdentifiers

TopicDetails
1.Operation DescriptionGet the Question Paper details from LIBS for both CI & OCR
2.URIGET: /{version}/businessStreams/{businessStreamId}/qpIdentifiers
3.Interface SourceATS Application
4.Interface Targetca-libs-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-libs-sapi-dev/api/v1/businessStreams/02/qpIdentifers?sessionId=19722&assessmentCode=9239&assessmentVersion=4&componentId=03
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : v1/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}/components/{componentId}/resultEnquiryStatus

TopicDetails
1.Operation DescriptionGet the result enquiry status
2.URIGET: /{version}/businessStream/{businessStreamId}/sessions/{sessionId}/centres/{centreId}/candidateNumber/{candidateNumber}/assessments/{assessmentCode}/components/{componentId}/resultEnquiryStatus
3.Interface SourceATS Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttp://apis-sandbox.cambridgeassessment.org.uk/ca-results-xapi-qa1/api/v1/businessStream/04/sessions/3229/centres/43319/candidateNumber/8129/assessments/R031/components/02/resultEnquiryStatus
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Results Experience API : v1/businessStream/{businessStreamId}/sessions/{sessionId}/resultStatus

TopicDetails
1.Operation DescriptionGet the result status
2.URIGET: /{version}/businessStream/{businessStreamId}/sessions/{sessionId}/resultStatus
3.Interface SourceATS Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttp://apis-sandbox.cambridgeassessment.org.uk/ca-results-xapi-qa1/api/v1/businessStream/04/sessions/3229/resultStatus
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Reviews