Commit Graph

12 Commits (main)

Author SHA1 Message Date
mckaygerhard 385354abb3 module skins add and submodule skin database to work with api 2024-04-24 17:56:54 -04:00
mckaygerhard bd5afb5078 first structure working api - stil no database neither filesystem data
* separation of "notFound" module into one for api and one for Views
  if there is a wrong url will show `notFoundApi` module results
  otherwise will show the borrow of `notFound`
* provide new module for storage, under `api/v1/store` route,
  it receives 3 arguments, will check nature of variables and
  store if those are valid, the API will store a tree CTE data!
* provide enhanced listing under `api/v1/lists` route, that
  optionally receives one argument, if present will try to
  retrieve it data with filtering, otherwise will retreive all
* documents te layer oif the database used on the example, cos is a CTE
  recursive emulated layer table.
* documents into `DEVEL.md` the separate development from quick deploy
* tune up the `.env` file, only use minimal variables, remove non usefully
* use 0 spaces into the editors for the init config files on `.editorconfig`
* by defaults use sqlite3 databe in config file
* privide minimal test using php code
2024-04-17 22:46:24 -04:00
mckaygerhard 3b2eac3cbc update framework code libs - validator/model loader
* lib - class.validator > fix validator class for required and non required
  in class.validator when many parameters are sent..
  the validator if you used required only validate the last one..
  fix so if this is not required and the first one is required,
  let the validation pass or do not pass any
* lib - class.validator > support for GET and POST autodetection validator
  allows to send and assigation of the array vars validations
  this allows to you to use also PUT for api calls..
  autodetection of the type, if will be GET or POST array
  if no speciall call is given..
* lib - class.model > mkid autoincrement string/key for ODBC/sql ansi DBMS
  Create PICCORO's crazy ID posta is not crazy..
  allows to use autoincremnet no matter if database support it or not
  this permit that you can create a simpel nont dependendant database.
  with this you identify several things, full date, where when inserted
  it sorts itself since it will never give a smaller number
* editor config, set to 0 spaces ini files
* ignore shit of mocosoft vscode
2024-04-17 22:41:58 -04:00
mckaygerhard 502b02ba3d set api routes and notFoundApi page for api, no more routes to add
* if api route is called, use notFoundApi model when not foun
* output on json when api calls
* set api and views for not found and api documentation
* paste html api documentation
2024-04-10 13:11:06 -04:00
mckaygerhard 7395532339 implements a renders oputput cos we will use same oouput many times
* fix http status code not property set in guachi, puff
* index default page will only show welcome
* not found page will show http status code and also link to repot issues
* render output will show and set as must be the http status code
* render output will show a minimal description message
2024-04-10 13:08:12 -04:00
mckaygerhard ee82e6720d index model fix render call function 2024-04-10 12:06:01 -04:00
mckaygerhard 76a08633c1 main home and css style, default main routes, controllers and api
* main api entry template
* main controllers for routers
* use bulma css for eye candy style
* proposed minimal menu html structure into index
* add those routes to modules ini
* dont ignore css files we will not use nodejs
2024-04-09 18:00:08 -04:00
mckaygerhard 33847e2759 minimal documentation for development, api format and reference
* set editor config and geany project configuration
* closes https://codeberg.org/minenux/minenux-skindb-webdb/issues/2
* closes https://codeberg.org/minetest-stuffs/minetest-skindb-skindata/issues/1
2024-04-09 16:11:35 -04:00
mckaygerhard be6445a6ae complete framework upload, make it to work with php5/php7/php8
* provide minimal instruction to start to work, adn minimal README also
* fix guachi libraries to work with php8 also
* fix the script to start a module, move or put missing files into docs as examples
* send real http code, specially on 404 response if controllers are not present or error
* fix index controller and not found logic model
* provide default index and default ini configuration files
2024-04-09 14:03:46 -04:00
mckaygerhard 7ee4a28350 dile upload and 404 response uploaded 2024-04-02 17:46:53 -04:00
mckaygerhard cf430139fd uploaded framework GUACHI and minimal set to work
* closes https://codeberg.org/minenux/minenux-skindb-webdb/issues/3
2024-04-02 17:44:15 -04:00
mckaygerhard cd2f3fd9ce first commit - init repo and docus
* closes https://codeberg.org/minenux/minenux-skindb-webdb/issues/1
* works https://codeberg.org/minenux/minenux-skindb-webdb/issues/2
* api format is inside docs directory with API.md file
2024-04-02 17:39:32 -04:00