{"id":19702626,"url":"https://github.com/aitthi/rust-api-example","last_synced_at":"2026-04-18T19:33:05.009Z","repository":{"id":199743586,"uuid":"703654546","full_name":"Aitthi/rust-api-example","owner":"Aitthi","description":"a simple example of rust api","archived":false,"fork":false,"pushed_at":"2024-03-06T04:45:26.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T05:44:45.866Z","etag":null,"topics":["axum","openapi","rust","swagger","swagger-ui"],"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/Aitthi.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":"2023-10-11T16:38:10.000Z","updated_at":"2023-10-11T16:40:50.000Z","dependencies_parsed_at":"2023-12-02T05:40:48.254Z","dependency_job_id":"fb07b73b-b744-42b3-9daa-1b864929e608","html_url":"https://github.com/Aitthi/rust-api-example","commit_stats":null,"previous_names":["aitthi/rust-api-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aitthi/rust-api-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aitthi%2Frust-api-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aitthi%2Frust-api-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aitthi%2Frust-api-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aitthi%2Frust-api-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aitthi","download_url":"https://codeload.github.com/Aitthi/rust-api-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aitthi%2Frust-api-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":["axum","openapi","rust","swagger","swagger-ui"],"created_at":"2024-11-11T21:15:39.920Z","updated_at":"2026-04-18T19:33:04.983Z","avatar_url":"https://github.com/Aitthi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust-api-example\na simple example of rust api\n\n## OpenAPI UI\n```\nhttp://localhost:8080/apidoc\n```\n\n## Folder structure\n```\n.\n├── Cargo.toml # workspace members\n├── api\n|   ├── som_api\n│   │   ├── Cargo.toml\n│   │   ├── src\n│   │   │   ├── lib.rs\n│   │   │   ├── routes.rs\n│   │   │   ├── api_doc.rs\n│   │   │   ├── resource\n│   │   │   │   ├── mod.rs\n│   │   │   │   └── som_func.rs\n├── runtime\n│   ├── Cargo.toml\n│   ├── src\n│   │   └── main.rs\n├── package\n|   ├── som_package\n│   │   ├── Cargo.toml\n│   │   ├── src\n│   │   │   ├── lib.rs\n│   │   │   └── som_func.rs\n└── \n```\n\n## Development\n\nTo develop the application, you will need to install the following tools:\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/Aitthi/rust-api-example.git\n   ```\n2. Change to the project directory:\n   ```sh\n   cd rust-api-example\n   ```\n3. Generate an RSA certificate for JWT:\n   ```sh\n   openssl genrsa -out ./config/jwt/private.key 4096\n   ```\n   ```sh\n   openssl rsa -in ./config/jwt/private.key -pubout -outform PEM -out ./config/jwt/public.key\n   ```\n4. Run the application:\n   ```sh\n   cargo run\n   ```\n   Or, to automatically rebuild and restart:\n   ```sh\n   cargo watch -q -c -x 'run'","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitthi%2Frust-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faitthi%2Frust-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitthi%2Frust-api-example/lists"}