add mock api calls for modules viewall component
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
const ApiResponse = (req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.json({
|
||||
"value": [
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Vale of Glamorgan Council",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "21 Courtenay Road",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00017-B8X7N0",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Bridgend CBC",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "17 Colin Way",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00016-Y9K9Q0",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "120 Severn Grove",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "25 Merches Gardens",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00015-L7J9H1",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
export default ApiResponse;
|
||||
@@ -0,0 +1,72 @@
|
||||
const ApiResponse = (req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.json({
|
||||
"value": [
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Vale of Glamorgan Council",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "21 Courtenay Road",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00009-W8N6W4",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Bridgend CBC",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "17 Colin Way",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00010-J9W6L5",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "120 Severn Grove",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Conditions - S73 + S79",
|
||||
"pinswg_appealcasetype": "846040001",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "25 Merches Gardens",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00012-D9W6S8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
export default ApiResponse;
|
||||
@@ -0,0 +1,48 @@
|
||||
const ApiResponse = (req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.json({
|
||||
"value": [
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Vale of Glamorgan Council",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "21 Courtenay Road",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00009-W8N6W4",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Bridgend CBC",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "17 Colin Way",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00010-J9W6L5",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "120 Severn Grove",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "25 Merches Gardens",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00012-D9W6S8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
export default ApiResponse;
|
||||
@@ -0,0 +1,48 @@
|
||||
const ApiResponse = (req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.json({
|
||||
"value": [
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Vale of Glamorgan Council",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "21 Courtenay Road",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00009-W8N6W4",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Bridgend CBC",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "17 Colin Way",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00010-J9W6L5",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "120 Severn Grove",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "25 Merches Gardens",
|
||||
"town": "Cardiff",
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00012-D9W6S8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
export default ApiResponse;
|
||||
Reference in New Issue
Block a user