Skip to content

pyhoon/minimalist-api-b4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinimaList API Server

Version: 3.00

Build REST API Server with MinimaList using B4X project template


Depends on following libraries:

Features

  • Similar to Pakai Server but use MinimaListUtils instead of MiniORMUtils library.
  • MinimaList is a library for storing key-value pairs or Map into List.
  • This API server can run without an SQL database.
  • Optionally, MinimaList can be persisted using KeyValueStore library.
  • Clients
    • Build-in front-end client (web)
    • Compatible with Web API Client (1.05).b4xtemplate (B4X UI apps)

Code Example

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

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

Support this project