{"id":20810923,"url":"https://github.com/exposedcat/university-rest","last_synced_at":"2026-04-15T12:32:23.950Z","repository":{"id":104257084,"uuid":"408586493","full_name":"ExposedCat/university-rest","owner":"ExposedCat","description":"BotsCrew test task: REST API for the university, which consists of departments and lectors.","archived":false,"fork":false,"pushed_at":"2021-09-24T14:17:59.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T04:41:23.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExposedCat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-20T20:11:56.000Z","updated_at":"2021-09-24T14:18:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"26420dd3-a387-47e7-8a20-1e5906cd5827","html_url":"https://github.com/ExposedCat/university-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExposedCat/university-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Funiversity-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Funiversity-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Funiversity-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Funiversity-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExposedCat","download_url":"https://codeload.github.com/ExposedCat/university-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Funiversity-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28002285,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-17T20:28:58.580Z","updated_at":"2025-12-24T12:17:29.930Z","avatar_url":"https://github.com/ExposedCat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# University REST \n## Setup db with test data \nConfig: `connector/src/config/manifest.js`  \nRunning: `cd connector \u0026\u0026 npm run prepare` or `cd connector \u0026\u0026 node src/utilites/fill-db.js`.  \nIt will clear `university-rest-db` collection (default, can be changed in config) and add 4 lectors in 2 departments with different salaries and degrees.\n## Connector \nConfig: `connector/src/config/manifest.js`  \nDependencies: `cd connector \u0026\u0026 npm install`  \nRunning: `cd connector \u0026\u0026 npm start` or `cd connector \u0026\u0026 node src/app.js`. By default running port is 3000 (can be changed in config).  \nEndpoints:\n - `/getHeadOfDepartment?name={department_name}` - get head of the department\n - `/getDepartmentStatistic?name={department_name}` - get department statistic\n - `/getAverageSalaryOfDepartment?name={department_name}` - get average salary of lectors of the department\n - `/getCountOfEmployeeForDepartment?name={department_name}` - get count of employee of the department\n - `/globalSearch?query={query_to_search}` - global lectors names search\n## Client \nConfig: `clinet/src/utilites/config.js`  \nDependencies: `cd clinet \u0026\u0026 npm install`  \nRunning: `cd clinet \u0026\u0026 npm start` or `cd clinet \u0026\u0026 node src/app.js`. By default running port is 8080 and using connector on 3000 (can be changed in config).  \nEndpoints:\n - `/search?query={search_query}` - get data using commands:  \n   - Who is head of department {department_name}\n   - Show {department_name} statistic\n   - Show the average salary for department {department_name}\n   - Show count of employee for {department_name}\n   - Global search by {template}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Funiversity-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexposedcat%2Funiversity-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Funiversity-rest/lists"}