Categorygithub.com/gogean/restql
modulepackage
0.0.0
Repository: https://github.com/gogean/restql.git
Documentation: pkg.go.dev

# README

RestQL

CodeQL Build Go Report Card GoDoc

RestQL is a library that automatically generates REST APIs based on the provided configuration. Think of this library's API as a configuration itself.

# Functions

ExecuteTemplate executes the provided template with the given data and returns the result as a string.
GenerateAPI takes an API object containing properties such as path, method, etc., and an APIService object.
GenerateAPIs takes an array of API objects and an APIService object, and generates handlers for each API using the provided APIService.
readConfig reads the YAML configuration file.
No description provided by the author
LoadTemplateFromFile reads a file and returns a parsed template based on the file content.

# Structs

API defines the structure for an API object.
APIConfig represents the structure of the YAML configuration file.
No description provided by the author

# Interfaces

APIService defines the interface for a service that can handle API requests.