Skip to content

dembygenesis/blog_exam

Repository files navigation

Setup

Type in "sh start.sh" - boots up your Go and MYSQL environment

*localhost:8080/articles [GET]

Input (N/A):

{}

Output:

{
  "status": 200,
  "message": "Success",
  "data": [
    {
      "id": 2,
      "title": "Serpent's Stone",
      "content": "Tanz",
      "author": "J.K Rowling"
    }
  ]
}

*localhost:8080/articles [POST]

Input:

{
  "title": "Serpent's Stone",
  "author": "J.K Rowling",
  "content": " Tanz"
}

Output:

{
  "status": 201,
  "message": "Success",
  "data": {
    "id": 2
  }
}

About

A blog system exam that I'm taking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published