go-rest

module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: Apache-2.0

README

GO REST - REST API Framework in Go

Go version

Go REST is a REST API Framework written in Golang to help build Exactly Labs' solutions

Usage

To use in your project, you need to add this module by calling:

go get github.com/exactlylabs.com/go-rest

Then, inside your application, import it:


import "github.com/exactlylabs.com/go-rest"

Examples

We currently don't have any documentation, but there's an examples directory that can help you understand how to use it.

The examples follow a numeric order, that increases the complexity as you go on

Directories

Path Synopsis
examples
02_say_hi
This example shows how to grab the Query Parameters, parse a JSON from the Body and also how to add field validation errors
This example shows how to grab the Query Parameters, parse a JSON from the Body and also how to add field validation errors
03_dependencies
This example shows the usage of Dependencies
This example shows the usage of Dependencies
04_paginator
This example shows the usage of a Paginator interface
This example shows the usage of a Paginator interface
05_cors_middleware
This example shows you how to add CORS to your server, as well as any other middleware
This example shows you how to add CORS to your server, as well as any other middleware
06_sentry_middleware
This example shows you how to configure Sentry in your server
This example shows you how to configure Sentry in your server
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL