Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23] Extend FIND_RECORDS to find by ID #62

Merged
merged 3 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 242 additions & 0 deletions src/api/api/ADMIN/API-Test/GLOBL-GET_GEO_LIST.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
GLOBL:
GLOBL01:
TESTNAME: "GLOBAL GET_GEO_LIST"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test Country list"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
Module: "GLOBAL",
ServiceCode: "GLOBL",
API: "GET_GEO_LIST",
Max_List: 5,
Criteria: {
Type_Code: "CNTY",
Loci_Name_Country : ''
}
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response:
{
Country_List:
[
{
Type_Code: "CNTY",
Loci_Name_Country: "India",
Loci_Code_Country: "IND",

},
{
Type_Code: "CNTY",
Loci_Name_Country: "Armenia",
Loci_Code_Country: "ARM"
}
]

}

}
MEDIA: false
USERVERIFY: false

GLOBL02:
TESTNAME: "GLOBAL GET_GEO_LIST"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of Country Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
Module: "GLOBAL",
ServiceCode: "GLOBL",
API: "GET_GEO_LIST",
Max_List: 5,
Criteria: {
Type_Code: "CNTY",
Loci_Name_Country : "Ind"
}
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response:
{
Country_List:

[
{
Type_Code: "CNTY",
Loci_Name_Country: "India",
Loci_Code_Country: "IND",

},
{
Type_Code: "CNTY",
Loci_Name_Country: "Indonesia",
Loci_Code_Country: "IDN"
}
]

}

}
MEDIA: false
USERVERIFY: false

GLOBL03:
TESTNAME: "GLOBAL GET_GEO_LIST"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of District ( ARL1 ) Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
Module: "GLOBAL",
ServiceCode: "GLOBL",
API: "GET_GEO_LIST",
Max_List: 5,
Criteria: {
Type_Code: "STATE",
Loci_Code_Country : "IND",
Loci_Name_State : "Andh"
}
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
State_List:
[
{
Type_Code: "STATE",
Loci_Name_State: "Andra Pradesh",
Loci_Code_State: "AP",
},
{
Type_Code: "STATE",
Loci_Name_State: "Andaman and Nicobar Islands",
Loci_Code_State: "AN"
}
]
}

}
MEDIA: false
USERVERIFY: false

GLOBL04:
TESTNAME: "GLOBAL GET_GEO_LIST"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of City ( ARL2 ) Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
Module: "GLOBAL",
ServiceCode: "GLOBL",
API: "GET_GEO_LIST",
Max_List: 5,
Criteria: {
Type_Code: "ARL1",
Loci_Code_Country : "IND",
Loci_Code_State : "AP",
Loci_Name_District: "Chit"
}
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
District_List:

[
{
Type_Code: "ARL1",
Loci_Name_District: "Chittoor",
Loci_Code_District: "Chittoor",
},
{
Type_Code: "ARL1",
Loci_Name_District: "Chittoor",
Loci_Code_District: "Chittoor"
}
]

}

}
MEDIA: false
USERVERIFY: false

GLOBL05:
TESTNAME: "GLOBAL GET_GEO_LIST"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of City ( ARL2 ) Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
Module: "GLOBAL",
ServiceCode: "GLOBL",
API: "GET_GEO_LIST",
Max_List: 5,
Criteria: {
Type_Code: "ARL2",
Loci_Code_Country : "IND",
Loci_Code_State : "AP",
Loci_Code_District: "Chittoor",
Loci_Name_City: “Tir”
}
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
Manddal_List:
[
{
Type_Code: "ARL2",
Loci_Name_Mandal: "Tirupati",
Loci_Code_Mandal: "06E2",
Loci_Postal_Code: "517501"
},
{
Type_Code: "ARL2",
Loci_Name_Mandal: "Tirumala",
Loci_Code_Mandal: "06DE",
Loci_Postal_Code: "517504"
}
]
}

}
MEDIA: false
USERVERIFY: false
127 changes: 127 additions & 0 deletions src/api/api/ADMIN/API-Test/GLOBL-GET_GEO_NAME.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
GLOBL:
GLOBL01:
TESTNAME: "GLOBAL GET_GEO_NAME"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of Country Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
ServiceCode: "GLOBL",
API: "GET_GEO_NAME",
Type_Code: 'CNTY',
Loci_Code_Country: 'IND',
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
Loci_Name_Country: 'India'
}

}
MEDIA: false
USERVERIFY: false

GLOBL02:
TESTNAME: "GLOBAL GET_GEO_NAME"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of State Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
ServiceCode: "GLOBL",
API: "GET_GEO_NAME",
Type_Code: "STATE",
Loci_Code_Country: "IND",
Loci_Code_State: "TN"
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
Loci_Name_State : "Tamil Nadu"
}

}
MEDIA: false
USERVERIFY: false

GLOBL03:
TESTNAME: "GLOBAL GET_GEO_NAME"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of District ( ARL1 ) Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
ServiceCode: "GLOBL",
API: "GET_GEO_NAME",
Type_Code: "ARL1",
Loci_Code_Country: "IND",
Loci_Code_State: "AP",
Loci_Code_Area_L1: "503"
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
Type_Code: "ARL1",
Loci_Name_Area_L1: "Chittoor",
Loci_Code_Area_L1: "503"
}

}
MEDIA: false
USERVERIFY: false

GLOBL04:
TESTNAME: "GLOBAL GET_GEO_NAME"
ACTION: "WS"
TYPE: "REQUEST"
Description: "Test converstion of City ( ARL2 ) Code to Name"
INPUT:
{
Expiry: "20000",
Type: "REQUEST",
Request:
{
ServiceCode: "GLOBL",
API: "GET_GEO_NAME",
Type_Code: "ARL2",
Loci_Code_Country: "IND",
Loci_Code_State: "AP",
Loci_Code_Area_L1: "503",
Loci_Code_Area_L2 : "071E"
},
}
OUTPUT:
{
Expiry: "20000",
Type: "RESPONSE",
Response: {
Type_Code: "ARL2",
Loci_Name_Area_L2: "Vijayapuram",
Loci_Code_Area_L2: "071E",
Loci_Postal_Code: "517586"
}

}
MEDIA: false
USERVERIFY: false
Loading