Version: 2.08
Build REST API Server with MinimaList using B4X project template
Depends on following libraries:
To connect to SQL database, please check https://github.com/pyhoon/webapi-2-b4j
- 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.
- 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)
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
To seed dummy data in MinimaList API Server, browse to: http://127.0.0.1:19800/web/?seed=1
Support this project