Ollama
e45af91e2e
feat: Add REST API implementation with API key authentication
...
Implement comprehensive REST API for OSPOS with the following:
Database:
- Migration for ospos_api_keys table
- Seeder for module permissions
Models:
- ApiKey model with key generation, validation, revocation
- SHA-256 hashing for secure key storage
- Support for key expiration
Filters:
- ApiAuth filter for X-API-Key header authentication
- CSRF exemption for API routes
Controllers:
- Api/BaseController with response helpers and field transformation
- Api/Customers (CRUD + batch delete, suggestions)
- Api/Suppliers (CRUD + batch delete, suggestions)
- Api/Items (CRUD + batch delete, quantities endpoint)
- Api/Inventory (adjustments with set/adjust modes, bulk support)
- ApiKeys (UI controller for key management)
Routes:
- /api/v1/* endpoints with apiauth filter
- /office/api-keys/* endpoints for key management UI
Tests:
- ApiKeyTest for model functionality
- ApiAuthTest for authentication filter
Features:
- camelCase JSON field names (API standard)
- Offset/limit pagination
- Soft delete support
- Permission-based authorization
- Key prefix for UI identification
- Last used timestamp tracking
Refs: #2463 , #615 , #3789 , #3809 , #1680 , #876 , #1959 , #157
2026-03-06 14:35:27 +00:00
jekkos
07e09e1948
Fix register functionality
...
Fix controller method names
2024-06-15 17:19:15 +02:00
jekkos
8d59cd9d83
Fix no_access route ( #3984 )
2024-06-15 17:19:15 +02:00
WShells
a105308ad4
Fix for Edit Sales Receipt Details
...
Modal not displaying
2024-06-15 17:19:15 +02:00
WShells
95a1d0b4f1
Fix for Receivings Receipt display
...
Receivings receipt returning the following errors:
. Param count in the URI are greater than the controller method
. ($supplier_id) must be of type int
2024-06-15 17:19:15 +02:00
WShells
32c05b475d
Fix for Receivings Edit form
...
Receiving form wasn't popping up for update.
2024-06-15 17:19:15 +02:00
WShells
e779ac8a79
Fix for Low Inventory Report
...
. Param count in the URI are greater than the controller method params.
Now displaying and listing items as needed
2024-06-15 17:19:15 +02:00
objecttothis
6b44aea1c5
Fixing routes
...
Signed-off-by: objecttothis <objecttothis@gmail.com >
2024-06-15 17:19:15 +02:00
WShells
ffa92dd37c
Fix for Receipt & Invoice Reprint / Display through Daily Sales
...
The param count in the URI are greater than the controller method params. Handler:\App\Controllers\Sales::getIndex
2024-06-15 17:19:15 +02:00
WShells
e07cfd4143
Fix for Shortcuts
...
Keyboard Shortcuts Help modl returning 404 / not displaying
2024-06-15 17:19:15 +02:00
WShells
75f435787c
Fix for Update Inventory
...
Update inventory form ( Adding/Subtracting Qty )
2024-06-15 17:19:15 +02:00
objecttothis
9d083f2fe7
Fixing routes
...
Signed-off-by: objecttothis <objecttothis@gmail.com >
2024-06-15 17:19:15 +02:00
objecttothis
b07051e448
Fixing routes
...
Signed-off-by: objecttothis <objecttothis@gmail.com >
2024-06-15 17:19:15 +02:00
objecttothis
57755a338d
Routes change
...
Signed-off-by: objecttothis <objecttothis@gmail.com >
2024-06-15 17:19:15 +02:00
objecttothis
85de6adadb
Upgrade CI to 4.4.3
...
- Bump composer.json/lock to codeigniter 4.4.3
- Fix base_url() call without arguments
- Updated files in the project space
- Bump composer.json/lock to kint 5.0.4
- Update composer.json to include missing CI elements
- Corrected composer.json regarding minimum versions
- Updated README.md to reflect CI4 implementation
- Migrated some Routes.php to Routing.php
- Removed deprecated settings from Config/App.php
2024-06-15 17:19:15 +02:00
objecttothis
1dd58e922f
Corrected link in README.md
2024-06-15 17:19:15 +02:00
objecttothis
f84b795ee6
Upgrade to CodeIgniter 4.1.3
2024-06-15 17:19:15 +02:00