Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

po4yka/link-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Shortener

Local Version

Link shortener server with REST API using JAX-RS and MongoDB 3.4.

Source

Run mvn package clean compile for getting ready .war file.

TomEE start/stop

Start:

sudo /usr/share/tomcat9/bin/startup.sh

Stop:

sudo /usr/share/tomcat9/bin/shutdown.sh

Communication with server

To test a deployed local server, use the utility Advanced REST Client (ARC).

For PUT command:

  • Add HEADER with name content-type with text/plain parameter;

  • Write your text in BODY;

  • Send for command by address: http://localhost:8080/jxr-rs-1.0-SNAPSHOT/api/links.

For GET command just specify the address http://localhost:8080/jxr-rs-1.0-SNAPSHOT/api/links/NUMBER, where 'NUMBER' - one of the returned by 'PUT' values.

AWS Version

The same backend server based on AWS server.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages