Understanding the service-oriented architecture in Definable
Service
suffix (e.g., AuthService
, KBService
)http_method_resource_name
patternservice.py
files in all subdirectoriesService
suffixhttp_exposed
listpost_signup
in services/v1/auth/service.py
would be exposed at /api/v1/auth/signup
, while the same method in services/v2/auth/service.py
would be exposed at /api/v2/auth/signup
.
The following diagram illustrates how the service directory structure maps to API endpoints:
http_exposed
list:
http_method=resource_name
pattern, which maps to method names of the form http_method_resource_name
(e.g., post_signup
).
Auth Service
Organization Service
KB Service
Conversation Service
Agent Service
Tools Service
method_resource
format