feat(api): update OpenAPI specification#43
Open
alvarobernal2412 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a complete OpenAPI 3.0 specification for the scheduled task management API of the Governify Director project. The documentation defines all endpoints, data schemas, and workflows required for comprehensive task management using JavaScript scripts.
Changes Made
📋 API Specification (
api/oas-file.yaml)New OpenAPI 3.0 specification for the Task Management API
8 main endpoints, organized into 3 categories:
GET,POST,PUT,DELETE)🔧 Core Features Documented
Task Management
GET /api/v1/tasks– List tasks with filtering via query parametersPOST /api/v1/tasks– Create a new task with auto-generated UUIDGET /api/v1/tasks/{id}– Retrieve a specific task by IDPUT /api/v1/tasks/{id}– Fully update a taskDELETE /api/v1/tasks/{id}– Permanently delete a taskTask Status & Monitoring
GET /api/v1/tasks/{id}/status– Execution status and next run timeGET /api/v1/tasks/{id}/badge– Visual SVG badge of the current statusPOST /api/v1/tasks/{id}/status/{action}– Control task state (start/stop/switch)Script Execution
POST /api/v1/tasks/{id}/run– Manually trigger immediate executionPOST /api/v1/tasks/test– Test scripts before creating tasks📊 Data Schemas
🔒 Security
📖 Documentation Features
Benefits