added .htacces for clean urls
initial testing
Prelim planning - trying to flesh out how we will approach this
Droppped in a small, low level Database class created for an older project
Creating skeleton of the Entity parent class, which the Entities will inherit from (User,Comment, Topic, etc)
* Finished generic add() method,
* Created RESTUtil class for utility methods, also added a few methods,
* Created some tests to test out the new Classes & Methods
* Entity Class: add() no longer takes an input param - more trouble than its worth, call to JSONToArray() replaced with call to JSONtoPHPObj(),
* RESTUtil Class: JSONToArray() replaced with JSONtoPHPObj(), JSONtoPHPObj() made to handle different input methods, new func getRequestData(), new func process()
* Entity Class: We now test if the correct JSON object name was sent, We now accept better formed JSON Objects if sent via raw text, added a stub for authenticate()
* RESTUtil Class: Raw input return now returns a proper PHP Obj, getRequestData() now returns a str containing JSON data if raw input was sent, process() rules tightened up and a case was created for authentication
* Entity Class: authenticate() now up and running - tests username and password to thos in db, view() created and can return JSON data for the item specified via URL
* RESTUtil Class: getURIExtension() fixed up, new method getDataType() created, getURIItem() fixed up, process() updated to better cater for authentication, process() rules case added for view(), new arrayToJSONString() method created.
* Entity Class: Created new methods delete() and update(),
RESTUtil Class: getRequestData() now works correctly, updated process() to handle DELETE and PUT cases