File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ FROM node:current-alpine3.17
3
3
RUN apk update && apk add bash curl --no-cache
4
4
5
5
RUN curl https://manage-adjudications-api-dev.hmpps.service.justice.gov.uk/v3/api-docs > adjudications_api.json && \
6
+ sed -i "s+\*/\*+application/json+g" adjudications_api.json && \
6
7
npm install -g @stoplight/prism-cli
7
8
8
9
RUN adduser -D user
9
10
10
11
USER user
11
12
12
- CMD prism mock -p 4010 -h 0.0.0.0 /adjudications_api.json
13
+ CMD prism mock -v trace - p 4010 -h 0.0.0.0 /adjudications_api.json
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ services:
102
102
dockerfile : Dockerfile.adjudications-api
103
103
container_name : adjudications-api
104
104
healthcheck :
105
- test : ' wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/reported-adjudications/prisoner/123 -O /dev/null'
105
+ test : ' wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/reported-adjudications/hearings?hearingDate=1916-07-16 -O /dev/null'
106
106
ports :
107
107
- ' 4045:4010'
108
108
You can’t perform that action at this time.
0 commit comments