Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enesinan/go-rest

This repository contains rest api implementation with golang
https://github.com/enesinan/go-rest

api api-rest go golang golang-application golang-cli golang-examples golang-library golang-module golang-package golang-server golang-tools gorilla-mux mux

Last synced: 2 days ago
JSON representation

This repository contains rest api implementation with golang

Awesome Lists containing this project

README

        

# 🟡 go-rest
![1](https://img.shields.io/github/license/enesinan/go-rest) ![2](https://img.shields.io/github/last-commit/enesinan/go-rest) ![3](https://img.shields.io/github/languages/code-size/enesinan/go-rest) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/) ![4](https://img.shields.io/github/watchers/enesinan/go-rest?style=social)

This repository contains rest api implementation with golang

# ⚡ LIVE

* To check out the live demo of this app

# ABOUT

👉 Building a Rest API 💻

👉 Deploying a Golang app with Heroku 🌐

👉 Crud endpoints with gorilla/mux router for the build application 🔥

# EXAMPLE

![log](https://user-images.githubusercontent.com/72499839/142442059-1961eeb8-83a8-4893-8dee-f9f7a88d3c8a.png)

![get](https://user-images.githubusercontent.com/72499839/142442203-d7633f98-0960-4432-b08e-665af73849f0.png)

![post](https://user-images.githubusercontent.com/72499839/142442343-7cbbbcad-87d8-4204-96e0-d19d138f1ddd.png)

![put](https://user-images.githubusercontent.com/72499839/142442436-f2245d6d-9557-4e00-84f6-d431b3851f30.png)

![delete](https://user-images.githubusercontent.com/72499839/142442665-0fc886fa-516d-439f-b38e-59926d2b6979.png)

# INSTALLATION

Via Bash

``` bash
$ go run main.go
```

# USAGE

GET
``` bash
$ curl [URL]

```

POST
``` bash
$ curl -X POST [options] [URL]

```

UPDATE

``` bash
$ curl -X PUT [options] [URL]

```
DELETE

``` bash
$ curl -X DELETE [options] [URL]

```

# CONTRIBUTION

Feel free to contribute by adding new templates to this project.

# SECURITY

If you discover any security related issues, please email to us instead of using the issue tracker.

# LICENSE

MIT License

Copyright (c) 2021 enesinan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.