feat(api): add pull request and wiki API endpoints with OpenAPI generator
- Add gen_openapi binary for generating OpenAPI specification - Implement comprehensive pull request API endpoints including core operations - Add pull request reviews, check runs, labels, assignees, and events APIs - Include pull request status and merge strategy management endpoints - Add wiki page CRUD operations with revision history and comparison - Update OpenAPI documentation with Pull Requests and Wiki tags - Modify workspace find function visibility for external access - Integrate new API modules into main OpenAPI router configuration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
use utoipa::OpenApi;
|
||||
use appks::api::openapi::OpenApiDoc;
|
||||
|
||||
fn main() {
|
||||
let json = OpenApiDoc::openapi()
|
||||
.to_pretty_json();
|
||||
if let Ok(json) = json {
|
||||
if let Err(e) = std::fs::write("openapi.json", json) {
|
||||
eprintln!("{}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user