Categorygithub.com/Blacksmithov/go-hundlers-dynamically
modulepackage
0.0.0-20210225085051-f6f24eb72f5e
Repository: https://github.com/blacksmithov/go-hundlers-dynamically.git
Documentation: pkg.go.dev

# README

APIMAN

Description

Creates an API with predefined handlers. Handlers are listed in the endpoints table and always return the request result in JSON. enpoints table:

  • project - project, any name
  • endpoint - project handler, any name
  • query - user query to any other table in this database. At startup, a string is formed from "project" and "endpoint" ("/project/edpoint"), which must be unique. Take this into when adding new lines to enpoints.

how to start

  • Create a database in postgres and a user with access to it. Specify connection details in appconfig.yml
  • Apply migrate.sql to create the required structure and add custom data.
  • go run apiman.go

The output will be three links:

# Packages

No description provided by the author
No description provided by the author