modulepackage
0.0.0-20250110120346-9c1f91f542f6
Repository: https://github.com/getevo/restify.git
Documentation: pkg.go.dev
# README
Restify
Restify is an application built for the EVO Framework that allows you to generate RESTful APIs on the fly without the need to write any code. These APIs can be used for various purposes, including data management, data entry processes, dashboards, or communication with third-party applications.
Features
- No Code Required: Automatically generate RESTful APIs without writing a single line of code.
- Data Management: Use the generated APIs for managing data in your applications.
- Data Entry: Facilitate data entry processes through RESTful endpoints.
- Dashboard Integration: Seamlessly integrate with dashboards for real-time data management.
- Third-Party Communication: Use the APIs to interact with external services or applications.
Table of contents
Getting Started
Prerequisites
Before you begin, ensure you have the following installed:
- EVO Framework: Installation Guide
- Golang (version 1.22 or higher)
Usage
-
Import Restify into your EVO application:
import ( "github.com/getevo/evo/v2" "github.com/getevo/restify" ) func main() { evo.Setup() evo.Register(restify.App{}) evo.Run() }
-
Add Restify support to your model:
type User struct { UserID int `gorm:"primaryKey;autoIncrement"` UserName string `gorm:"column:username;index;size:255"` Name string `gorm:"column:name;size:255"` restify.API // this signature enables Restify }
-
Register your model with Restify:
func (App) Register() { db.UseModel(User{}) }
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContainOperator represents the string value "contains" which is used as an operator for containment operations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrorColumnNotExist represents an error indicating that a column does not exist.
No description provided by the author
ErrorObjectNotExist represents an error indicating that the object does not exist.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
API is a flag to enable restful API endpoints.
No description provided by the author
No description provided by the author
Context represents the context of an HTTP request.
Controller represents a controller type.
DisableAggregate is a flag to disable aggregation endpoints.
DisableCreate is a flag to disable the creation of new objects.
DisableDelete is a flag to disable the deletion of existing objects.
DisableList is a flag to disable listing objects.
DisableSet is a flag to disable set endpoint.
DisableUpdate is a flag to disable update of existing objects.
No description provided by the author
No description provided by the author
Feature struct represents a set of features that can be enabled or disabled.
Field represents a field in a data structure.
Filter represents a filter for data retrieval.
No description provided by the author
Info represents a structured information object.
KeyValue represents a key-value pair with a generic value type.
Pagination represents a utility type for handling pagination in Go.
Resource represents a resource in an API.
No description provided by the author
# Type aliases
No description provided by the author
Dictionary represents a collection of key-value pairs with a generic value type.
No description provided by the author
No description provided by the author
No description provided by the author