Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
url-shortener

This is an old revision of the document!


URL shortener service

This is a web service that allows the user to shorten a URL into a small string, similar to Tiny URL, bit.ly, etc. A shortened URL can be edited to change the source URL. Here are some use cases for a user who uses the web service.

Shortening a HTTP/HTTPS URL

  1. The web app submits a HTTP URL to the web service.
  2. If the service detects that the URL belongs to a well-known website that also has iOS / Android apps, then the server builds URLs with app-specific schemes that will be used for iOS and Android.
  3. If the URL does not belong to any well-known website with known apps, then the server will use the same HTTP URL for iOS and Android also.
  4. The server returns the following to the web app
    1. If the URL belongs to a well-known app, then which well-known app it is, e.g. facebook, amazon.
    2. The HTTP URL that was submitted by the web app.
    3. The URL that will be used by iOS. If not a well-known app, this URL is the same as the HTTP URL.
    4. The URL that will be used by Android.
    5. The shortened URL.

Creating a shortened URL based on user's entry

  1. The web app submits the following details to the web service. Note that the web app can send all three or just one, if only a specific device is being targetted.
    1. HTTP URL
    2. A seperate URL for iOS.
    3. A seperate URL for Android.
  2. In response, the server creates a short URL and returns the following response.
    1. The HTTP URL exactly as submitted by the web app. If this field was blank, then the it is left blank.
    2. The iOS URL as submitted by the web app.
    3. The Android URL as submitted by the web app.
    4. Shortened URL

Updating a shortened URL

  1. The web app submits the following details to change within a URL. The web app may submit all three or just one or two of the following.
    1. the new HTTP URL
    2. the new iOS URL
    3. the new Android URL
  2. One of the following happens at the server.
    1. If the web app submitted only the HTTP URL, then the server detects if it is from a well-known website.
      1. If a well-known website with an app, an app-specific iOS and Android URL are generated.
      2. If not a well-known website, then the HTTP URL is used for iOS and Android.
    2. Along with the HTTP URL, if the web app also submits iOS or Android URL manually, then the server does not detect an app-specific URL for that OS. It will stick with what the web app has submitted.
    3. After saving the changes to the shortened URL, the server returns the following to the web app.
      1. the latest HTTP URL
      2. the latest iOS URL: either same as what web app submitted or otherwise auto-detected
      3. the latest Android URL: either same as what web app submitted or otherwise auto-detected
      4. the short URL, which remains unchanged despite the updation

User sign up

url-shortener.1535067036.txt.gz · Last modified: 2018/08/24 05:00 by 111.125.228.126