This commit is contained in:
Oussama Douhou
2025-10-29 12:04:35 +01:00
parent 7ec667258a
commit ac77aa136b
5 changed files with 116 additions and 43 deletions

View File

@@ -288,17 +288,29 @@ class Playground extends CI_Controller
['method' => 'GET', 'path' => '/estimates/search/{keyword}', 'description' => 'Search estimates']
]
],
'contracts' => [
'name' => 'Contracts',
'description' => 'Manage client contracts and agreements',
'endpoints' => [
['method' => 'GET', 'path' => '/contracts', 'description' => 'Get all contracts'],
['method' => 'POST', 'path' => '/contracts', 'description' => 'Create new contract'],
['method' => 'GET', 'path' => '/contracts/{id}', 'description' => 'Get specific contract'],
['method' => 'PUT', 'path' => '/contracts/{id}', 'description' => 'Update contract'],
['method' => 'DELETE', 'path' => '/contracts/{id}', 'description' => 'Delete contract']
]
],
'customers' => [
'name' => 'Customers',
'description' => 'Manage customer data and information',
'endpoints' => [
['method' => 'GET', 'path' => '/customers', 'description' => 'Get all customers'],
['method' => 'POST', 'path' => '/customers', 'description' => 'Create new customer'],
['method' => 'GET', 'path' => '/customers/{id}', 'description' => 'Get specific customer'],
['method' => 'PUT', 'path' => '/customers/{id}', 'description' => 'Update customer'],
['method' => 'DELETE', 'path' => '/customers/{id}', 'description' => 'Delete customer'],
['method' => 'GET', 'path' => '/customers/search/{keyword}', 'description' => 'Search customers']
]
],
'contracts' => [
'name' => 'Contracts',
'description' => 'Manage client contracts and agreements',
'endpoints' => [
['method' => 'GET', 'path' => '/contracts', 'description' => 'Get all contracts'],
['method' => 'POST', 'path' => '/contracts', 'description' => 'Create new contract'],
['method' => 'GET', 'path' => '/contracts/{id}', 'description' => 'Get specific contract'],
['method' => 'PUT', 'path' => '/contracts/{id}', 'description' => 'Update contract'],
['method' => 'DELETE', 'path' => '/contracts/{id}', 'description' => 'Delete contract']
]
],
'credit_notes' => [
'name' => 'Credit Notes',
'description' => 'Manage credit notes and refunds',
@@ -374,17 +386,28 @@ class Playground extends CI_Controller
['method' => 'DELETE', 'path' => '/proposals/{id}', 'description' => 'Delete proposal']
]
],
'subscriptions' => [
'name' => 'Subscriptions',
'description' => 'Manage recurring subscriptions and billing',
'endpoints' => [
['method' => 'GET', 'path' => '/subscriptions', 'description' => 'Get all subscriptions'],
['method' => 'POST', 'path' => '/subscriptions', 'description' => 'Create new subscription'],
['method' => 'GET', 'path' => '/subscriptions/{id}', 'description' => 'Get specific subscription'],
['method' => 'PUT', 'path' => '/subscriptions/{id}', 'description' => 'Update subscription'],
['method' => 'DELETE', 'path' => '/subscriptions/{id}', 'description' => 'Delete subscription']
]
],
'staffs' => [
'name' => 'Staff',
'description' => 'Manage staff members and user accounts',
'endpoints' => [
['method' => 'GET', 'path' => '/staffs', 'description' => 'Get all staff members'],
['method' => 'POST', 'path' => '/staffs', 'description' => 'Create new staff member'],
['method' => 'GET', 'path' => '/staffs/{id}', 'description' => 'Get specific staff member'],
['method' => 'PUT', 'path' => '/staffs/{id}', 'description' => 'Update staff member'],
['method' => 'DELETE', 'path' => '/staffs/{id}', 'description' => 'Delete staff member']
]
],
'subscriptions' => [
'name' => 'Subscriptions',
'description' => 'Manage recurring subscriptions and billing',
'endpoints' => [
['method' => 'GET', 'path' => '/subscriptions', 'description' => 'Get all subscriptions'],
['method' => 'POST', 'path' => '/subscriptions', 'description' => 'Create new subscription'],
['method' => 'GET', 'path' => '/subscriptions/{id}', 'description' => 'Get specific subscription'],
['method' => 'PUT', 'path' => '/subscriptions/{id}', 'description' => 'Update subscription'],
['method' => 'DELETE', 'path' => '/subscriptions/{id}', 'description' => 'Delete subscription']
]
],
'milestones' => [
'name' => 'Milestones',
'description' => 'Manage project milestones and deliverables',