gorestapp

command module
v0.0.0-...-dde1ccd Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: CC0-1.0 Imports: 10 Imported by: 0

README

#This repository is archived and will no longer receive updates.

GoRestApp

A golang REST API application, based on https://hackernoon.com/build-restful-api-in-go-and-mongodb-5e7f2ec4be94 by Mohamed Labouardy.

This is part of my #100DaysOfCode to learn golang!

The App

Rather than movies, in this app I'm CAT-aloguing kittens, in the grand tradition of the old Internet.

API Endpoints

I will eventually make this into a webapp for browser consumption, as well, so I am going to deviate from Mr. Labouardy's spec by making my API accessbile at /api/v1/gatos.

GET     /api/v1/gatos       list the cats
GET     /api/v1/gatos/:id   get a particular cat
POST    /api/v1/gatos       add a cat
PUT     /api/v1/gatos/:id   add or replace a cat  (Replace?  no...)
PATCH   /api/v1/gatos/:id   update a cat
DELETE  /api/v1/gatos       delete a cat (NEVER!)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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