This project is a proof of concept to understand the Go (Golang) ecosystem.
GET /users/:id
Return a user from a given ID.
{
"Resource": {
"ID": 1233,
"FirstName": "John",
"LastName": "Smith",
"Email": "[email protected]",
"RoleID": 1,
"CreatedAt": "2020-10-11T17:57:50Z",
"UpdatedAt": "2020-10-11T17:57:50Z",
"Role": {
"ID": 1,
"Name": "User"
}
}
}
If a user is not found the following response is returned:
{
"Errors": {
"NotFound": [
"User not found."
]
},
"Message": "There was a problem processing your request"
}
Send an email based on environment variable. The email is placed on a queue to be send by a worker.
{
"Success": true
}
This module uses the following Go packages: