-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MOSIP-33486 Prereg new APIs Signed-off-by: NitinHegde <[email protected]> * MOSIP-33486 Prereg new APIs Signed-off-by: NitinHegde <[email protected]> --------- Signed-off-by: NitinHegde <[email protected]>
- Loading branch information
1 parent
f6064b6
commit 07af3c2
Showing
14 changed files
with
215 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
apitest/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FetchAvailabilityDataByCenterID: | ||
Prereg_FetchAvailabilityDataByCenterID_All_Valid_Smoke_sid: | ||
endPoint: /preregistration/v1/applications/appointment/slots/availability/10003 | ||
description: Fetch the available data by center ID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityData | ||
outputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityDataResult | ||
input: '{ | ||
"registrationCenterId": "10003" | ||
}' | ||
output: '{ | ||
"regCenterId": "10003" | ||
}' | ||
Prereg_FetchAvailabilityData_inValid_CenterID_Smoke_sid: | ||
endPoint: /preregistration/v1/applications/appointment/slots/availability/{registrationCenterId} | ||
description: Fetch the available data by invalid center ID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityData | ||
outputTemplate: preReg/error | ||
input: '{ | ||
"registrationCenterId": "@#@$W#" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "KER-MSD-215" | ||
} | ||
] | ||
}' |
3 changes: 3 additions & 0 deletions
3
apitest/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityData.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"registrationCenterId": "{{registrationCenterId}}" | ||
} |
5 changes: 5 additions & 0 deletions
5
apitest/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityDataResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"response": { | ||
"regCenterId": "{{regCenterId}}" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
GetApplicationStatusByApplicationID: | ||
Prereg_GetApplicationStatusByApplicationID_All_Valid_Smoke_sid: | ||
endPoint: /preregistration/v1/applications/status/{applicationId} | ||
description: Retrieve the application status by application ID | ||
role: batch | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID | ||
outputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult | ||
input: '{ | ||
"applicationId": "52917592714578" | ||
}' | ||
output: '{ | ||
"response": "Cancelled" | ||
}' | ||
Prereg_GetApplicationStatusByApplicationID_InValid_applicationId: | ||
endPoint: /preregistration/v1/applications/status/{applicationId} | ||
description: Retrieve the application status by invalid application ID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID | ||
outputTemplate: preReg/error | ||
input: '{ | ||
"applicationId": "erwsdhgqw5dcfbz" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "PRG_APP_013" | ||
} | ||
] | ||
}' |
3 changes: 3 additions & 0 deletions
3
...ources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"applicationId": "{{applicationId}}" | ||
} |
3 changes: 3 additions & 0 deletions
3
.../preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"response": "{{response}}" | ||
} |
32 changes: 32 additions & 0 deletions
32
...t/src/main/resources/preReg/GetApplicationsApplicationID/GetApplicationsApplicationID.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
GetApplicationsApplicationID: | ||
Prereg_GetApplicationsApplicationID_All_Valid_Smoke_sid: | ||
endPoint: /preregistration/v1/applications/{applicationId} | ||
description: Retrieve the application by application ID | ||
role: batch | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationID | ||
outputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult | ||
input: '{ | ||
"applicationId": "52917592714578" | ||
}' | ||
output: '{ | ||
"applicationId": "52917592714578" | ||
}' | ||
Prereg_GetApplicationsApplicationID_InValid_applicationID: | ||
endPoint: /preregistration/v1/applications/{applicationId} | ||
description: Retrieve the application by invalid application ID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationID | ||
outputTemplate: preReg/error | ||
input: '{ | ||
"applicationId": "erwsdhgqw5dcfbz" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "PRG_APP_013" | ||
} | ||
] | ||
}' |
3 changes: 3 additions & 0 deletions
3
...t/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationID.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"applicationId": "{{applicationId}}" | ||
} |
5 changes: 5 additions & 0 deletions
5
...main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"response": { | ||
"applicationId": "{{applicationId}}" | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...c/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
GetPreRegDemographicDataByPrid: | ||
Prereg_GetPreRegDemographicDataByPrid_Valid_preRegistrationId: | ||
endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} | ||
description: Retrieve the PreReg demographic data by PRID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid | ||
outputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult | ||
input: '{ | ||
"preRegistrationId": "$ID:CreatePrereg_Smoke_PreRegDemographicData_sid_preRegistrationId$" | ||
}' | ||
output: '{ | ||
"preRegistrationId": "$ID:CreatePrereg_Smoke_PreRegDemographicData_sid_preRegistrationId$", | ||
"postalCode":"14022", | ||
"dateOfBirth": "$IGNORE$", | ||
"IDSchemaVersion": "$IGNORE$", | ||
"phone": "$IGNORE$" | ||
}' | ||
Prereg_GetPreRegDemographicDataByPrid_inValid_preRegistrationId: | ||
endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} | ||
description: Retrieve the PreReg demographic data by invalid PRID | ||
role: batch | ||
restMethod: get | ||
inputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid | ||
outputTemplate: preReg/error | ||
input: '{ | ||
"preRegistrationId": "123456" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "PRG_PAM_APP_005" | ||
} | ||
] | ||
}' |
3 changes: 3 additions & 0 deletions
3
...c/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"preRegistrationId": "{{preRegistrationId}}" | ||
} |
11 changes: 11 additions & 0 deletions
11
.../resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"response": { | ||
"demographicDetails": { | ||
"identity": { | ||
"postalCode": "14022", | ||
"dateOfBirth": "1996/01/01", | ||
"phone": "8249742850" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -673,4 +673,25 @@ CreatePrereg: | |
"id": "mosip.pre-registration.demographic.create" | ||
}' | ||
output: '{ | ||
}' | ||
Prereg_CreatePrereg_Smoke_PreRegDemographicData_sid: | ||
endPoint: /preregistration/v1/applications/prereg | ||
description: Creating preregistration appointment using PRID for demographic data | ||
role: batch | ||
checkErrorsOnlyInResponse: true | ||
restMethod: post | ||
inputTemplate: preReg/createPrereg/createPrereg | ||
outputTemplate: preReg/createPrereg/createPreregResult | ||
input: '{ | ||
"postalCode": "14022", | ||
"phone": "8249742850", | ||
"email": "[email protected]", | ||
"IDSchemaVersion": $SCHEMAVERSION$, | ||
"dateOfBirth": "1996/01/01", | ||
"version": "1.0", | ||
"langCode": "$1STLANG$", | ||
"requesttime": "$TIMESTAMP$", | ||
"id": "mosip.pre-registration.demographic.create" | ||
}' | ||
output: '{ | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters