Skip to content

Files

Latest commit

 

History

History
53 lines (35 loc) · 1.04 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.04 KB

Blog API

Simple Go BE to serve blog posts

Authors

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PSQL_HOSTNAME PSQL_USERNAME PSQL_PASSWORD

API Reference

Get all items

  GET /posts

Get a post by id

  GET /posts/:id
Parameter Type Description
id string Required. Id of post to fetch

Update a post by id

  PATCH /posts/:id
Parameter Type Description
id string Required. Id of post to update

Delete a post by id

  DELETE  /posts/:id
Parameter Type Description
id string Required. Id of post to delete