{"id":16223768,"url":"https://github.com/alilleybrinker/cwe-api","last_synced_at":"2025-04-08T01:45:47.440Z","repository":{"id":253027510,"uuid":"842240743","full_name":"alilleybrinker/cwe-api","owner":"alilleybrinker","description":"Rust implementation of a CWE API consumer.","archived":false,"fork":false,"pushed_at":"2024-08-23T18:59:23.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T01:51:46.217Z","etag":null,"topics":["cwe","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/cwe-api","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/alilleybrinker.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-08-14T00:35:48.000Z","updated_at":"2024-09-24T20:32:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"945b6070-0ddb-4e06-a411-92ecfda99c95","html_url":"https://github.com/alilleybrinker/cwe-api","commit_stats":null,"previous_names":["alilleybrinker/cwe-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilleybrinker%2Fcwe-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilleybrinker%2Fcwe-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilleybrinker%2Fcwe-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilleybrinker%2Fcwe-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alilleybrinker","download_url":"https://codeload.github.com/alilleybrinker/cwe-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761030,"owners_count":20991533,"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":["cwe","rust"],"created_at":"2024-10-10T12:20:03.855Z","updated_at":"2025-04-08T01:45:47.426Z","avatar_url":"https://github.com/alilleybrinker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# `cwe-api`\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue)][license]\n\n\u003c/div\u003e\n\nThis is a crate for convenient use of the [Common Weakness Enumeration (CWE)\nAPI][cwe_api]. This is __not__ an official crate produced by the CWE program.\n\nThe code in this crate is generated using [Progenitor][progenitor], based on\nthe published [CWE OpenAPI specification][cwe_openapi].\n\n## Packages\n\nThis repository includes two Rust crates:\n\n- `cwe-api`: a library crate for accessing the CWE API.\n- `cwe-api-cli`: a binary crate that provides a CLI for accessing the CWE API.\n\n## Installing the CLI\n\n```sh\n$ git clone https://github.com/alilleybrinker/cwe-api.git\n$ cd cwe-api\n$ cargo install --path cwe-api-cli\n```\n\nThis requires `git` and a [Rust toolchain installation][rust_install].\n\n## CLI Example\n\n```sh\n$ cwe-api cwe info 230\n[\n  {\n    \"ID\": \"230\",\n    \"Type\": \"variant_weakness\"\n  }\n]\n$ cwe-api cwe parents 230\n[\n  {\n    \"ID\": \"229\",\n    \"Primary_Parent\": true,\n    \"Type\": \"base_weakness\",\n    \"ViewID\": \"1000\"\n  },\n  {\n    \"ID\": \"1407\",\n    \"Type\": \"category\",\n    \"ViewID\": \"1400\"\n  },\n  {\n    \"ID\": \"851\",\n    \"Type\": \"category\",\n    \"ViewID\": \"844\"\n  },\n  {\n    \"ID\": \"993\",\n    \"Type\": \"category\",\n    \"ViewID\": \"888\"\n  }\n]\n```\n\n## License\n\nThe code is licensed under the MIT license. You can view the full contents\nin the [LICENSE][license] file.\n\n[cwe_api]: https://github.com/CWE-CAPEC/REST-API-wg/blob/main/Quick%20Start.md\n[cwe_openapi]: https://github.com/CWE-CAPEC/REST-API-wg/blob/main/openapi.json\n[progenitor]: https://github.com/oxidecomputer/progenitor\n[license]: https://github.com/alilleybrinker/cwe-api/blob/main/LICENSE\n[rust_install]: https://www.rust-lang.org/tools/install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilleybrinker%2Fcwe-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falilleybrinker%2Fcwe-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilleybrinker%2Fcwe-api/lists"}