Enhance API structure and documentation: Added new tags for Account, Integration, Automation, Linker, Optimizer, and Publisher; updated billing endpoints for admin and customer; improved API reference documentation; fixed endpoint paths in frontend services.
This commit is contained in:
@@ -109,6 +109,7 @@ const endpointGroups: EndpointGroup[] = [
|
||||
{ path: "/v1/system/settings/account/", method: "GET", description: "Account settings" },
|
||||
{ path: "/v1/billing/credits/balance/", method: "GET", description: "Credit balance" },
|
||||
{ path: "/v1/billing/credits/usage/", method: "GET", description: "Usage logs" },
|
||||
{ path: "/v1/billing/credits/transactions/", method: "GET", description: "Transactions" },
|
||||
{ path: "/v1/billing/credits/usage/summary/", method: "GET", description: "Usage summary" },
|
||||
{
|
||||
path: "/v1/billing/credits/usage/limits/",
|
||||
@@ -126,6 +127,36 @@ const endpointGroups: EndpointGroup[] = [
|
||||
{ path: "/v1/billing/credits/transactions/", method: "GET", description: "Transactions" },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Billing (Customer)",
|
||||
endpoints: [
|
||||
{ path: "/v1/billing/credit-packages/", method: "GET", description: "List credit packages" },
|
||||
{ path: "/v1/billing/invoices/", method: "GET", description: "List invoices" },
|
||||
{ path: "/v1/billing/payments/", method: "GET", description: "List payments" },
|
||||
{ path: "/v1/billing/payment-methods/", method: "GET", description: "List payment methods" },
|
||||
{ path: "/v1/billing/payment-methods/available/", method: "GET", description: "Available payment methods" },
|
||||
{ path: "/v1/billing/payments/manual/", method: "POST", description: "Submit manual payment" },
|
||||
{ path: "/v1/billing/payments/available_methods/", method: "GET", description: "Payment methods (available_methods)" },
|
||||
{ path: "/v1/billing/payment-methods/1/set_default/", method: "POST", description: "Set default payment method (sample id)" },
|
||||
{ path: "/v1/billing/payment-methods/1/", method: "PATCH", description: "Update payment method (sample id)" },
|
||||
{ path: "/v1/billing/payment-methods/1/", method: "DELETE", description: "Delete payment method (sample id)" },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Admin Billing",
|
||||
endpoints: [
|
||||
{ path: "/v1/admin/billing/stats/", method: "GET", description: "Admin billing stats" },
|
||||
{ path: "/v1/admin/billing/invoices/", method: "GET", description: "Admin invoices" },
|
||||
{ path: "/v1/admin/billing/payments/", method: "GET", description: "Admin payments" },
|
||||
{ path: "/v1/admin/billing/pending_payments/", method: "GET", description: "Pending manual payments" },
|
||||
{ path: "/v1/admin/billing/1/approve_payment/", method: "POST", description: "Approve manual payment (sample id)" },
|
||||
{ path: "/v1/admin/billing/1/reject_payment/", method: "POST", description: "Reject manual payment (sample id)" },
|
||||
{ path: "/v1/admin/credit-costs/", method: "GET", description: "Credit cost configs" },
|
||||
{ path: "/v1/admin/credit-costs/", method: "POST", description: "Update credit cost configs" },
|
||||
{ path: "/v1/admin/users/", method: "GET", description: "Admin users with credits" },
|
||||
{ path: "/v1/admin/users/1/adjust-credits/", method: "POST", description: "Adjust credits (sample id)" },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "CRUD Operations - Planner",
|
||||
endpoints: [
|
||||
|
||||
Reference in New Issue
Block a user