Duong0907 / quote-generator

Generating random quotes API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quote Generator Documentation

Create quotes

  1. Method: POST
  2. Endpoint: https://quote-generator-iks2.onrender.com/api/
  3. Body:
[
    {
        "text": "Genius is one percent inspiration and ninety-nine percent perspiration.",
        "author": "Thomas Edison"
    },
    {
        "text": "You can observe a lot just by watching.",
        "author": "Yogi Berra"
    }
]

  1. Result:
{
    "message": "Create quotes successfully",
    "error": false,
    "data": {
        "quotes": [
            {
                "text": "Genius is one percent inspiration and ninety-nine percent perspiration.",
                "author": "Thomas Edison"
            },
            {
                "text": "You can observe a lot just by watching.",
                "author": "Yogi Berra"
            }
        ]
    }
}

Get random quotes

  1. Method : GET
  2. Endpoint: https://quote-generator-iks2.onrender.com/api/
  3. Params:
    • number (required) : int
  4. Result:
{
    "message": "Get random quotes successfully",
    "error": false,
    "data": {
        "quotes": [
            {
                "text": "Genius is one percent inspiration and ninety-nine percent perspiration.",
                "author": "Thomas Edison"
            }
        ]
    }
}

About

Generating random quotes API


Languages

Language:Go 100.0%