Simple Go BE to serve blog posts
To run this project, you will need to add the following environment variables to your .env file
PSQL_HOSTNAME
PSQL_USERNAME
PSQL_PASSWORD
GET /posts
GET /posts/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to fetch |
PATCH /posts/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to update |
DELETE /posts/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to delete |