diff --git a/src/tests/mock/APIMock.ts b/src/tests/mock/APIMock.ts index 89cf0335..0d37ba01 100644 --- a/src/tests/mock/APIMock.ts +++ b/src/tests/mock/APIMock.ts @@ -15,23 +15,23 @@ import SpecimenDisciplineMock from 'tests/mock/digitalSpecimen/specimenDisciplin */ const Server = setupServer( /* Get Digital Specimen by ID */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0', () => { return HttpResponse.json(DigitalSpecimenMock); }), /* Get Digital Specimen's Annotations by ID */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/annotations', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/annotations', () => { return HttpResponse.json(SpecimenAnnotationsMock); }), /* Get Digital Specimen, Digital Media */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/digital-media', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/digital-media', () => { return HttpResponse.json(SpecimenDigitalMediaMock); }), /* Get Digital Specimen's verions by id */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/versions', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/versions', () => { return HttpResponse.json(SpecimenVersionsMock); }), /* Get Topic Disciplines numbers */ - http.get('/digital-specimen/discipline', () => { + http.get('/digital-specimen/v1/discipline', () => { return HttpResponse.json(SpecimenDisciplineMock); }) );