Nms-api: Difference between revisions

From I Will Fear No Evil
Jump to navigation Jump to search
(Created page with "=== NMS API notes === Current API is based on Slim4 with PHP7.4. Overall I am satisfied with this but PHP8.X is going to have to be tested. There are some nice methods defined there that can make life easier going forward. However so far sticking with PHP7 is not a problem. Work todo: * documentation * try to standardize the logic and not deviate from it * keep GET to a minimum to hide details of what is being done. No need for unnecessary info bleeding * at least th...")
 
 
Line 3: Line 3:


Work todo:
Work todo:
* begin shims for authentication validation in middleware
* documentation
* documentation
* try to standardize the logic and not deviate from it
* try to standardize the logic and not deviate from it

Latest revision as of 08:11, 6 June 2023

NMS API notes

Current API is based on Slim4 with PHP7.4. Overall I am satisfied with this but PHP8.X is going to have to be tested. There are some nice methods defined there that can make life easier going forward. However so far sticking with PHP7 is not a problem.

Work todo:

  • begin shims for authentication validation in middleware
  • documentation
  • try to standardize the logic and not deviate from it
  • keep GET to a minimum to hide details of what is being done. No need for unnecessary info bleeding
  • at least think about a debugger for each API that can be called
  • Finish getting all of the API's to use the Validation class
  • Fail fast on calls that can never complete
  • Avoid using optionals when possible
  • once I get assistance will need to begin using API standards
  • clean out routes and consolidate better for functional paths