{"id":19045443,"url":"https://github.com/marirs/rocket-mongo","last_synced_at":"2026-05-07T09:31:23.421Z","repository":{"id":84060993,"uuid":"393864389","full_name":"marirs/rocket-mongo","owner":"marirs","description":"REST API Service using Rust \u0026 Rocket with MongoDB as backend","archived":false,"fork":false,"pushed_at":"2022-02-05T05:12:36.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T14:59:03.018Z","etag":null,"topics":["api","api-rest","mongo","mongodb","rest","rocket","rust","rust-lang"],"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/marirs.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":"2021-08-08T05:13:13.000Z","updated_at":"2022-02-05T04:14:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"af0dd760-960a-4410-a231-339d44f27d9a","html_url":"https://github.com/marirs/rocket-mongo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marirs/rocket-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Frocket-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Frocket-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Frocket-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Frocket-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marirs","download_url":"https://codeload.github.com/marirs/rocket-mongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Frocket-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","api-rest","mongo","mongodb","rest","rocket","rust","rust-lang"],"created_at":"2024-11-08T22:50:13.186Z","updated_at":"2026-05-07T09:31:23.402Z","avatar_url":"https://github.com/marirs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket Mongo\n[![build](https://github.com/marirs/rocket-mongo/actions/workflows/ci.yml/badge.svg)](https://github.com/marirs/rocket-mongo/actions/workflows/ci.yml)\n![](https://img.shields.io/badge/os-windows%7Clinux%7Cmacos-orange)\n![](https://img.shields.io/badge/platform-intel%7Carm-yellowgreen)\n![GitHub](https://img.shields.io/github/license/marirs/rocket-mongo?style=plastic)\n\nA Simple Skeleton API Rest server using [Rocket](https://rocket.rs/) with the backend database as [MongoDB](https://www.mongodb.com/).\n\n### Features\n- Custom config file defining:\n    - server host ip and port to listen\n    - enable/disable ssl with ssl cert auto generation\n    - mongodb configurations\n- Use the `x-api-key` header to validate `API Keys`\n- `Restrict` a client connecting IP Addresses to the endpoints using `Allow ACL`\n- `Restrict` endpoints using the `Allow ACL`\n\n### Requirements\n\n- Rust 1.56+ (2021 edition)\n\n### Compile\n\n```bash\ncargo build --release\n```\n\n- Sample config file is available at `config.yml`\n\n### Available endpoints\n\n- Index/User management endpoint\n\n| Description | Endpoint | Method |\n| --- | --- | --- |\n| Api index | `/` | GET |\n| List all Users | `/users` | GET |\n| Create user | `/users` | POST |\n| Update user | `/users` | PUT |\n| Delete user | `/users/\u003cEmail\u003e` | DELETE |\n\n### POST Request for `new user creation` / `user update`\nThe below example goes into json body of POST/PUT request while creating a new user\n```\n{\n  \"email\": \"email\",\n  \"description\": \"...\",\n  \"is_admin\": false,\n  \"acl_allow_ips\": [\"127.0.0.1\", \"\u003cIP_ADDRESS\u003e\"] // use [\"*\"] if you want to allow from any IP\n  \"acl_allow_endpoints\": [\"/users\"] // use [\"*\"] if you want to allow all endpoints access\n}\n```\n\n### Seed data \u0026 Configuration\n\n```json\n{\n  \"created_ip\" : \"127.0.0.1\",\n  \"created_by\" : \"email\",\n  \"created_at\" : \"2021-08-02T00:00:00Z\",\n  \"email\" : \"email\",\n  \"description\": \"...\",\n  \"api_key\" : \"apikey123\",\n  \"is_admin\" : true,\n  \"acl_allow_ips\" : [\"*\"],\n  \"acl_allow_endpoints\": [\"*\"]\n}\n```\n### Other projects\n\n- If you want with Rate-Limit, go [here](https://github.com/marirs/rocketapi).\n- If you want with JWT Auth, go [here](https://github.com/marirs/rocket-jwt).\n\n---\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Frocket-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarirs%2Frocket-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Frocket-mongo/lists"}