Commit Graph

21 Commits

Author SHA1 Message Date
johnnyq c0af8e8eab Add '' to the date vars under API assets if not empty so they dont error out when inserted into the DB 2023-03-04 16:13:38 -05:00
johnnyq e01dea2fd0 Fix Assets API Missing $ on var and use NULL instead of 0000-00-00 when inserting into the DB similar to POST 2023-03-04 15:58:34 -05:00
johnnyq cdfb61b294 Added a helper if no tags exist when attempting to add them to a client, Added some santizeInput tags to API 2023-02-28 11:58:08 -05:00
Marcus Hill 6374524cfb Prevent 'Undefined variable: asset_row' errors when adding/updating assets via API 2023-02-26 21:55:24 +00:00
Marcus Hill 68005723e6 API
- Refactor comments/client id var
- Add basic read endpoint for docs, products, expenses, quotes and invoices
2023-02-12 15:50:45 +00:00
Marcus Hill 85c28f889b Allow setting asset status via API 2023-02-11 14:22:35 +00:00
Marcus Hill f3456ead67 API
- Add PHP logging when API queries fail because of SQL errors
- Add user agent to logging
- Enhance asset update endpoint
2023-02-05 15:07:41 +00:00
Marcus Hill d34c26d176 Tidy 2023-01-21 17:49:10 +00:00
Marcus Hill ff741c223e API code style tidy 2023-01-01 16:00:07 +00:00
Johnny 44f8569b50
Merge pull request #455 from wrongecho/api
Add delete asset API endpoint
2022-05-02 11:30:02 -04:00
Marcus Hill 25c610e963 Rename update_id to update_count - as it's a count, not the insert ID 2022-05-01 10:34:21 +01:00
Marcus Hill 69c1fc6cae Add asset API delete endpoint 2022-05-01 10:30:04 +01:00
Marcus Hill 917377ed17 Remove meshcentral references in api 2022-04-28 21:46:41 +01:00
Marcus Hill 2d6e7dbb37 Add clients/read.php API endpoint.
Adjust asset create/update so that they function without all attributes being provided. Update will default to using the value currently in the database, rather than overwriting blank.
2022-04-18 15:59:09 +01:00
Marcus Hill e55622827d Add support for client-specific API keys
Refactoring API. Added a contact update endpoint.
Small misc changes.
2022-04-15 17:43:06 +01:00
Marcus Hill 17f97ff7bc Deduplicate API GET check into single file 2022-04-14 20:05:15 +01:00
Marcus Hill 09b4eab1c3 Correct insert ID for create endpoint. Add contact create API endpoint 2022-03-26 13:39:43 +00:00
Marcus Hill 4b077cf6e0 Add create asset functionality to API 2022-02-27 16:09:21 +00:00
Marcus Hill b9bbc75ce3 Add/update READ endpoints for assets, certs, domains, networks & software 2022-02-05 14:20:20 +00:00
Marcus Hill d4ea0c984d id > asset_id 2022-02-05 13:34:33 +00:00
Marcus Hill 6e4025dc58 Initial new api 2022-02-02 22:16:08 +00:00