{"id":19982050,"url":"https://github.com/idematos/actix-web-api","last_synced_at":"2025-03-01T19:44:52.978Z","repository":{"id":258671439,"uuid":"863007193","full_name":"idematos/actix-web-api","owner":"idematos","description":"A simple API that supports CRUD operations with in-memory storage. ","archived":false,"fork":false,"pushed_at":"2024-11-10T12:37:18.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T11:12:14.101Z","etag":null,"topics":["actix-web","api","rest-api","rust","rust-lang","rustlang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idematos.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-09-25T14:58:26.000Z","updated_at":"2024-11-10T12:37:22.000Z","dependencies_parsed_at":"2024-10-20T03:55:07.021Z","dependency_job_id":null,"html_url":"https://github.com/idematos/actix-web-api","commit_stats":null,"previous_names":["idematos/actix-web-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idematos%2Factix-web-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idematos%2Factix-web-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idematos%2Factix-web-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idematos%2Factix-web-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idematos","download_url":"https://codeload.github.com/idematos/actix-web-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241418207,"owners_count":19959733,"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":["actix-web","api","rest-api","rust","rust-lang","rustlang"],"created_at":"2024-11-13T04:08:52.709Z","updated_at":"2025-03-01T19:44:52.933Z","avatar_url":"https://github.com/idematos.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Actix Web API\nThis is a simple REST API built with [Actix Web](https://actix.rs/) that supports CRUD operations with an in-memory data store.\n\n## Prerequisites\n- [Rust](https://www.rust-lang.org/) \n- [Cargo](https://doc.rust-lang.org/cargo/) \n\n## Running\nStart the API server:\n   ```\n   cargo run\n   ```\n\nBy default, the server will be running at `http://127.0.0.1:8080`.\n\n## API Endpoints\n\n### Get All Items\n```\nGET /items\n```\n\n#### Response:\n\n```\n[\n  {\n    \"id\": \"item-id-1\",\n    \"name\": \"Item Name\",\n    \"quantity\": 10\n  },\n  {\n    \"id\": \"item-id-2\",\n    \"name\": \"Another Item\",\n    \"quantity\": 5\n  }\n]\n```\n\n### Get Single Item\n\n```\nGET /items/{id}\n```\n\n#### Response:\n\n```\n{\n  \"id\": \"item-id\",\n  \"name\": \"Item Name\",\n  \"quantity\": 10\n}\n```\n\n### Add New Item\n\n```\nPOST /items\n```\n\n#### Request Body:\n\n```\n{\n  \"name\": \"New Item\",\n  \"quantity\": 12\n}\n```\n\n#### Response:\n\n```\n{\n  \"id\": \"newly-generated-id\",\n  \"name\": \"New Item\",\n  \"quantity\": 12\n}\n```\n\n### Delete Item\n\n```\nDELETE /items/{id}\n```\n\n#### Response:\n\n```\nStatus: 200 OK\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidematos%2Factix-web-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidematos%2Factix-web-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidematos%2Factix-web-api/lists"}