Install Encurtador-URL with npm
# Clone this project
$ git clone https://github.com/kaduh15/encurtador-url-api
# Access
$ cd encurtador-url-api
# Install dependencies
$ npm install
# Run the project
$ npm start
# The server will initialize in the <http://localhost:3001>
- Objective: Adiciona URL.
- Code HTTP:
201 - Created
; - Body (exemplo):
{
"url": "http://www.exemplo.com", // Any valid URL;
}
RESPONSE Body:
{
"id":1,
"shortURL": "ty2ZF", // Short URl;
"originalURL": "http://www.exemplo.com", // Original URL
}
- Objective: Redirect to Original URL.
- Code HTTP:
200 - Success
;
RESPONSE Redirected to the desired URL
This project is under license from MIT. For more details, see the LICENSE file.
Made with โค๏ธ by Kaduh15
ย