Skip to content

Refactor tools API to Fastify TypeScript adapter#76

Open
pasibun wants to merge 16 commits into
mainfrom
60-tools-api-refactor
Open

Refactor tools API to Fastify TypeScript adapter#76
pasibun wants to merge 16 commits into
mainfrom
60-tools-api-refactor

Conversation

@pasibun

@pasibun pasibun commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@pasibun pasibun linked an issue Jun 10, 2026 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

- Updated package.json to change main entry point and scripts for NestJS.
- Removed legacy Fastify app structure from app.ts, config.ts, error-handler.ts, routes.ts, server.ts, and operation-id.ts.
- Introduced ToolsApiService to handle API logic using NestJS.
- Updated TypeScript configuration for compatibility with NestJS.
- Modified tests to work with the new NestJS application structure.
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

- Changed the base URL in the OpenAPI specification from `https://api.don.projects.digilab.network/tools/v1` to `https://api.don.apps.digilab.network/tools/v1`.
- Added custom operation handlers for various endpoints in the OpenAPI specification.
- Introduced `api-implementations.ts` to define API implementations.
- Created `api.module.ts` to manage dynamic module configuration for API implementations.
- Implemented `ToolsApiService` to handle business logic for the Tools API.
- Updated `ToolsApiController` to remove unnecessary HTTP code decorators.
- Adjusted the main entry point in `package.json` and `tsconfig.json` to reflect the new structure.
- Added tests to ensure the application works as expected with the new structure.
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tools-api refactor

1 participant