cupa-ept-recruitment-xapi

(0 reviews)

home

Overview:

• This interfaces triggers an action in SAP to create and update the vendor master data in SAP HCM.

• cupa-ept-recruitement-xapi is an experience API which sent the ept recruitement related data to SAP system via
system API.

API MethodREST EndpointDescriptionConsumers
1.POST/{version}/registerPost the data in SAP HCM
2.PUT/{version}/registerUpdate the data in SAP HCM
3.GET/{version}/searchSearch the data in SAP HCM

resources/image-b25e132b-434a-4592-8943-02d300fa8e67.png

1. Flow Diagram and Description:

• The application is used to create and update the assessor data in SAP.

resources/image-9ff59aa7-7a08-4c1f-a11a-6e63a4e24c84.png

2. Flow Diagram and Description:

The Portal Team will send the data for create, update, notify and search to SAP.

Sequence Diagram and Description:

No.StepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) via Mule Soft Secure API layer with the proper payload.
2Validate 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.Successful call to System APIThe request is processed further to call cupa-sap-hcm-sapi system API which calls the SAP.
5.Validate the requestThe request is validated in the cupa-ept-recruitment-xapi and if passed only then it is processed further to call cupa-sap-hcm-sapi.
6.Successful responseThe sucessful response we wil get from the SAP.
7.Fault message redirection by the UserWhen Experience API layer Fails then it returns error message to the consumers
8.If Validation fails, service returns specific fault responseIf the request gets failed during the validation It will throw error back.
11.Return responseReturns the success response.

resources/image-fa7772e3-7ac3-4c02-9089-3084ded786d8.png

Exception Handling:

  • Custom Error handler is used to handle API Kit errors as well as user defined errors.

Endpoints:

1. To Create EPT recruitement

POST:/register

description: The create ept recruitement request sent to SAP system via system API to create the assessor

TopicDetails
1.Operation DescriptionCreate the assessor profile
2.URI/api/v1/register
3.MethodPOST
4.Reponse{"ASP_ID": "00807485"}
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTP
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/cupa-ept-recruitment-xapi-dev/api/v1/register
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply
2. To Update EPT recruitement

PUT:/register

description: The Update ept recruitement request sent to SAP system via system API to Update the assessor

TopicDetails
1.Operation DescriptionUpdate the assessor profile
2.URI/api/v1/register
3.MethodPUT
4.Reponse{"message": "Assessor data is successfully updated"}
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTP
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/cupa-ept-recruitment-xapi-dev/api/v1/register
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply
3. Search Assessor

GET:/search

description: This interface will be used to check whether an assessor is new or existing. If no match is found in SAP, it signifies that the assessor applicant is new. Conversely, if a match is found, it indicates that the assessor already exists, and this information will be flagged to the admin user in the new assessor portal.

Interaction Diagram:

resources/image-eaf5d5f5-4d54-4f79-ac7f-c8bbc5cf9a67.png

Sequence Diagram:

resources/image-9d302d87-d66e-4d47-af0b-35e18f53dcab.png

Steps in Sequence Diagram:

No.StepsDescription
1.Input Request MessageThe consumer invokes the mule services along with credentials (client id and client secret) via Mule Soft Secure API layer with the proper payload.
2Validate 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.Successful call to System APIThe request is processed further to call cupa-sap-hcm-sapi system API which calls the REST API(ODATA).
5.Successful responseThe successful response we will get from the REST API(ODATA).
6.If Validation fails, service returns specific fault responseIf the request gets failed during the validation It will throw error back.
7.Return responseReturns the success response.
TopicDetails
1.Operation DescriptionSearch the assessor profile
2.URI/api/v1/search
3.MethodGET
4.Reponse[{"ASP_ID": "00807485"},"FirstName": "Alazzawi","LastName": "Taylor","email": "rashmi.test@test.in","accountStatus": "ACTIVE"}]
5.Synchronous/AsynchronousSynchronous
6.ProtocolHTTP
7.URLhttps://apis-sandbox.cambridgeassessment.org.uk/cupa-ept-recruitment-xapi-dev/api/v1/search
8.Mode of Communication☐ Batch ☐ Message ☒ Real Time
9.Interface Pattern☐ Publish / Subscribe ☒ Request / Reply

Reviews