api

package
v0.35.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

README

API Documentation

This directory contains all API-related documentation for the FlowBot project.

File Descriptions

swagger.json & swagger.yaml
  • OpenAPI 3.0 specification files
  • Contains complete API interface definitions
  • Supports multiple formats (JSON and YAML)
docs.go
  • Go code automatically generated by the swaggo/swag tool
  • Contains embedded API documentation definitions
  • Used to provide Swagger UI at runtime
api.http
  • Collection of HTTP request examples
  • Can be run directly in VS Code or IntelliJ
  • Contains test requests for various interfaces

Usage

View API Documentation

After starting the service, visit: http://localhost:8080/swagger/index.html

Generate/Update API Documentation
# Install swag tool
go install github.com/swaggo/swag/cmd/swag@latest

# Generate API documentation
swag init -g cmd/main.go

# Format API documentation
swag fmt -g cmd/main.go

API Overview

Main Modules
  • dev - Development and debugging related interfaces
  • okr - Objectives and Key Results management
  • search - Search functionality
  • user - User-related functionality
  • workflow - Workflow management
Authentication

All APIs that require authentication use ApiKeyAuth authentication method:

Authorization: Bearer <your-token>

Documentation

Overview

Package api Code generated by swaggo/swag. DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var SwaggerInfo = &swag.Spec{
	Version:          "1.0",
	Host:             "localhost:6060",
	BasePath:         "/service",
	Schemes:          []string{"http"},
	Title:            "Flowbot API",
	Description:      "Flowbot Chatbot API",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

SwaggerInfo holds exported Swagger Info so clients can modify it

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL