{"id":19859390,"url":"https://github.com/dmitry-stepanenko/employee_test_api","last_synced_at":"2026-06-14T10:32:19.217Z","repository":{"id":53797229,"uuid":"233799839","full_name":"dmitry-stepanenko/employee_test_api","owner":"dmitry-stepanenko","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-11T00:06:27.000Z","size":264,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T14:30:29.659Z","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/dmitry-stepanenko.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}},"created_at":"2020-01-14T09:04:12.000Z","updated_at":"2020-10-26T05:39:47.000Z","dependencies_parsed_at":"2022-09-25T02:50:35.999Z","dependency_job_id":null,"html_url":"https://github.com/dmitry-stepanenko/employee_test_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-stepanenko%2Femployee_test_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-stepanenko%2Femployee_test_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-stepanenko%2Femployee_test_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-stepanenko%2Femployee_test_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitry-stepanenko","download_url":"https://codeload.github.com/dmitry-stepanenko/employee_test_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241255552,"owners_count":19934885,"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-12T14:26:55.406Z","updated_at":"2026-06-14T10:32:14.186Z","avatar_url":"https://github.com/dmitry-stepanenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This is a Mock API created with Loopback\n\n## Setup\n\n1.  Clone this repo (you might use the SSH URL instead of HTTPS).:\n\n```\ngit clone https://github.com/cuddlemeister/employee_test_api.git\n```\n\n2.  `cd` to the repository directory and run the following command:\n\n```\n$ cd employee_test_api\n$ npm i\n```\n\nThis will load all the required dependencies\n\n## Run and view site locally\n\nRun the server using the following command:\n\n```\n$ npm start\n```\n\nThen, load [http://localhost:3000/explorer/](http://localhost:3000/explorer/) on your browser to view the API explorer.\n\nBase url for your application will be [http://localhost:3000/api/](http://localhost:3000/api/).\n\nThis Mock API represents a simple server, where there are authors, posts and comments. Authors can create and comment on their own posts and posts of other authors. \n\nThis API does not require any databases to be attached, all the data has been generated from scratch every time you boot the server. \n\n__NOTE: ALL YOUR DATA WILL BE REMOVED EACH TIME YOU REBOOT THE SERVER!__\n\n__Also, you should consider that this is a simplified version of the API, no validation of model creation is provided__\n\n\n## Querying data\n\nLoopback provides methods to retrieve data with filtering. It accepts `Fields`, `Include`, `Limit`, `Skip`, `Order` and `Where` filters. \nDetails about how to use them can be found here https://loopback.io/doc/en/lb3/Where-filter.html\n\nHere's a small example of filter object for Authors: \n\n```\n{\n    \"where\": {\n        \"is_female_gender\": false,\n        \"date_of_birth\": {\n            \"gt\": \"1980-01-01T00:00:00.000Z\"\n        }\n    },\n    \"include\": {\n        \"relation\": \"posts\",\n        \"scope\": {\n            \"include\": {\n                \"relation\": \"comments\"\n            }\n        }\n    },\n    \"limit\": 10,\n    \"skip\": 0,\n    \"order\": \"date_of_birth ASC\"\n}\n\n```\n\nThis will include the first 10 (`limit === 10`,` skip === 0`) authors with all their posts and all comments for each post. Only authors born later than `1980-01-01T00: 00: 00.000Z` will be included in it, and all authors will be sorted from oldest to youngest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry-stepanenko%2Femployee_test_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitry-stepanenko%2Femployee_test_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry-stepanenko%2Femployee_test_api/lists"}