{"id":13602138,"url":"https://github.com/ndelvalle/rustapi","last_synced_at":"2025-10-06T13:53:21.714Z","repository":{"id":37859245,"uuid":"215847544","full_name":"ndelvalle/rustapi","owner":"ndelvalle","description":"🚀 RESTful Rust API Template / Boilerplate","archived":false,"fork":false,"pushed_at":"2025-02-07T10:26:40.000Z","size":663,"stargazers_count":540,"open_issues_count":17,"forks_count":64,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-25T02:05:13.071Z","etag":null,"topics":["api","axum","boilerplate","mongodb","restful","rust","starter-template"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ndelvalle.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,"zenodo":null}},"created_at":"2019-10-17T17:21:47.000Z","updated_at":"2025-09-24T18:10:28.000Z","dependencies_parsed_at":"2023-02-18T00:16:23.465Z","dependency_job_id":"fec3722e-1bfb-4ece-a467-c1772a24ee7a","html_url":"https://github.com/ndelvalle/rustapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ndelvalle/rustapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndelvalle%2Frustapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndelvalle%2Frustapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndelvalle%2Frustapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndelvalle%2Frustapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndelvalle","download_url":"https://codeload.github.com/ndelvalle/rustapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndelvalle%2Frustapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278621836,"owners_count":26017253,"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-10-06T02:00:05.630Z","response_time":65,"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":["api","axum","boilerplate","mongodb","restful","rust","starter-template"],"created_at":"2024-08-01T18:01:15.058Z","updated_at":"2025-10-06T13:53:21.678Z","avatar_url":"https://github.com/ndelvalle.png","language":"Rust","funding_links":[],"categories":["boilerplate"],"sub_categories":[],"readme":"# rustapi\n\n[![Tests](https://github.com/ndelvalle/rustapi/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/ndelvalle/rustapi/actions/workflows/test.yml)\n\nRESTful API template built with Rust lang. It uses [MongoDB](https://docs.mongodb.com/)\ndatabase and [Axum](https://github.com/tokio-rs/axum) HTTP framework.\n\n### Requirements\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [MongoDB](https://docs.mongodb.com/manual/installation/)\n\n### How to use this template\n\nTo use this template as your project starting point, click \"Use this template\" at the top of this page, or click [here](https://github.com/ndelvalle/rustapi/generate).\n\n### Feature highlights\n\n* Authentication. Based on [jsonwebtoken](https://github.com/Keats/jsonwebtoken)\n* Layered configuration. Based on [config-rs](https://github.com/mehcode/config-rs)\n* Logs. Based on [tracing](https://github.com/tokio-rs/tracing)\n* Error handling\n* Pagination\n* E2E Tests\n* OpenAPI Specification\n* CI based on Github actions\n* Dependabot configuration\n\n### Project structure\n\n```bash\n├── Cargo.lock\n├── Cargo.toml\n├── README.md\n├── config\n│   ├── default.json    # Default configuration\n│   ├── production.json # Production configuration (Overwrites the default)\n│   └── test.json       # Test configuration (Overwrites the default)\n├── rustfmt.toml\n├── src\n│   ├── database.rs\n│   ├── errors.rs\n│   ├── lib             # Helpers not related to the business model\n│   │   ├── authenticate_request.rs\n│   │   ├── date.rs\n│   │   ├── mod.rs\n│   │   ├── models.rs   # Base Database Model trait\n│   │   ├── to_object_id.rs\n│   │   └── token.rs\n│   ├── logger.rs\n│   ├── main.rs\n│   ├── models\n│   │   ├── cat.rs\n│   │   ├── mod.rs\n│   │   └── user.rs\n│   ├── routes\n│   │   ├── cat.rs\n│   │   ├── mod.rs\n│   │   ├── status.rs\n│   │   └── user.rs\n│   ├── settings.rs\n│   └── tests           # E2E Tests\n└── test.sh\n```\n\n### Test\nTo run tests make sure MongoDB is up and running.\n```\nmake test\n``` \n\n## Contributing\n\nContributors are welcome, please fork and send pull requests! If you find a bug\nor have any ideas on how to improve this project please submit an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndelvalle%2Frustapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndelvalle%2Frustapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndelvalle%2Frustapi/lists"}