diff --git a/config/proxy.conf.json b/config/proxy.conf.json index 0804f57..df0ebaa 100644 --- a/config/proxy.conf.json +++ b/config/proxy.conf.json @@ -1,9 +1,6 @@ { "/api": { "target": "http://localhost:8000/", - "secure": false, - "pathRewrite": { - "^/api": "/" - } + "secure": false } } diff --git a/mock-api/dafa-web/api.json b/mock-api/dafa-web/api.json index 5194f39..ca89e6d 100644 --- a/mock-api/dafa-web/api.json +++ b/mock-api/dafa-web/api.json @@ -2,513 +2,615 @@ "participants": [ { "id": 0, - "firstName": "Zachariah", - "lastName": "Gustafsson", - "service": "KROM", - "errandNumber": 536849, - "startDate": "2021-03-29T03:35:58.817Z", - "endDate": "2021-12-30T13:16:57.069Z", - "handleBefore": "2021-03-30T04:28:41.898Z" + "firstName": "Sylvan", + "lastName": "Johansson", + "status": "follow-up", + "service": "KVL", + "nextStep": "Slutrapport", + "errandNumber": 147730, + "startDate": "2021-03-28T16:28:07.794Z", + "endDate": "2021-06-30T23:00:44.013Z", + "handleBefore": "2021-03-30T06:57:29.052Z" }, { "id": 1, - "firstName": "Lane", - "lastName": "Olsson", + "firstName": "Earl", + "lastName": "Svensson", + "status": "active", "service": "KVL", - "errandNumber": 567126, - "startDate": "2021-03-28T09:59:48.777Z", - "endDate": "2022-03-18T16:18:38.242Z", - "handleBefore": "2021-03-29T09:45:03.024Z" + "nextStep": "Periodisk rapport", + "errandNumber": 902364, + "startDate": "2021-03-28T13:38:13.389Z", + "endDate": "2021-03-31T03:16:34.426Z", + "handleBefore": "2021-03-30T05:12:29.354Z" }, { "id": 2, - "firstName": "Desmond", - "lastName": "Nilsson", - "service": "STOM", - "errandNumber": 438670, - "startDate": "2021-03-28T20:16:58.352Z", - "endDate": "2021-08-14T12:52:17.152Z", - "handleBefore": "2021-03-29T15:16:38.831Z" + "firstName": "Aric", + "lastName": "Olsson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Periodisk rapport", + "errandNumber": 300957, + "startDate": "2021-03-29T06:05:38.758Z", + "endDate": "2022-01-06T05:44:27.982Z", + "handleBefore": "2021-03-29T16:03:11.667Z" }, { "id": 3, - "firstName": "Joyce", - "lastName": "Persson", - "service": "STOM", - "errandNumber": 487945, - "startDate": "2021-03-29T01:45:42.364Z", - "endDate": "2021-04-28T05:27:50.553Z", - "handleBefore": "2021-03-29T12:28:42.680Z" + "firstName": "Summer", + "lastName": "Gustafsson", + "status": "active", + "service": "KVL", + "nextStep": "Slutrapport", + "errandNumber": 362866, + "startDate": "2021-03-29T05:30:07.229Z", + "endDate": "2022-02-06T14:09:22.759Z", + "handleBefore": "2021-03-30T04:31:53.552Z" }, { "id": 4, - "firstName": "Kasandra", - "lastName": "Karlsson", - "service": "KVL", - "errandNumber": 803191, - "startDate": "2021-03-28T22:58:56.665Z", - "endDate": "2021-07-20T12:24:55.428Z", - "handleBefore": "2021-03-29T19:19:09.039Z" + "firstName": "Valentina", + "lastName": "Andersson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Gemensam planering", + "errandNumber": 576525, + "startDate": "2021-03-29T02:40:55.380Z", + "endDate": "2021-12-11T00:01:20.021Z", + "handleBefore": "2021-03-29T20:32:00.896Z" }, { "id": 5, - "firstName": "Crystal", - "lastName": "Gustafsson", + "firstName": "Jake", + "lastName": "Johansson", + "status": "active", "service": "STOM", - "errandNumber": 618306, - "startDate": "2021-03-29T04:36:23.159Z", - "endDate": "2022-02-05T20:19:50.325Z", - "handleBefore": "2021-03-29T20:46:28.338Z" + "nextStep": "Periodisk rapport", + "errandNumber": 160895, + "startDate": "2021-03-28T21:11:27.938Z", + "endDate": "2021-11-10T08:16:47.526Z", + "handleBefore": "2021-03-29T16:26:33.981Z" }, { "id": 6, - "firstName": "Dino", - "lastName": "Persson", + "firstName": "Josiane", + "lastName": "Svensson", + "status": "follow-up", "service": "KROM", - "errandNumber": 747042, - "startDate": "2021-03-28T23:31:14.203Z", - "endDate": "2021-11-05T04:37:14.244Z", - "handleBefore": "2021-03-30T06:46:18.982Z" + "nextStep": "Periodisk rapport", + "errandNumber": 727637, + "startDate": "2021-03-28T22:14:57.943Z", + "endDate": "2021-06-20T10:01:40.930Z", + "handleBefore": "2021-03-29T13:04:51.388Z" }, { "id": 7, - "firstName": "Clarabelle", - "lastName": "Persson", - "service": "KVL", - "errandNumber": 840619, - "startDate": "2021-03-28T12:41:19.758Z", - "endDate": "2021-12-12T10:47:21.005Z", - "handleBefore": "2021-03-29T17:58:23.043Z" + "firstName": "Quinten", + "lastName": "Johansson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 920335, + "startDate": "2021-03-29T08:31:07.560Z", + "endDate": "2022-01-18T23:37:37.047Z", + "handleBefore": "2021-03-29T16:56:00.005Z" }, { "id": 8, - "firstName": "Kelley", - "lastName": "Larsson", + "firstName": "Candida", + "lastName": "Olsson", + "status": "active", "service": "KROM", - "errandNumber": 759971, - "startDate": "2021-03-29T01:35:07.331Z", - "endDate": "2021-05-11T05:56:37.947Z", - "handleBefore": "2021-03-29T22:56:29.566Z" + "nextStep": "Gemensam planering", + "errandNumber": 649168, + "startDate": "2021-03-28T12:50:15.539Z", + "endDate": "2021-09-03T04:03:48.573Z", + "handleBefore": "2021-03-29T15:06:25.417Z" }, { "id": 9, - "firstName": "Noemy", + "firstName": "Eugenia", "lastName": "Eriksson", - "service": "STOM", - "errandNumber": 733022, - "startDate": "2021-03-28T17:33:07.590Z", - "endDate": "2022-03-28T11:57:02.399Z", - "handleBefore": "2021-03-29T18:40:48.693Z" + "status": "active", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 762553, + "startDate": "2021-03-28T11:35:26.356Z", + "endDate": "2021-12-01T09:26:41.043Z", + "handleBefore": "2021-03-29T18:07:01.531Z" }, { "id": 10, - "firstName": "Camryn", - "lastName": "Larsson", - "service": "KVL", - "errandNumber": 975949, - "startDate": "2021-03-29T05:44:22.261Z", - "endDate": "2021-07-01T07:11:45.448Z", - "handleBefore": "2021-03-29T08:34:21.991Z" + "firstName": "Lottie", + "lastName": "Persson", + "status": "active", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 926796, + "startDate": "2021-03-28T16:30:44.119Z", + "endDate": "2021-12-30T16:55:39.528Z", + "handleBefore": "2021-03-29T17:36:16.668Z" }, { "id": 11, - "firstName": "Susanna", - "lastName": "Gustafsson", + "firstName": "Kaela", + "lastName": "Nilsson", + "status": "follow-up", "service": "KVL", - "errandNumber": 633058, - "startDate": "2021-03-28T09:55:34.767Z", - "endDate": "2021-12-24T16:16:54.023Z", - "handleBefore": "2021-03-29T22:46:14.021Z" + "nextStep": "Slutrapport", + "errandNumber": 360006, + "startDate": "2021-03-28T12:09:55.862Z", + "endDate": "2022-01-25T14:28:57.646Z", + "handleBefore": "2021-03-29T17:18:33.368Z" }, { "id": 12, - "firstName": "Charlotte", - "lastName": "Eriksson", + "firstName": "Albertha", + "lastName": "Gustafsson", + "status": "follow-up", "service": "KROM", - "errandNumber": 274938, - "startDate": "2021-03-29T07:24:08.879Z", - "endDate": "2022-03-12T12:50:47.862Z", - "handleBefore": "2021-03-29T19:07:36.447Z" + "nextStep": "Gemensam planering", + "errandNumber": 791607, + "startDate": "2021-03-28T11:24:56.699Z", + "endDate": "2021-12-16T23:42:03.112Z", + "handleBefore": "2021-03-29T18:29:09.000Z" }, { "id": 13, - "firstName": "Malcolm", - "lastName": "Persson", + "firstName": "Kobe", + "lastName": "Karlsson", + "status": "active", "service": "KROM", - "errandNumber": 700835, - "startDate": "2021-03-28T12:21:10.957Z", - "endDate": "2021-08-09T00:09:38.945Z", - "handleBefore": "2021-03-29T16:50:18.821Z" + "nextStep": "Slutrapport", + "errandNumber": 785520, + "startDate": "2021-03-28T17:13:27.345Z", + "endDate": "2021-08-04T12:28:00.694Z", + "handleBefore": "2021-03-30T04:19:30.576Z" }, { "id": 14, - "firstName": "Marisa", - "lastName": "Nilsson", + "firstName": "Brandt", + "lastName": "Eriksson", + "status": "active", "service": "KVL", - "errandNumber": 720806, - "startDate": "2021-03-28T14:52:48.860Z", - "endDate": "2021-10-22T18:06:19.433Z", - "handleBefore": "2021-03-29T12:48:49.611Z" + "nextStep": "Resultatrapport", + "errandNumber": 806698, + "startDate": "2021-03-29T06:01:31.101Z", + "endDate": "2021-07-30T14:09:12.799Z", + "handleBefore": "2021-03-29T18:05:23.136Z" }, { "id": 15, - "firstName": "Naomi", + "firstName": "Furman", "lastName": "Andersson", + "status": "follow-up", "service": "KROM", - "errandNumber": 117130, - "startDate": "2021-03-28T08:43:04.765Z", - "endDate": "2022-03-24T09:03:55.824Z", - "handleBefore": "2021-03-29T20:18:05.130Z" + "nextStep": "Slutrapport", + "errandNumber": 380941, + "startDate": "2021-03-28T11:18:40.665Z", + "endDate": "2021-12-19T23:35:40.116Z", + "handleBefore": "2021-03-29T11:42:41.840Z" }, { "id": 16, - "firstName": "Dion", - "lastName": "Eriksson", - "service": "STOM", - "errandNumber": 345480, - "startDate": "2021-03-28T12:17:25.708Z", - "endDate": "2021-09-28T12:10:52.671Z", - "handleBefore": "2021-03-29T17:42:58.460Z" + "firstName": "Garnet", + "lastName": "Karlsson", + "status": "follow-up", + "service": "KVL", + "nextStep": "Slutrapport", + "errandNumber": 343414, + "startDate": "2021-03-28T18:35:28.474Z", + "endDate": "2022-03-27T23:04:47.438Z", + "handleBefore": "2021-03-29T15:34:17.550Z" }, { "id": 17, - "firstName": "Brody", - "lastName": "Johansson", - "service": "STOM", - "errandNumber": 733022, - "startDate": "2021-03-28T18:35:38.651Z", - "endDate": "2021-05-17T12:34:03.549Z", - "handleBefore": "2021-03-29T12:31:34.183Z" + "firstName": "Gerry", + "lastName": "Gustafsson", + "status": "active", + "service": "KVL", + "nextStep": "Slutrapport", + "errandNumber": 306829, + "startDate": "2021-03-28T14:02:39.202Z", + "endDate": "2021-09-20T16:35:32.289Z", + "handleBefore": "2021-03-30T02:20:15.076Z" }, { "id": 18, - "firstName": "Luisa", - "lastName": "Svensson", + "firstName": "Kira", + "lastName": "Persson", + "status": "follow-up", "service": "KROM", - "errandNumber": 824872, - "startDate": "2021-03-28T08:31:02.690Z", - "endDate": "2022-03-05T15:55:07.194Z", - "handleBefore": "2021-03-30T06:12:51.675Z" + "nextStep": "Periodisk rapport", + "errandNumber": 920825, + "startDate": "2021-03-28T20:51:18.738Z", + "endDate": "2021-07-07T01:58:00.717Z", + "handleBefore": "2021-03-30T01:41:48.646Z" }, { "id": 19, - "firstName": "Adrian", - "lastName": "Johansson", - "service": "KVL", - "errandNumber": 525875, - "startDate": "2021-03-28T15:00:30.790Z", - "endDate": "2021-12-16T21:06:46.317Z", - "handleBefore": "2021-03-29T11:53:52.678Z" + "firstName": "Estefania", + "lastName": "Eriksson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Periodisk rapport", + "errandNumber": 400245, + "startDate": "2021-03-28T15:24:01.255Z", + "endDate": "2021-11-21T04:49:07.681Z", + "handleBefore": "2021-03-30T07:55:07.827Z" }, { "id": 20, - "firstName": "Eric", - "lastName": "Andersson", - "service": "KVL", - "errandNumber": 197879, - "startDate": "2021-03-28T18:38:22.793Z", - "endDate": "2021-09-20T17:47:21.243Z", - "handleBefore": "2021-03-29T11:24:02.884Z" + "firstName": "Lisette", + "lastName": "Nilsson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 789946, + "startDate": "2021-03-28T16:53:07.076Z", + "endDate": "2021-07-17T10:17:31.793Z", + "handleBefore": "2021-03-30T02:20:58.528Z" }, { "id": 21, - "firstName": "Imelda", - "lastName": "Nilsson", - "service": "STOM", - "errandNumber": 889134, - "startDate": "2021-03-29T06:25:32.344Z", - "endDate": "2021-08-24T18:30:44.496Z", - "handleBefore": "2021-03-29T12:53:13.009Z" + "firstName": "Jasen", + "lastName": "Eriksson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 101872, + "startDate": "2021-03-28T17:39:54.421Z", + "endDate": "2021-03-30T12:27:40.493Z", + "handleBefore": "2021-03-29T17:58:42.082Z" }, { "id": 22, - "firstName": "Domenick", - "lastName": "Johansson", - "service": "KROM", - "errandNumber": 907567, - "startDate": "2021-03-29T05:55:01.203Z", - "endDate": "2021-12-13T04:53:58.357Z", - "handleBefore": "2021-03-29T08:08:40.717Z" + "firstName": "Beth", + "lastName": "Karlsson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Slutrapport", + "errandNumber": 974705, + "startDate": "2021-03-28T18:32:44.266Z", + "endDate": "2022-02-02T15:14:11.536Z", + "handleBefore": "2021-03-29T16:55:12.823Z" }, { "id": 23, - "firstName": "Connor", - "lastName": "Olsson", - "service": "KVL", - "errandNumber": 119431, - "startDate": "2021-03-29T06:27:18.505Z", - "endDate": "2021-12-23T09:46:40.014Z", - "handleBefore": "2021-03-29T19:50:17.445Z" + "firstName": "Lon", + "lastName": "Svensson", + "status": "active", + "service": "STOM", + "nextStep": "Resultatrapport", + "errandNumber": 416324, + "startDate": "2021-03-29T01:37:00.663Z", + "endDate": "2021-07-05T02:18:00.931Z", + "handleBefore": "2021-03-30T01:52:29.572Z" }, { "id": 24, - "firstName": "Ceasar", + "firstName": "Mae", "lastName": "Eriksson", + "status": "active", "service": "STOM", - "errandNumber": 461247, - "startDate": "2021-03-28T17:57:54.869Z", - "endDate": "2022-03-12T03:31:12.605Z", - "handleBefore": "2021-03-30T03:13:10.115Z" + "nextStep": "Periodisk rapport", + "errandNumber": 142285, + "startDate": "2021-03-29T08:59:39.735Z", + "endDate": "2021-07-02T18:14:59.899Z", + "handleBefore": "2021-03-29T12:08:55.702Z" }, { "id": 25, - "firstName": "Kacey", - "lastName": "Svensson", - "service": "STOM", - "errandNumber": 447832, - "startDate": "2021-03-28T10:07:40.693Z", - "endDate": "2022-01-15T15:16:33.983Z", - "handleBefore": "2021-03-29T22:47:15.698Z" + "firstName": "Lue", + "lastName": "Karlsson", + "status": "active", + "service": "KVL", + "nextStep": "Gemensam planering", + "errandNumber": 305522, + "startDate": "2021-03-28T11:56:14.815Z", + "endDate": "2021-06-05T23:30:18.769Z", + "handleBefore": "2021-03-30T02:56:48.120Z" }, { "id": 26, - "firstName": "Moshe", - "lastName": "Svensson", - "service": "KROM", - "errandNumber": 183189, - "startDate": "2021-03-28T12:07:57.729Z", - "endDate": "2022-02-12T01:22:42.084Z", - "handleBefore": "2021-03-30T06:53:20.641Z" + "firstName": "Darwin", + "lastName": "Gustafsson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Gemensam planering", + "errandNumber": 826609, + "startDate": "2021-03-29T05:14:27.146Z", + "endDate": "2021-10-30T17:28:22.871Z", + "handleBefore": "2021-03-29T12:24:53.977Z" }, { "id": 27, - "firstName": "Dexter", - "lastName": "Larsson", + "firstName": "Cyril", + "lastName": "Persson", + "status": "active", "service": "KROM", - "errandNumber": 936851, - "startDate": "2021-03-28T20:51:25.418Z", - "endDate": "2021-08-02T23:04:59.337Z", - "handleBefore": "2021-03-29T17:56:43.768Z" + "nextStep": "Slutrapport", + "errandNumber": 472203, + "startDate": "2021-03-28T20:30:32.522Z", + "endDate": "2021-04-23T14:50:16.407Z", + "handleBefore": "2021-03-29T15:26:50.894Z" }, { "id": 28, - "firstName": "Waino", - "lastName": "Andersson", + "firstName": "Hans", + "lastName": "Svensson", + "status": "active", "service": "KROM", - "errandNumber": 321404, - "startDate": "2021-03-28T15:23:11.190Z", - "endDate": "2021-09-05T17:48:33.661Z", - "handleBefore": "2021-03-30T05:13:00.841Z" + "nextStep": "Resultatrapport", + "errandNumber": 569704, + "startDate": "2021-03-29T05:31:51.218Z", + "endDate": "2021-07-13T15:20:16.360Z", + "handleBefore": "2021-03-29T23:28:11.072Z" }, { "id": 29, - "firstName": "Hilma", + "firstName": "Nella", "lastName": "Olsson", + "status": "active", "service": "KROM", - "errandNumber": 587769, - "startDate": "2021-03-28T23:09:30.690Z", - "endDate": "2021-05-29T07:29:27.511Z", - "handleBefore": "2021-03-30T05:26:06.647Z" + "nextStep": "Resultatrapport", + "errandNumber": 546340, + "startDate": "2021-03-28T13:03:21.465Z", + "endDate": "2021-07-14T15:57:27.664Z", + "handleBefore": "2021-03-30T03:41:45.536Z" }, { "id": 30, - "firstName": "Kian", + "firstName": "Leila", "lastName": "Gustafsson", + "status": "follow-up", "service": "KVL", - "errandNumber": 383043, - "startDate": "2021-03-29T00:48:54.562Z", - "endDate": "2021-04-05T02:54:00.526Z", - "handleBefore": "2021-03-29T15:27:12.367Z" + "nextStep": "Slutrapport", + "errandNumber": 461113, + "startDate": "2021-03-28T13:42:59.675Z", + "endDate": "2022-03-22T08:45:43.671Z", + "handleBefore": "2021-03-30T01:55:27.679Z" }, { "id": 31, - "firstName": "Noemie", - "lastName": "Olsson", - "service": "STOM", - "errandNumber": 724307, - "startDate": "2021-03-28T19:36:43.720Z", - "endDate": "2022-01-01T22:02:32.595Z", - "handleBefore": "2021-03-29T15:54:14.762Z" + "firstName": "Flavio", + "lastName": "Gustafsson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 880356, + "startDate": "2021-03-29T00:38:29.401Z", + "endDate": "2021-10-29T21:11:43.387Z", + "handleBefore": "2021-03-29T15:23:36.256Z" }, { "id": 32, - "firstName": "Orion", - "lastName": "Karlsson", - "service": "STOM", - "errandNumber": 769355, - "startDate": "2021-03-28T22:47:10.414Z", - "endDate": "2021-12-08T11:25:16.821Z", - "handleBefore": "2021-03-30T03:33:35.963Z" + "firstName": "Prince", + "lastName": "Gustafsson", + "status": "follow-up", + "service": "KVL", + "nextStep": "Resultatrapport", + "errandNumber": 189452, + "startDate": "2021-03-29T07:50:55.483Z", + "endDate": "2021-09-12T04:54:24.359Z", + "handleBefore": "2021-03-30T04:25:53.482Z" }, { "id": 33, - "firstName": "Darien", - "lastName": "Gustafsson", - "service": "KVL", - "errandNumber": 795437, - "startDate": "2021-03-28T14:25:41.788Z", - "endDate": "2021-12-06T17:25:40.528Z", - "handleBefore": "2021-03-29T22:52:14.772Z" + "firstName": "Randy", + "lastName": "Olsson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Resultatrapport", + "errandNumber": 421078, + "startDate": "2021-03-28T12:24:20.382Z", + "endDate": "2021-10-23T20:54:28.032Z", + "handleBefore": "2021-03-30T09:32:48.354Z" }, { "id": 34, - "firstName": "Bailee", - "lastName": "Nilsson", - "service": "STOM", - "errandNumber": 917438, - "startDate": "2021-03-29T02:16:23.343Z", - "endDate": "2021-07-13T20:37:09.622Z", - "handleBefore": "2021-03-29T15:38:25.945Z" + "firstName": "Ellen", + "lastName": "Johansson", + "status": "active", + "service": "KROM", + "nextStep": "Gemensam planering", + "errandNumber": 616287, + "startDate": "2021-03-29T00:23:22.494Z", + "endDate": "2021-04-05T22:26:37.595Z", + "handleBefore": "2021-03-29T11:02:05.601Z" }, { "id": 35, - "firstName": "Hulda", - "lastName": "Nilsson", - "service": "KROM", - "errandNumber": 283560, - "startDate": "2021-03-29T03:24:53.913Z", - "endDate": "2021-04-01T09:23:16.957Z", - "handleBefore": "2021-03-30T00:49:08.645Z" + "firstName": "Claire", + "lastName": "Persson", + "status": "active", + "service": "KVL", + "nextStep": "Resultatrapport", + "errandNumber": 422633, + "startDate": "2021-03-29T02:59:06.589Z", + "endDate": "2021-11-17T02:45:29.544Z", + "handleBefore": "2021-03-29T13:46:14.423Z" }, { "id": 36, - "firstName": "Callie", - "lastName": "Andersson", + "firstName": "Kallie", + "lastName": "Svensson", + "status": "active", "service": "KROM", - "errandNumber": 432061, - "startDate": "2021-03-28T13:49:03.976Z", - "endDate": "2021-12-04T13:55:16.348Z", - "handleBefore": "2021-03-30T04:13:17.975Z" + "nextStep": "Resultatrapport", + "errandNumber": 202709, + "startDate": "2021-03-29T09:48:15.984Z", + "endDate": "2021-06-16T17:19:50.055Z", + "handleBefore": "2021-03-30T02:28:17.526Z" }, { "id": 37, - "firstName": "Alejandra", - "lastName": "Johansson", - "service": "KVL", - "errandNumber": 362300, - "startDate": "2021-03-28T09:03:17.100Z", - "endDate": "2021-04-23T15:28:05.292Z", - "handleBefore": "2021-03-29T19:41:07.119Z" + "firstName": "Karine", + "lastName": "Svensson", + "status": "active", + "service": "STOM", + "nextStep": "Resultatrapport", + "errandNumber": 737191, + "startDate": "2021-03-29T03:00:47.637Z", + "endDate": "2021-04-13T22:28:07.515Z", + "handleBefore": "2021-03-29T21:06:50.733Z" }, { "id": 38, - "firstName": "Jovanny", + "firstName": "Sienna", "lastName": "Persson", + "status": "active", "service": "KROM", - "errandNumber": 886469, - "startDate": "2021-03-28T16:25:50.440Z", - "endDate": "2021-10-19T13:14:28.723Z", - "handleBefore": "2021-03-29T21:16:42.820Z" + "nextStep": "Periodisk rapport", + "errandNumber": 634191, + "startDate": "2021-03-29T08:44:16.311Z", + "endDate": "2021-08-31T23:54:22.128Z", + "handleBefore": "2021-03-29T16:19:16.981Z" }, { "id": 39, - "firstName": "Josiah", - "lastName": "Eriksson", + "firstName": "Ettie", + "lastName": "Svensson", + "status": "active", "service": "STOM", - "errandNumber": 699471, - "startDate": "2021-03-28T18:14:02.241Z", - "endDate": "2022-01-19T14:09:03.796Z", - "handleBefore": "2021-03-29T13:24:02.164Z" + "nextStep": "Slutrapport", + "errandNumber": 479675, + "startDate": "2021-03-29T04:59:26.463Z", + "endDate": "2021-07-09T12:09:56.241Z", + "handleBefore": "2021-03-30T04:17:08.084Z" }, { "id": 40, - "firstName": "Demond", - "lastName": "Olsson", + "firstName": "Rene", + "lastName": "Larsson", + "status": "follow-up", "service": "KVL", - "errandNumber": 758645, - "startDate": "2021-03-28T11:11:49.947Z", - "endDate": "2021-04-25T15:44:07.973Z", - "handleBefore": "2021-03-30T05:52:23.896Z" + "nextStep": "Gemensam planering", + "errandNumber": 399079, + "startDate": "2021-03-28T16:00:36.629Z", + "endDate": "2021-08-19T12:17:00.549Z", + "handleBefore": "2021-03-30T07:54:43.417Z" }, { "id": 41, - "firstName": "Rachael", - "lastName": "Larsson", - "service": "KVL", - "errandNumber": 213883, - "startDate": "2021-03-28T13:48:26.872Z", - "endDate": "2021-08-11T14:50:26.845Z", - "handleBefore": "2021-03-30T06:14:28.062Z" + "firstName": "Stanley", + "lastName": "Gustafsson", + "status": "active", + "service": "KROM", + "nextStep": "Resultatrapport", + "errandNumber": 460489, + "startDate": "2021-03-29T00:10:06.786Z", + "endDate": "2021-11-22T16:23:50.549Z", + "handleBefore": "2021-03-29T10:48:48.680Z" }, { "id": 42, - "firstName": "Hank", - "lastName": "Gustafsson", - "service": "STOM", - "errandNumber": 317122, - "startDate": "2021-03-29T02:03:12.368Z", - "endDate": "2021-04-06T13:41:00.314Z", - "handleBefore": "2021-03-30T06:04:08.036Z" + "firstName": "Karina", + "lastName": "Eriksson", + "status": "follow-up", + "service": "KVL", + "nextStep": "Gemensam planering", + "errandNumber": 297653, + "startDate": "2021-03-29T03:01:26.351Z", + "endDate": "2021-08-04T15:00:37.555Z", + "handleBefore": "2021-03-29T11:56:56.136Z" }, { "id": 43, - "firstName": "Jamaal", + "firstName": "Lourdes", "lastName": "Persson", - "service": "KROM", - "errandNumber": 254985, - "startDate": "2021-03-28T22:09:50.067Z", - "endDate": "2021-08-14T16:06:06.014Z", - "handleBefore": "2021-03-30T03:20:43.517Z" + "status": "follow-up", + "service": "KVL", + "nextStep": "Periodisk rapport", + "errandNumber": 272233, + "startDate": "2021-03-28T22:04:02.907Z", + "endDate": "2021-04-06T16:04:16.710Z", + "handleBefore": "2021-03-29T15:06:08.991Z" }, { "id": 44, - "firstName": "Lulu", - "lastName": "Andersson", - "service": "KVL", - "errandNumber": 698835, - "startDate": "2021-03-29T05:26:47.608Z", - "endDate": "2021-08-07T06:49:21.202Z", - "handleBefore": "2021-03-30T04:42:36.097Z" + "firstName": "Erika", + "lastName": "Karlsson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Periodisk rapport", + "errandNumber": 849218, + "startDate": "2021-03-28T11:53:16.705Z", + "endDate": "2021-12-09T12:56:44.095Z", + "handleBefore": "2021-03-29T19:22:04.005Z" }, { "id": 45, - "firstName": "Brianne", - "lastName": "Nilsson", - "service": "KROM", - "errandNumber": 410723, - "startDate": "2021-03-28T23:58:34.372Z", - "endDate": "2021-09-18T19:31:33.334Z", - "handleBefore": "2021-03-29T16:21:08.880Z" + "firstName": "Zack", + "lastName": "Gustafsson", + "status": "follow-up", + "service": "STOM", + "nextStep": "Gemensam planering", + "errandNumber": 394107, + "startDate": "2021-03-29T01:08:46.446Z", + "endDate": "2021-07-25T10:10:18.432Z", + "handleBefore": "2021-03-30T05:36:56.244Z" }, { "id": 46, - "firstName": "Rhoda", - "lastName": "Gustafsson", - "service": "STOM", - "errandNumber": 249730, - "startDate": "2021-03-28T09:56:22.796Z", - "endDate": "2021-11-08T09:52:39.151Z", - "handleBefore": "2021-03-30T03:57:05.253Z" + "firstName": "Angela", + "lastName": "Johansson", + "status": "active", + "service": "KROM", + "nextStep": "Slutrapport", + "errandNumber": 902417, + "startDate": "2021-03-29T08:22:01.343Z", + "endDate": "2021-05-18T06:51:13.878Z", + "handleBefore": "2021-03-29T13:24:07.969Z" }, { "id": 47, - "firstName": "Irwin", - "lastName": "Eriksson", - "service": "STOM", - "errandNumber": 395606, - "startDate": "2021-03-28T10:58:36.254Z", - "endDate": "2021-09-26T01:53:29.905Z", - "handleBefore": "2021-03-30T07:13:37.504Z" + "firstName": "Dulce", + "lastName": "Gustafsson", + "status": "follow-up", + "service": "KVL", + "nextStep": "Periodisk rapport", + "errandNumber": 818091, + "startDate": "2021-03-29T09:44:42.579Z", + "endDate": "2021-11-13T22:04:43.592Z", + "handleBefore": "2021-03-30T08:37:47.748Z" }, { "id": 48, - "firstName": "Candido", - "lastName": "Larsson", - "service": "KROM", - "errandNumber": 805048, - "startDate": "2021-03-29T03:00:50.863Z", - "endDate": "2021-06-08T23:53:39.404Z", - "handleBefore": "2021-03-29T20:01:49.405Z" + "firstName": "Jamey", + "lastName": "Karlsson", + "status": "active", + "service": "KVL", + "nextStep": "Gemensam planering", + "errandNumber": 256779, + "startDate": "2021-03-28T14:38:02.750Z", + "endDate": "2021-08-26T21:34:35.782Z", + "handleBefore": "2021-03-29T23:28:08.749Z" }, { "id": 49, - "firstName": "Tyshawn", - "lastName": "Karlsson", - "service": "STOM", - "errandNumber": 220243, - "startDate": "2021-03-28T17:38:49.230Z", - "endDate": "2021-05-01T21:05:19.336Z", - "handleBefore": "2021-03-29T23:20:30.570Z" + "firstName": "Abbie", + "lastName": "Svensson", + "status": "follow-up", + "service": "KROM", + "nextStep": "Slutrapport", + "errandNumber": 500853, + "startDate": "2021-03-28T14:59:29.959Z", + "endDate": "2021-06-06T22:39:38.631Z", + "handleBefore": "2021-03-29T11:46:53.501Z" }, { "id": 50, - "firstName": "Gudrun", + "firstName": "Johnpaul", "lastName": "Eriksson", + "status": "active", "service": "STOM", - "errandNumber": 227839, - "startDate": "2021-03-28T23:01:57.736Z", - "endDate": "2021-07-19T04:13:07.539Z", - "handleBefore": "2021-03-29T23:36:23.397Z" + "nextStep": "Gemensam planering", + "errandNumber": 392201, + "startDate": "2021-03-28T22:49:34.281Z", + "endDate": "2021-05-17T19:40:32.940Z", + "handleBefore": "2021-03-30T03:14:57.259Z" } ] } \ No newline at end of file diff --git a/mock-api/dafa-web/package.json b/mock-api/dafa-web/package.json index 3003161..c9622a0 100644 --- a/mock-api/dafa-web/package.json +++ b/mock-api/dafa-web/package.json @@ -4,7 +4,7 @@ "description": "A mock api implementing all needed endpoints for dafa-web", "scripts": { "generate-api": "node ./scripts/generate-api.js", - "start": "npm run generate-api && json-server --watch api.json --port 8000" + "start": "npm run generate-api && json-server --watch api.json --port 8000 --routes routes.json" }, "author": "Erik Tiekstra (erik.tiekstra@arbetsformedlingen.se)", "license": "MIT", diff --git a/mock-api/dafa-web/routes.json b/mock-api/dafa-web/routes.json new file mode 100644 index 0000000..304d350 --- /dev/null +++ b/mock-api/dafa-web/routes.json @@ -0,0 +1,6 @@ +{ + "/api/*": "/$1", + "/participant/:id": "/participants/:id", + "/activeParticipants": "/participants?status=active", + "/followUpParticipants": "/participants?status=follow-up" +} diff --git a/mock-api/dafa-web/scripts/participants.js b/mock-api/dafa-web/scripts/participants.js index 3b8136b..468a060 100644 --- a/mock-api/dafa-web/scripts/participants.js +++ b/mock-api/dafa-web/scripts/participants.js @@ -3,6 +3,8 @@ import faker from 'faker'; faker.locale = 'sv'; const AVAILABLE_SERVICES = ['KROM', 'STOM', 'KVL']; +const STATUSES = ['active', 'follow-up']; +const STEPS = ['Gemensam planering', 'Periodisk rapport', 'Resultatrapport', 'Slutrapport']; function generateParticipants(amount = 10) { const participants = []; @@ -12,7 +14,9 @@ function generateParticipants(amount = 10) { id, firstName: faker.name.firstName(), lastName: faker.name.lastName(), + status: STATUSES[Math.floor(Math.random() * STATUSES.length)], service: AVAILABLE_SERVICES[Math.floor(Math.random() * AVAILABLE_SERVICES.length)], + nextStep: STEPS[Math.floor(Math.random() * STEPS.length)], errandNumber: faker.random.number({ min: 100000, max: 999999 }), startDate: faker.date.recent(), endDate: faker.date.future(),