{"id":25363898,"url":"https://github.com/vitexus/cnb-cacher","last_synced_at":"2025-04-09T04:41:50.252Z","repository":{"id":273694065,"uuid":"920363713","full_name":"Vitexus/cnb-cacher","owner":"Vitexus","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-22T11:46:17.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T22:53:28.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Vitexus.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":"2025-01-22T02:40:59.000Z","updated_at":"2025-01-22T11:46:20.000Z","dependencies_parsed_at":"2025-01-22T12:42:46.661Z","dependency_job_id":null,"html_url":"https://github.com/Vitexus/cnb-cacher","commit_stats":null,"previous_names":["vitexus/cnb-cacher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vitexus%2Fcnb-cacher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vitexus%2Fcnb-cacher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vitexus%2Fcnb-cacher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vitexus%2Fcnb-cacher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vitexus","download_url":"https://codeload.github.com/Vitexus/cnb-cacher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980822,"owners_count":21027803,"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":[],"created_at":"2025-02-14T22:53:43.567Z","updated_at":"2025-04-09T04:41:50.224Z","avatar_url":"https://github.com/Vitexus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Web Service for Currency Exchange Rates\n\nThis project is a Rust-based web service that serves currency exchange rates in JSON format. It provides endpoints to retrieve today's and yesterday's exchange rates for various currencies.\n\n## Project Structure\n\n```\nrust-web-service\n├── src\n│   ├── main.rs          # Entry point of the application\n│   ├── routes\n│   │   └── mod.rs      # Routing logic for currency endpoints\n│   ├── handlers\n│   │   └── currency.rs  # Logic for fetching and returning currency rates\n│   └── utils\n│       └── fetch.rs     # Utility functions for fetching exchange rate data\n├── Cargo.toml           # Configuration file for the Rust project\n└── README.md            # Documentation for the project\n```\n\n## Setup Instructions\n\n1. **Clone the repository:**\n\n   ```\n   git clone \u003crepository-url\u003e\n   cd rust-web-service\n   ```\n\n2. **Build the project:**\n\n   ```\n   cargo build\n   ```\n\n3. **Run the web service:**\n\n   ```\n   cargo run\n   ```\n\n## Usage\n\n- To get today's exchange rate for a specific currency:\n\n  ```\n  GET /today/{CURRENCY_CODE}.json\n  ```\n\n- To get yesterday's exchange rate for a specific currency:\n\n  ```\n  GET /yesterday/{CURRENCY_CODE}.json\n  ```\n\nReplace `{CURRENCY_CODE}` with the appropriate currency code (e.g., USD, EUR).\n\n## Dependencies\n\nThis project uses several dependencies specified in the `Cargo.toml` file. Make sure to check it for any additional setup required.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitexus%2Fcnb-cacher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitexus%2Fcnb-cacher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitexus%2Fcnb-cacher/lists"}