package
2.1.0+incompatible
Repository: https://github.com/syb-devs/goth.git
Documentation: pkg.go.dev

# README

Goth REST API example

This is an example app using Goth for a RESTful API.

Example using cURL for creating, retrieving, updating and deleting a resource:

curl -H "Content-Type: application/json" -X POST -d '{"username": "[email protected]","password": "123456"}' http://localhost:3000/users/register

curl -H "Content-Type: application/json" -X POST -d '{"username": "[email protected]","password": "123456"}' http://localhost:3000/users/sessions

curl -H "Content-Type: application/json" -X PUT -d '{"firstName": "John", lastName: "Doe"}' http://localhost:3000/users/568f8cf6e5c7a6026ae87670

curl http://localhost:3000/users/568f8cf6e5c7a6026ae87670

curl -X DELETE http://localhost:3000/users/568f8cf6e5c7a6026ae87670

# Structs

No description provided by the author
No description provided by the author
No description provided by the author