Sessions API

(0 reviews)
Session - A period of time in which assessments are taking place

home

Overview:

Sessions API is used to fetch sessions data from EPS and CAMS based upon query parameters provided with the request.

API MethodREST EndpointDescriptionConsumers
1.GET/{version}/businessStreams/{businessStreamId}/sessionsList of sessions in a year for a business streamEMOD, Teach Cambridge
2.GET/{version}/businessStreams/{businessStreamId}/sessions/{sessionId}Get details of a particular session for CI, CE or OCREMOD, Teach Cambridge
3.GET/{version}/vocational-qualifications/sessionsGet details of Vocational Qualification SessionsNot Used
4.GET/{version}/epsStatusGet server status of MEPS and OEPS , whether the server is UP or DOWNEMOD

Flow Diagram and Description:

resources/image-9137da58-6390-4a79-b1ad-76f896fa65fa.png

  1. Get list of Sessions : Get List of sessions for any business stream. Also Session data could be filtered for a year, qualification and assessment
  2. Get Session details : Get session details start date, end date, Session Type and status for one Session Id
  3. Get Vocational Qualification Session Details : Get vocational qualification details Annual or specific period, start date, end date.. etc. Also data can be filtered for one Qualification Group (Say, Cambridge Technicals)
  4. Get EPS Status Session Details : Get Eps status details is used to check the meps and oeps database servers are up

Sequence Diagram:

resources/image-5877d669-7a85-4571-989c-d619f02815bb.png

Steps In Sequence Diagram

NoStepsDescription
1.Input Request MessageThe sessions invokes the mule services along with credentials (client id and client secret) and XTRANSACTION-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/ca-cams-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 databaseEps/Cams Service System API establishes the connection with the database to retrieve the data from the database.
9.a) Oracle connection Exception b) On Oracle 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.

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:


Sessions Experience API : /v1/businessStreams/{businessStreamId}/sessions

TopicDetails
1.Operation DescriptionRetrieve sessions details from EPS
2.URIGET: /{version}/businessStreams/{businessStreamId}/sessions
3.Interface SourceSessions Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-sessions-qa1/v1/businessStreams/01/sessions
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Sessions Experience API : /v1/businessStreams/{businessStreamId}/sessions/{sessionId}

TopicDetails
1.Operation DescriptionRetrieve sessions data with session ID from EPS
2.URIGET: /{version}/businessStreams/{businessStreamId}/sessions/{sessionId}
3.Interface SourceSessions Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-sessions-qa1/v1/businessStreams/01/sessions/8
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Sessions Experience API : /v1/vocational-qualifications/sessions

TopicDetails
1.Operation DescriptionReturn a list of data based on query params provided in request from CAMS.
2.URIGET: /{version}/vocational-qualifications/sessions
3.Interface SourceSessions Application
4.Interface Targetca-cams-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPS
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-sessions-qa1/v1/vocational-qualifications/sessions
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Sessions Experience API : /v1/epsStatus

TopicDetails
1.Operation DescriptionGet server status of MEPS and OEPS , whether the server is UP or DOWN
2.URIGET: /{version}/epsStatus
3.Interface SourceSessions Application
4.Interface Targetca-eps-sapi
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTPs
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/ca-sessions-qa1/v1/epsStatus
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Reviews