Releases: pyhoon/pakai-server-b4j
Releases · pyhoon/pakai-server-b4j
Pakai v4.00
Features:
- Use Server Handlers
- Improved API documentation
- Built-in web front-end with CRUD examples
- Supports JSON and XML formats payload and response
Web API Server v3.50
What's New
- Compatible with Web API Client (2.00).b4xtemplate
Web API Server v3.42
What's New
- Fix column names in html and js
- Uncomment journal mode WAL for SQLite
Web API Server v3.40
Whats's New
- change code for initializing MiniORM object (support for new version of MiniORM)
- update InitDatabase sub
- rename DBEngine sub to DBType
- fix support for custom api name in Utility module
- clean unused code
- remove unused items for SQLite in config.example
Web API Server v3.30
Add files via upload
Web API Server v3.20
What's New:
- Changed in UI and Theme
- Moved CSS and JS in main.html to separate files (main.css and main.js)
- Colour changed using custom CSS in main.css instead of Bootstrap variables
- Replace label for collapsible button with endpoint description instead of showing the url link
- Same for authentication indicator is put next to the description - showing Basic or Token when applicable
- New BuildMethods sub is used to build API documentation programmatically
- Now works when building project straight in Release mode
- ReadHandlers sub is no longer required
- However, BuildMethods sub can be use together with ReadHandlers sub to override its generated properties
- All commented hashtags are now removed for a cleaner template
- Note that commented hashtags are still working in Debug mode and can be used to generate static help.html for production in old ways
- New commented hashtag (e.g ' #POST) *Note: all commented hashtags are case insensitive
- Allow to use any name for naming Method sub in API handlers
- Not necessary to start the Method name with a Verb e.g CreateNewCategory instead of PostCategory
- The hashtag must be put on the same line with sub definition
- Support for multi-line json body format (for POST and PUT endpoints)
- (old way) HTML syntax in one line (i.e using <br> and tags)
- (new) String Literals
- (new) JSON Map *must be valid
- New Utility module to generate JS files
- Works during Debug or Release mode
- It is executed by calling CreateJSFiles sub when InitServer is executed
- The files are generated based on SimpleResponse settings
- New Configurable sub for additional configuration
- This helps to simplify a bit on configs in Main module
- Developer only need to focus on 3 subs (in Main module) in most use cases
- AppStart
- Configurable
- CreateDatabase
Web API Server v3.10
What's New:
- Fix error in Main module (line #129) when selecting MySQL
- New ServerUrl in ServerConfigurations type
- ConfigurePort sub replaces ConfigureSSL
- Remove ApplySettings sub
- Updated HelpHandler
- New VerbSection type to simplify some methods signature
- GenerateVerbSection now accepting a single Verbsection type
- GenerateDocItem now accept a single Map
- GenerateLink sub updated using ServerUrl
- GenerateNoApiLink sub added for adding non api handler to documentation
- ReadHandlers sub updated
- JavaScript updated
- fade-out and fade-in animation on bootstrap alert when submitting the endpoint again
- html elements using id instead of button id
- Some code for basic and token authentication support
- Standardize coding format (removed ending semicolons and replaced single quote with double quotes)
- help.html loads server url based on config.ini during production
Web API Server v3.00
What's New
Version: 3.00
- (new) depends on WebApiUtils v3.02
- (new) depends on MiniORMUtils v1.14
- (fix) issue with SSL settings in Release
- (fix) issue in FindApiHandler to check missing keywords key in request body
- (update) new Code Snippets to WebApiUtils for creating new Web and Api handlers
- (update) rename JavaScripts files name and move from js to scripts folder inside www/assetst inside B4J additional libraries folder.
Web API Server v2.08
What's New
Version: 2.08
- (new) WebApiUtils v2.08
- (new) MiniORMUtils v1.13
- (new) WebAPIController v1.07
- (change) Use DbFile instead of DbName for SQLite in config.ini
- (change) Move code from ConfigureDatabase sub to Initialize sub in DatabaseConfiguration class
- (remove) Code for Firebird, PostgreSQL and MS SQL
Rename to "Web API Server (2.08).b4xtemplate" and put inside B4J additional libraries folder.
Web API Server v2.07
What's New
Version: 2.07
- (new) WebApiUtils v2.07
- (new) MiniORMUtils v1.11
- (new) WebAPIController v1.06
- (new) Main module
- SHOW_API_ICON to control API icon visible on frontend top navbar
- (new) ServerConfiguration class
- setEnableHelp to disable API Documentation and icon in frontend top navbar
- setSimpleResponse replaces 3 old variables
- (change) ServerConfiguration class
- rename some variables
- change some Public subs to Private
- (change) Some index.html files deleted