Skip to content

Commit d6615c1

Browse files
committed
count readme, improve error messages
1 parent 701dfc0 commit d6615c1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

lambdas/backend-api/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ curl --location "${APIG_STAGE}/v1/routing-configurations" \
152152
--header "Authorization: $SANDBOX_TOKEN"
153153
```
154154
155+
### GET - /v1/routing-configurations/count - Count routing configurations
156+
157+
```bash
158+
curl --location "${APIG_STAGE}/v1/routing-configurations/count" \
159+
--header 'Accept: application/json' \
160+
--header "Authorization: $SANDBOX_TOKEN"
161+
```
162+
155163
### POST - /v1/routing-configuration - Create a routing configuration
156164
157165
```bash

lambdas/backend-api/src/__tests__/templates/infra/routing-config-repository/repository.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ describe('RoutingConfigRepository', () => {
307307
}),
308308
errorMeta: {
309309
code: 500,
310-
description: 'Error retrieving Routing Config',
310+
description: 'Error parsing submitted Routing Config',
311311
},
312312
},
313313
});
@@ -552,7 +552,7 @@ describe('RoutingConfigRepository', () => {
552552
}),
553553
errorMeta: {
554554
code: 500,
555-
description: 'Error retrieving Routing Config',
555+
description: 'Error parsing updated Routing Config',
556556
},
557557
},
558558
});

lambdas/backend-api/src/templates/infra/routing-config-repository/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class RoutingConfigRepository {
9898
if (!parsed.success) {
9999
return failure(
100100
ErrorCase.INTERNAL,
101-
'Error retrieving Routing Config',
101+
'Error parsing updated Routing Config',
102102
parsed.error
103103
);
104104
}
@@ -132,7 +132,7 @@ export class RoutingConfigRepository {
132132
if (!parsed.success) {
133133
return failure(
134134
ErrorCase.INTERNAL,
135-
'Error retrieving Routing Config',
135+
'Error parsing submitted Routing Config',
136136
parsed.error
137137
);
138138
}

0 commit comments

Comments
 (0)