Commit Graph

106 Commits

Author SHA1 Message Date
johnnyq a79ce23ae5 Fix randomString() to generate cryptographically secure URL-safe tokens, reduced url keys to 32 Characters for performance and easy copy and paste and compatibility while still mainitaining ubreakable cryptographic keys 2025-12-18 14:24:53 -05:00
johnnyq 99e2487d2b Fix dupe race condition with ticket, invoice, quote, project, recurring ticket numbering when being created in parallel Atomically update and get the next ticket number in one SQL query everywhere. 2025-11-28 14:14:46 -05:00
johnnyq 1a9a36829b Process base64 Images for document creation and editing for the API and Client Portal 2025-11-24 00:14:27 -05:00
johnnyq 9f19fd3c75 Fix Folder in Document API End point 2025-11-08 13:10:35 -05:00
wrongecho 283c2a17df sanitize after substr 2025-11-06 16:44:34 +00:00
wrongecho 650a099e19 Contacts API - Prevent more than 1 primary contact being set per client 2025-11-06 16:00:21 +00:00
wrongecho 46c2c8616e Clients API - Add - abbreviation support 2025-11-06 15:35:43 +00:00
wrongecho 6295a5c878 Clients API - Update endpoint 2025-11-06 15:34:19 +00:00
wrongecho 39d8e19e16 Clients API - Archiving & Un-archiving 2025-11-06 15:21:45 +00:00
wrongecho 9d3a44d110 Contacts API - Archiving & Un-archiving 2025-11-06 15:10:25 +00:00
wrongecho 54d46719c2 Certificates API - Create endpoint 2025-11-06 14:46:08 +00:00
wrongecho 2f28f96f8d Log the API endpoint/URL path for API auth failures to assist with debugging 2025-11-06 14:43:32 +00:00
johnnyq 35a7506c26 Copy crons from /scripts to /cron, added custom directories for api/v1/, /setup, /cron and /scripts 2025-10-07 13:55:54 -04:00
wrongecho e7dcc6df3c Tickets API - Add ability to resolve ticket in post request with only a ticket ID and client ID via resolve.php endpoint 2025-09-23 09:28:27 +01:00
johnnyq 9caa42975d rename get_settings.php to load_global_settings.php and update all requires 2025-08-06 17:48:23 -04:00
wrongecho 7c558ff842 Add location create endpoint 2025-07-07 13:47:17 +01:00
wrongecho 873dc1f76d Fix contact location if not provided in api call 2025-07-01 11:50:20 +01:00
wrongecho effbf241e6 Fix default rate and net terms if not provided in api call 2025-07-01 10:51:56 +01:00
johnnyq 0ca28dc630 Fix Document API to not insert a new document upon update as we changed the way documents and document versions are handled 2025-06-26 17:30:34 -04:00
johnnyq 8196706538 Ticket API: Allow HTML into ticket Content and allow inserting asset_id 2025-06-26 17:13:27 -04:00
johnnyq e7e7272002 Migrated Vendor Templates to its own table, lots of code modifications here 2025-06-17 22:44:54 -04:00
wrongecho e1f212d30d Start recording ticket source (API, Email, Portal, Agent) 2025-04-28 14:51:38 +01:00
wrongecho eadfdc41c4 Tickets api - allow setting the billable status when creating a ticket 2025-03-27 14:45:44 +00:00
wrongecho 421abd4c5b Tickets api - bugfix 500 error 2025-03-27 14:34:36 +00:00
johnnyq f1783a6110 update credential model 2025-03-12 22:35:13 -04:00
johnnyq c8c1155c9c Update the API for the new cred var names 2025-03-12 22:33:06 -04:00
johnnyq fe762ef926 Asset Interfaces: Renamed Port to Description, added Interface Type 2025-02-12 17:13:39 -05:00
wrongecho 3eda726b2b API - New tickets
- Allow creating tickets for no client / no contact
- Set URL view key
- Fix line break after ticket details that causes odd email formatting
2024-12-14 17:06:03 +00:00
wrongecho e417badf92 API - New ticket bugfix
Ticket status should be 1, not 'New'
2024-12-14 13:55:39 +00:00
johnnyq e9f023f0c7 Updated all API functions to use the new logAction Function 2024-11-14 18:27:31 -05:00
johnnyq bfffec7363 Temp added vars session_ip and session_user_agent to validate_api_key so IP and User agent is logged with the new logAction function 2024-11-14 17:55:35 -05:00
johnnyq ba5e2b216b Updated asset API to use new logAction function 2024-11-14 17:42:01 -05:00
johnnyq 1df98166bd Fix issue with Contacts API - Removed contact_auth from Contacts call to the API 2024-10-30 19:35:26 -04:00
wrongecho c65db3431d Tidying 2024-09-14 23:43:54 +01:00
wrongecho f3e9c9c867 API Tidy
- Remove old client ID queries, these are now built into the API keys. If a key has access to all clients, a client ID can be provided in the query.
- Small fixes to assets URI lookup
- Add read endpoint for vendors
2024-09-11 18:06:45 +01:00
wrongecho ec0e1c395c Tweak credentials read api 2024-08-25 20:29:14 +01:00
wrongecho 24ff6f5c84 WIP: Allow decrypting logins/credentials via the API 2024-08-25 12:45:18 +01:00
wrongecho 9ef3099495 WIP: Allow decrypting logins/credentials via the API 2024-08-25 12:32:21 +01:00
wrongecho d37bdcdbcb WIP: Allow decrypting logins/credentials via the API 2024-08-25 12:31:15 +01:00
wrongecho a6113dc371 WIP: Allow decrypting logins/credentials via the API 2024-08-22 18:22:20 +01:00
wrongecho 0c60ecc329 WIP: Allow decrypting logins/credentials via the API 2024-08-22 17:46:58 +01:00
wrongecho 63feff03d2 Initial WIP: Allow decrypting logins/credentials via the API 2024-08-19 21:23:43 +01:00
johnnyq b37cfdf677 Fix API Asset interface relationship 2024-06-12 18:06:04 -04:00
johnnyq 836e1a3199 Updated Asset API to include its assets 2024-06-11 23:00:57 -04:00
johnnyq 3e7f57f64a Add contact primary to the API edit ^Cd create 2024-05-10 14:27:04 -04:00
Marcus Hill 54e015b5a5 Add locations read api endpoint 2024-02-24 11:56:18 +00:00
Marcus Hill 102481d09f API - Add client create endpoint 2024-02-04 14:51:58 +00:00
Marcus Hill f45a5e0b51 Contacts API
Allow looking up contacts via mobile / phone number
2023-12-24 20:05:04 +00:00
Marcus Hill 573eaf179b API - Documents
- Add create and update methods
2023-11-05 10:42:46 +00:00
o-psi 53c11edc8c Update constructs to not have parenthesis. 2023-10-20 15:25:52 -05:00