Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 595 Bytes

delete-url.md

File metadata and controls

43 lines (29 loc) · 595 Bytes

Delete Short Url

Returns json data about a created url.

  • URL

    /url/:short_url.json

  • Method:

    DELETE

  • URL Params

    Required:

    short_url=[string]

  • Success Response:

    • Code: 204
  • Error Response:

    • Code: 404 Record NOT FOUND
      Content: { "error": "Url doesn't exist", "status": 404 }
  • Sample Call:

      $.ajax({
        url: "/urls/:short_url",
        dataType: "json",
        type : "DELETE",
        success : function(r) {
          console.log(r);
        }
      });