Skip to content

etw3gh/pnt2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNT2

PHP based URL Shortener with JSON RESTFUL API built on Slim Framework

Try on-line @ http://pnt2.ca.

Usage

Request

POST /api/shorten
Accept: application/json
Content-Type: application/json
Content-Length: 91

{
    "urls":
    [
        {"url":"http://google.ca"},
        {"url":"http://pnt2.ca"},
        {"url":"http://github.com"}
    ]
}

Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 93

{
    "urls":
    [
    "http://pnt2.ca/enRe",
    "Cannot shorten Pnt2.ca links",
    "http://pnt2.ca/7yxw"
    ]
}

About

PHP URL Shortener with REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published