Version: 5.00
Create REST API Backend using B4J project template
- Pakai Server (5.00).b4xtemplate
- EndsMeet.b4xlib
- WebApiUtils.b4xlib
- MiniORMUtils.b4xlib
- sqlite-jdbc-3.7.2.jar (SQLite)
- mysql-connector-java-8.0.30.jar (MySQL)
- Use Server Handlers
- Improved API documentation
- Built-in web front-end with CRUD examples
- Supports JSON and XML formats payload and response
- More cleaner code in Main module
- More control to allowed http methods
- Build-in CORS
- Optional config file
Sub AppStart (Args() As String)
app.Initialize
app.api.VerboseMode = True
app.api.OrderedKeys = True
app.Get("", "IndexWebHandler")
app.Get("/api/products", "ProductsApiHandler")
app.Get("/api/products/*", "ProductsApiHandler")
app.Post("/api/products", "ProductsApiHandler")
app.Put("/api/products/*", "ProductsApiHandler")
app.Delete("/api/products/*", "ProductsApiHandler")
app.UseConfigFile = True
app.Start
StartMessageLoop
End Sub
Support this project