//
pkg.gl
Category
github.com/sneat-co/sneat-core-modules
generic
api4generic
package
0.15.8
Repository:
https://github.com/sneat-co/sneat-core-modules.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
1
Files
21 SLOC
#
README
Generic API
Handlers are registered in
endpoints.go
.
There is 3 endpoints:
POST /api/$generic/
create
?entity={kind}
PUT /api/$generic/
update
?entity={kind:id}
DELETE /api/$generic/
delete
?entity={kind:id}
#
Functions
RegisterHttpRoutes
RegisterHttpRoutes registers HTTP handlers.