Version: 3.00
Create Web API Server using B4X project template
If you don't want to connect to any SQL database, see MinimaList API Server
For older version webapi-b4j, please check https://github.com/pyhoon/webapi-b4j
- Web API Server (3.00).b4xtemplate
- Code simplified
- Back to basics - use multiple Server Handlers
- Improved API documentation
- Built-in web front-end (bootstrap 4)
Private Sub GetCategoryById (Id As Int)
' #Desc = Read one Category by id
' #Elements = [":id"]
DB.Table = "tbl_categories"
DB.Find(Id)
If DB.Found Then
HRM.ResponseCode = 200
HRM.ResponseObject = DB.First
Else
HRM.ResponseCode = 404
HRM.ResponseError = "Category not found"
End If
ReturnApiResponse
DB.Close
End Sub
Support this project