{"id":20365651,"url":"https://github.com/hackyourfuture/example-api-express-typescript","last_synced_at":"2025-08-17T22:10:49.158Z","repository":{"id":74101973,"uuid":"83332366","full_name":"HackYourFuture/example-api-express-typescript","owner":"HackYourFuture","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-01T17:30:14.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T22:02:33.114Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HackYourFuture.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":"2017-02-27T16:35:04.000Z","updated_at":"2017-02-27T16:35:35.000Z","dependencies_parsed_at":"2023-04-09T18:47:00.468Z","dependency_job_id":null,"html_url":"https://github.com/HackYourFuture/example-api-express-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HackYourFuture/example-api-express-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackYourFuture%2Fexample-api-express-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackYourFuture%2Fexample-api-express-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackYourFuture%2Fexample-api-express-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackYourFuture%2Fexample-api-express-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HackYourFuture","download_url":"https://codeload.github.com/HackYourFuture/example-api-express-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackYourFuture%2Fexample-api-express-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270912603,"owners_count":24666751,"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-08-17T02:00:09.016Z","response_time":129,"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-15T00:19:24.476Z","updated_at":"2025-08-17T22:10:49.108Z","avatar_url":"https://github.com/HackYourFuture.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example API for HackYourFuture Angular class\n\nTo start the app, first `cd` to the folder where this readme is located. Then:\n```\nnpm install -g gulp\nnpm install\ngulp\nnode dist/server.js\n```\n\nThis should result in something like:\n\n```\nUsers API listening on port 3000\n```\n\n*!KEEP THIS TAB OPEN! it will wait for your requests* \n\nIn your browser, go to [http://localhost:3000](http://localhost:3000)\n\nThis should show a friendly message :). \n\nOther methods, like POST and PATCH and DELETE can only be made from either [Postman](https://www.getpostman.com) or from your Angular application.\n\n\n## Possible requests and example response\nResponse body:\n### GET `/` -\nResponse - 200 - Body:\n```{\"message\": \"Users API up and running!\"}```\n\n### GET `/v1/users`\nResponse - 200 - Body:\n```\n[\n  {\n    \"firstName\": \"Piet\",\n    \"lastName\": \"Friet\",\n    \"age\": 72,\n    \"email\": \"pietfriet@gmail.com\",\n    \"profilePictureUrl\": \"http://retailparkroermond.com/nl/horeca/piet-friet/afbeeldingen/piet-friet-l.png\",\n    \"_id\": \"8m0nGYgSttzCNG0t\"\n  }\n]\n```\n\n### POST `/v1/users` \nRequest body:\n```\n{\n  \"firstName\": \"Piet\",\n  \"lastName\": \"Friet\",\n  \"age\": 72,\n  \"email\": \"pietfriet@gmail.com\",\n  \"profilePictureUrl\": \"http://retailparkroermond.com/nl/horeca/piet-friet/afbeeldingen/piet-friet-l.png\"\n}\n```\n\nResponse body:\n```\n{\n  \"firstName\": \"Piet\",\n  \"lastName\": \"Friet\",\n  \"age\": 72,\n  \"email\": \"pietfriet@gmail.com\",\n  \"profilePictureUrl\": \"http://retailparkroermond.com/nl/horeca/piet-friet/afbeeldingen/piet-friet-l.png\",\n  \"_id\": \"B1w2s30z2L3n0Jrj\"\n}\n```\n\n### PATCH `/v1/users/B1w2s30z2L3n0Jrj` \nRequest body:\n```\n{\n  \"firstName\": \"NewFirstName\"\n}\n```\n\nResponse (if user exists in database) - 204 - Body:\n```\n(empty)\n```\n\nResponse (if user does not exist in database) - 404 - Body:\n```\n{\"Reason\": \"That user does not exist\"}\n```\n\n### DELETE `/v1/users/B1w2s30z2L3n0Jrj` \nRequest body:\n```\n{\n  \"firstName\": \"NewFirstName\"\n}\n```\n\nResponse (if user exists in database) - 204 - Body:\n```\n(empty)\n```\n\nResponse (if user does not exist in database) - 404 - Body:\n```\n{\"Reason\": \"That user does not exist\"}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackyourfuture%2Fexample-api-express-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackyourfuture%2Fexample-api-express-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackyourfuture%2Fexample-api-express-typescript/lists"}