go-admingo-admin
  • Guide
  • Development
    • Advanced
    • Commands
  • Advanced
  • Help
  • GitHub
  • Changelog
⌘ K
Standard Practice
Standard Module Development
Backend Basics
Backend Directory Structure
Backend Config File
Starting the Backend
Frontend Basics
Frontend Directory Structure
Frontend Config File
Starting the Frontend
Development Patterns
Actions Pattern
Hand-Written Pattern
First API Endpoint
Layered Development
API Layer
Service Layer
DTO Definitions
Model Definitions
Router Registration
Multi-Environment Config
Database Table Conventions
Data Permissions
Response Format
Code Generation
Pre-Generation Setup
Generating Business Code
One-Click Menu Generation
Binding APIs to the Menu
Configuring Role Permissions
Verifying the Feature
Generating Code with an LLM
Advanced Capabilities
Runtime Core API
Authentication & Authorization
Logging
Request Tracing
Cache
Queue
File Upload
Rate Limiting
Scheduled Jobs
Air Hot Reload
Swagger Docs
Code Generation Tool
Last updated:
Open-source MIT Licensed | Copyright © 2020-present
Powered by go-admin-team

TABLE OF CONTENTS

‌
‌
‌
‌

Binding the New APIs to the Menu

  1. First, get the newly added APIs registered automatically into API management —

run this command directly:

sh
$ go run main.go server -c config/settings.yml -a

-a is a new flag on the server command — a boolean switch, off by default and on when passed, that checks and creates entries for every API the running program exposes.

WARNING

-a is a boolean switch: writing -a true or -a false is not valid usage. true / false won't be read as the flag's value — they'll be treated as an extra positional argument. To turn it off, just omit the flag.

  1. Go to "System Management → API Management" — the APIs just registered should be visible there. Edit their names, groups, etc. as needed so they line up with the menu, which makes them easier to identify during the next authorization step.