{"id":18982675,"url":"https://github.com/jorazon/tx00dz38-3004-project","last_synced_at":"2026-04-20T19:04:33.488Z","repository":{"id":124027752,"uuid":"468103134","full_name":"Jorazon/TX00DZ38-3004-Project","owner":"Jorazon","description":"Simple Frontend and API using React and Node","archived":false,"fork":false,"pushed_at":"2022-03-11T09:06:22.000Z","size":365,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T11:43:15.348Z","etag":null,"topics":["api","nodejs","react","rest-api"],"latest_commit_sha":null,"homepage":"","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/Jorazon.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":"2022-03-09T21:52:22.000Z","updated_at":"2024-03-12T21:20:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b01f9bd-88a0-43d1-b034-dccae1b639ea","html_url":"https://github.com/Jorazon/TX00DZ38-3004-Project","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/Jorazon%2FTX00DZ38-3004-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorazon%2FTX00DZ38-3004-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorazon%2FTX00DZ38-3004-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorazon%2FTX00DZ38-3004-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jorazon","download_url":"https://codeload.github.com/Jorazon/TX00DZ38-3004-Project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239987266,"owners_count":19729773,"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":["api","nodejs","react","rest-api"],"created_at":"2024-11-08T16:14:20.570Z","updated_at":"2025-11-10T19:04:22.812Z","avatar_url":"https://github.com/Jorazon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Front page](/frontpage.png)\n\n# API JSON format\n\n## `GET http://example.com/api/products`\n\nresponse:\n\n```json\n[\n\t{\n\t\t\"id\": 1,\n\t\t\"name\": \"Test item\",\n\t\t\"description\": \"edited content\",\n\t\t\"price\": 9000,\n\t\t\"quantity\": 8\n\t},\n\t{\n\t\t\"id\": 2,\n\t\t\"name\": \"Test item\",\n\t\t\"description\": \"Lorem ipsum dolor\",\n\t\t\"price\": 5,\n\t\t\"quantity\": 1\n\t},\n\t...\n]\n```\n\n---\n\n## `GET http://example.com/api/products/1`\n\nresponse:\n\n```json\n{\n\t\"id\": 1,\n\t\"name\": \"Test item\",\n\t\"description\": \"edited content\",\n\t\"price\": 9000,\n\t\"quantity\": 8\n}\n```\n\n---\n\n## `POST http://example.com/api/products`\n\nbody:\n\n```json\n{\n\t\"name\": \"Test item\",\n\t\"description\": \"Lorem ipsum\",\n\t\"price\": 9000.0,\n\t\"quantity\": 1\n}\n```\n\nresponse:\n\n```json\n{\n\t\"id\": 3,\n\t\"name\": \"Test item\",\n\t\"description\": \"Lorem ipsum\",\n\t\"price\": 9000,\n\t\"quantity\": 1\n}\n```\n\n---\n\n## `PATCH http://example.com/api/products/3`\n\nbody:\n\n```json\n{\n\t\"quantity\": 100\n}\n```\n\n\u003e any valid key/value pair set allowed\n\nresponse:\n\n```json\n{\n\t\"id\": 3,\n\t\"name\": \"Test item\",\n\t\"description\": \"Lorem ipsum\",\n\t\"price\": 9000,\n\t\"quantity\": 100\n}\n```\n\n---\n\n## `DELETE http://example.com/api/products`\n\n\u003e Requires authorization\n\n---\n\n## `DELETE http://example.com/api/products/3`\n\n---\n\n## `POST http://example.com/api/register`\n\nAuthorization: Basic  \nUsername: testuser  \nPassword: test\n\nresponse:\n\n```json\n{\n\t\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3R1c2VyIiwiaWF0IjoxNjQ2ODYxMzM5LCJleHAiOjE2NDY4NjQ5Mzl9.6HS8agRqRYC9zjW_QY3rYD9uwFStHYYW-OVK6FsAZv4\",\n\t\"username\": \"testuser\"\n}\n```\n\n---\n\n## `POST http://example.com/api/login`\n\nAuthorization: Basic  \nUsername: testuser  \nPassword: test\n\nresponse:\n\n```json\n{\n\t\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3R1c2VyIiwiaWF0IjoxNjQ2ODYxNTQxLCJleHAiOjE2NDY4NjUxNDF9.vMg3NoU64JCUZTLs2mpBELVaMmIFy85CCzgnp8sMu7E\",\n\t\"username\": \"testuser\"\n}\n```\n\n---\n\n## `POST http://example.com/api/login`\n\nAuthorization: Bearer  \nToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3R1c2VyIiwiaWF0IjoxNjQ2ODYxNTQxLCJleHAiOjE2NDY4NjUxNDF9.vMg3NoU64JCUZTLs2mpBELVaMmIFy85CCzgnp8sMu7E\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorazon%2Ftx00dz38-3004-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorazon%2Ftx00dz38-3004-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorazon%2Ftx00dz38-3004-project/lists"}