From 0f7269582b9bbd68a52b6f9fecf5e56b3e818892 Mon Sep 17 00:00:00 2001 From: Kris Koishigawa Date: Mon, 14 Sep 2020 18:24:04 +0900 Subject: [PATCH] fix: html formatting and grammar --- views/index.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/views/index.html b/views/index.html index 3330b19..a219a3f 100644 --- a/views/index.html +++ b/views/index.html @@ -3,7 +3,11 @@ URL Shortener - + @@ -13,10 +17,16 @@

API Project: URL Shortener Microservice

User Story:

    -
  1. I can POST a URL to [project_url]/api/shorturl/new and I will receive a shortened URL in the JSON response.
    Example : {"original_url":"www.google.com","short_url":1}
  2. - If I pass an invalid URL that doesn't follow the http(s)://www.example.com(/more/routes) format, the JSON response will contain an error like {"error":"invalid URL"}
    - HINT: to be sure that the submitted url points to a valid site you can use the function dns.lookup(host, cb) from the dns core module. + I can POST a URL to [project_url]/api/shorturl/new and I will receive a shortened URL in the JSON + response.
    + Example : { "original_url": "www.google.com", "short_url": 1 } +
  3. +
  4. + If I pass an invalid URL that doesn't follow the http(s)://www.example.com(/more/routes) format, + the JSON response will contain an error like { "error": "invalid URL" }
    + HINT: To be sure that the submitted URL points to a valid site, you can use the function + dns.lookup(host, cb) from the dns core module.
  5. When I visit the shortened URL, it will redirect me to my original link.