{"id":21043674,"url":"https://github.com/streamlined2/nodejs-sample","last_synced_at":"2025-12-29T17:02:39.909Z","repository":{"id":241393970,"uuid":"801066648","full_name":"streamlined2/nodejs-sample","owner":"streamlined2","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-27T19:50:31.000Z","size":253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T17:25:01.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamlined2.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-15T14:25:10.000Z","updated_at":"2024-05-27T19:50:35.000Z","dependencies_parsed_at":"2024-05-28T05:26:24.178Z","dependency_job_id":"c3208bbf-0830-44f5-8ac6-bde479e62cec","html_url":"https://github.com/streamlined2/nodejs-sample","commit_stats":null,"previous_names":["streamlined2/nodejs-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamlined2%2Fnodejs-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamlined2%2Fnodejs-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamlined2%2Fnodejs-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamlined2%2Fnodejs-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamlined2","download_url":"https://codeload.github.com/streamlined2/nodejs-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489805,"owners_count":20298997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:13:43.970Z","updated_at":"2025-12-29T17:02:34.867Z","avatar_url":"https://github.com/streamlined2.png","language":"TypeScript","readme":"\u003ch2\u003eЗавдання Блоку 4: NodeJS\u003c/h2\u003e\n\nСутність 3 - період часу \u003ci\u003ePeriod\u003c/i\u003e \u003ci\u003esrc/model/period.ts\u003c/i\u003e із атрибутами дати початку \u003ci\u003estart\u003c/i\u003e і завершення періоду \u003ci\u003efinish\u003c/i\u003e.\nСутність 1 - людина \u003ci\u003ePerson\u003c/i\u003e.\u003cp\u003e\n\n\u003ch3\u003eЕндпойнт створення сутності періоду \u003c/h3\u003e\nPOST /api/period\n\u003cp\u003e\nПриклад запиту\n\u003cpre\u003e\nPOST localhost:8888/api/period\n{\n    \"personId\":6062,\n    \"periodType\":\"Entrepreneurship\",\n    \"start\":\"2020-01-02\",\n    \"finish\":\"2023-01-02\",\n    \"remark\":\"Self-employed\"\n}\n\u003c/pre\u003e\n\u003cp\u003e\nАдреса сервісу для перевірки існування сутності людини зберігається в \u003ci\u003eConsul\u003c/i\u003e із ключем \u003ci\u003eendpoint.person\u003c/i\u003e, у разі відсутності значення запит надсилається за адресою \u003cu\u003ehttp://localhost:8080/api/person/\u003c/u\u003e\n\u003cp\u003e\n\u003ch3\u003eЕндпойнт запиту переліку сутностей періоду для зазначеної людини упорядкованих за зменшенням дати початку періода\u003c/h3\u003e\u003cp\u003e\nGET /api/period/personId?from=start\u0026size=amount\n\u003cp\u003e\nПриклад запиту \n\u003cpre\u003e\nGET localhost:8888/api/period/6062?from=3\u0026size=2\n\u003c/pre\u003e\n\u003cp\u003e\n\u003ch3\u003eЕндпойнт запиту кількості сутностей періодів окремо для кожної людини \u003c/h3\u003e\nPOST /api/period/_counts\n\u003cp\u003e\nПриклад запиту\n\u003cpre\u003e\nPOST localhost:8888/api/period/_counts\n{\n    \"personIds\":[2,3,4,6,10,6062]\n}\n\u003c/pre\u003e\n\u003cp\u003e\nПриклад відповіді\u003cp\u003e\n\u003cpre\u003e\n{\n    \"2\": 1,\n    \"3\": 2,\n    \"4\": 1,\n    \"6\": 1,\n    \"10\": 14,\n    \"6062\": 6\n}\n\u003c/pre\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamlined2%2Fnodejs-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamlined2%2Fnodejs-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamlined2%2Fnodejs-sample/lists"}