Share My Creation [Project Template] [Web] MinimaList API Server v3.00

MinimaList API Server​

Version: 3.00

GitHub: https://github.com/pyhoon/minimalist-api-b4j

Sample product: shao (micro-blogging web app)

1713764406635.png

If you want to connect to an SQL database, see [Project Template] Pakai Server v5


Template:
  • MinimaList API Server (3.00).b4xtemplate
Depends on:
Use [Tool] Additional Libraries Downloader to download the required libraries.

Features:
  • Similar to Pakai Server but use MinimaListUtils instead of MiniORMUtils library.
  • MinimaList is a library for storing key-value pairs or Maps into a 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)
    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.08).b4xtemplate
    442.2 KB · Views: 243
  • MinimaList API Server (2.40).b4xtemplate
    428.7 KB · Views: 3
  • MinimaList API Server (3.00).b4xtemplate
    430.2 KB · Views: 3
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
 

aeric

Expert
Licensed User
Longtime User
MinimaList API Server
version: 2.08

What's New
  • (depends on) WebApiUtils v2.08
  • (depends on) MinimaListUtils v1.04
 

aeric

Expert
Licensed User
Longtime User
MinimaList API Server
version: 3.00 beta1
  • Based on Pakai Server v5.30
Depends on:
  • MinimaListUtils.b4xlib v2.00
  • WebApiUtils.b4xlib v5.30
  • KeyValueStore v2.31
  • EndsMeet v1.30
Seed data: http://127.0.0.1:8080/?seed=1
 

Attachments

  • MinimaList API Server (3.00beta1).b4xtemplate
    430.1 KB · Views: 10
Last edited:

aeric

Expert
Licensed User
Longtime User
MinimaList API Server
version: 2.40

What's New
  • Based on Pakai Server v4.00
Depends on:
  • MinimaListUtils (1.80).b4xlib
  • WebApiUtils (4.50).b4xlib
  • KeyValueStore v2.31
  • jServer v4.02
Note: this version doesn't have the url for seeding data.
 

aeric

Expert
Licensed User
Longtime User
MinimaList API Server
version: 3.00
  • Based on Pakai Server v5.40
Depends on:
  • MinimaListUtils.b4xlib v2.00
  • WebApiUtils.b4xlib v5.40
  • KeyValueStore v2.31
  • EndsMeet v1.40
 
Top