Nms-api

From I Will Fear No Evil
Jump to navigation Jump to search

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