Share My Creation [Project Template] [Web] MinimaList API Server

Version: 2.07
Description: Build REST API Server with MinimaList using B4X project template

Sample project: shao (micro-blogging web app)

1713764406635.png

If you want to connect to an SQL database, see Web API Server 2


Template:
  • MinimaList API Server (2.07).b4xtemplate
Depends on:
Optional:
GitHub:
Features:
  • Similar to Web API Server 2 but use MinimaListUtils instead of MiniORMUtils library.
  • MinimaList is a library for storing key-value or Map into List.
  • Meaning this API server does not connect to any SQL database.
  • Optionally, MinimaList can be persisted using KeyValueStore library.
  • Clients
Code example:
B4X:
Private Sub GetCategory (id As Long)
    ' #Version = v2
    ' #Desc = Read one Category by id
    ' #Elements = [":id"]
 
    Dim M1 As Map = Main.CategoryList.Find(id)
    If M1.Size > 0 Then
        HRM.ResponseCode = 200
    Else
        HRM.ResponseCode = 404
    End If
    HRM.ResponseObject = M1
    ReturnApiResponse
End Sub

Tutorials:
  1. Download File Example
  2. Vue 3 CRUD Example
  3. Using MinimaList Controller
  4. Using MinimaList Controller and Code Snippets
Live:

To seed dummy data in MinimaList API Server, browse to:
http://127.0.0.1:19800/web/?seed=1

This project has been tested many many times. Please report bugs if you found any
Post your question in a new thread.
 

Attachments

  • MinimaList API Server (2.07).b4xtemplate
    441.9 KB · Views: 6
  • WebApiUtils.b4xlib
    9.5 KB · Views: 6
  • MinimaListUtils.b4xlib
    6.2 KB · Views: 6
  • MinimaListController.jar
    944 bytes · Views: 5
  • MinimaListController.xml
    326 bytes · Views: 7
Last edited:

aeric

Expert
Licensed User
Longtime User
Last edited:

aeric

Expert
Licensed User
Longtime User

aeric

Expert
Licensed User
Longtime User
MinimaList API Server
version: 2.07

What's New
  • (new) WebApiUtils v2.07
  • (new) MinimaListUtils v1.03
  • (new) MinimaListController v1.07
  • (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
 
Top