Commit 115dacc
committed
- Converted error codes and messages to a PHP array found apiresp.inc. This allows functions to pull the error message from a centralized location using it's unique error code
- Add function and API call to read the error code library as JSON. This allows third-party scripts/software to directly integrate with the APIs error reporting.
- Changed API configuration location from /pfsense/config/installedpackages/package/id to /pfsense/config/installedpackages/package/id/conf for better readability
- Added API call to read API configuration
- Update pkg-plist and Makefile1 parent a315916 commit 115dacc
14 files changed
Lines changed: 1593 additions & 988 deletions
File tree
- pfSense-pkg-API
- files
- etc/inc
- usr/local
- pkg
- www/api
- v1
- firewall/states
- size
- modify
- system/api
- errors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
190 | 212 | | |
191 | 213 | | |
192 | 214 | | |
| |||
0 commit comments