flutter-api-bridge

Generate and append Dart API functions from Swagger specs to API_functions.dart.

8|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill flutter-api-bridge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-api-bridge
Source: https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo/tree/main/.agent/skills/flutter-api-bridge
Command: npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill flutter-api-bridge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes and appends API call logic for the ReservAqui Flutter frontend by maintaining the single file Frontend/lib/utils/API_functions.dart, preventing duplication and drift between UI and backend contracts.

Core Features & Use Cases

  • Reads Backend Swagger to understand available endpoints and data schemas.
  • Appends new API function implementations to Frontend/lib/utils/API_functions.dart without overwriting existing code.
  • Keeps the client in sync with the backend, handles base URL and Dio-based authentication implicitly.

Quick Start

Describe the backend operation you need and the skill will append the corresponding Dart function into Frontend/lib/utils/API_functions.dart.

Frequently Asked Questions about flutter-api-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Flutter Dart API functions from a Swagger spec?

You can generate Flutter Dart API functions from a Swagger spec by reading backend endpoints and data schemas, then appending the corresponding Dart functions into a centralized API_functions.dart file to unify backend calls.

Can I append new API calls to an existing Flutter Dart file without overwriting code?

Yes, you can append new API calls to an existing Flutter Dart file without overwriting code. The generation process ensures non-overwrite behavior by adding new function implementations below existing ones.

How do I keep my Flutter frontend API calls in sync with a Swagger backend?

To keep Flutter frontend API calls in sync with a Swagger backend, you read the available endpoints and data schemas from the Swagger spec and append matching Dart functions to your frontend utility file.

Does the generated Flutter API code handle HTTP requests and authentication automatically?

The generated Flutter API code handles HTTP requests and authentication automatically by routing all calls through a shared Dio client, which implicitly manages the base URL and Dio-based authentication.

What is the best way to maintain a single source of truth for Flutter API calls?

The best way to maintain a single source of truth for Flutter API calls is to centralize all API logic in a single file like API_functions.dart, preventing duplication and drift between UI components and backend contracts.

Why does my Flutter API code drift from the backend contract when using Swagger?

Flutter API code drifts from the backend contract when API functions are manually written across multiple files. Centralizing generated functions from the Swagger spec into one file prevents this duplication and drift.