@@ -11,8 +11,8 @@ This guide provides prompts for Large Language Models (like Claude, GPT-4, etc.)
1111```
1212Create a FastAPI service using OSBot-Fast-API that:
13131. Uses the Fast_API class as the base, not regular FastAPI
14- 2. Implements routes using Fast_API_Routes classes with descriptive tags
15- 3. Each route class should extend Fast_API_Routes and implement setup_routes()
14+ 2. Implements routes using Fast_API__Routes classes with descriptive tags
15+ 3. Each route class should extend Fast_API__Routes and implement setup_routes()
16164. Use method naming convention: method_name becomes /method-name
17175. For path parameters use double underscore: method__param becomes /method/{param}
18186. Enable CORS and API key authentication if needed
@@ -24,7 +24,7 @@ Create a FastAPI service using OSBot-Fast-API that:
2424
2525```
2626Add a new route to OSBot-Fast-API that:
27- 1. Extends Fast_API_Routes with appropriate tag property
27+ 1. Extends Fast_API__Routes with appropriate tag property
28282. Uses Type_Safe classes (not Pydantic BaseModel) for request/response schemas
29293. Type_Safe classes should inherit from Type_Safe, not BaseModel
30304. Implements add_route_get/post/put/delete in setup_routes() method
@@ -55,7 +55,7 @@ Create Type-Safe schemas for OSBot-Fast-API:
5555```
5656When working with OSBot-Fast-API type conversions:
57571. Type_Safe classes are automatically converted to/from BaseModel at API boundaries
58- 2. Conversion happens in Fast_API_Routes methods automatically
58+ 2. Conversion happens in Fast_API__Routes methods automatically
59593. Manual conversion: type_safe__to__basemodel.convert_class(Type_Safe_Class)
60604. Reverse: basemodel__to__type_safe.convert_instance(basemodel_instance)
61615. Collections (List, Dict, Set) are automatically handled
@@ -211,7 +211,7 @@ Add static files and shell server to OSBot-Fast-API:
211211```
212212Create a complete OSBot-Fast-API service with:
2132131. Type_Safe schemas for all data models
214- 2. Fast_API_Routes classes for endpoint organization
214+ 2. Fast_API__Routes classes for endpoint organization
2152153. Enable CORS for web clients
2162164. API key authentication for security
2172175. HTTP event tracking for monitoring
@@ -240,7 +240,7 @@ Implement error handling in OSBot-Fast-API:
240240```
241241Follow OSBot-Fast-API best practices:
2422421. Always use Type_Safe classes, never raw Pydantic BaseModel
243- 2. Organize routes in Fast_API_Routes classes by domain
243+ 2. Organize routes in Fast_API__Routes classes by domain
2442443. Set meaningful tags for OpenAPI documentation
2452454. Enable middleware appropriate for environment
2462465. Use environment variables for all configuration
@@ -257,7 +257,7 @@ Follow OSBot-Fast-API best practices:
257257Critical OSBot-Fast-API implementation details:
2582581. NEVER use FastAPI() directly, always use Fast_API()
2592592. NEVER use BaseModel for schemas, always use Type_Safe
260- 3. NEVER use @app.get(), use Fast_API_Routes methods
260+ 3. NEVER use @app.get(), use Fast_API__Routes methods
2612614. ALWAYS call setup() before adding routes
2622625. ALWAYS implement setup_routes() in route classes
2632636. ALWAYS use add_route_get/post/put/delete, not decorators
0 commit comments