Estapir.jl

Julia REST API framework
Author lucianolorenti
Popularity
0 Stars
Updated Last
11 Months Ago
Started In
April 2020

Estapir

API Rest for Bukdu and StructDabaseMapping

using Bukdu
using Estapir
using StructDatabaseMapping
using SQLite

struct Author <: Model
    id::DBId{Integer}
    name::String
end
mapper = DBMapper(()->SQLite.DB("test.db"))
register!(mapper, Author)
create_table(mapper, Author)
Estapir.model_routes(Book, :books, mapper)
Bukdu.start(8080)

Used By Packages

No packages found.