In Progress

3 simple REST services in Java

I am in need of a number of simple REST-based Java services – I do however not have the time myself to develop them, so I hope you will be able to assist me. The services will not be used in “production”, i.e. high performance/reliability requirements are not required.

Your help will be greatly appreciated!

Technology requirements:

• Java

• Jersey Framework for REST

• Database: can be flat file/mySql/in memory (What is required is that the data can be stored and retrieved as long as the webservice is running)

• Package name: com.myServices.rest. (…)

Required deliveries in the project

1) Source code for the below mentioned REST services (PUT & GET & DELETE methods are needed)

2) A WAR file per REST service that is ready to be deployed to a Tomcat server, including a short “how to run the REST service” txt file that contains a few examples of how to run the service, e.g. http://localhost:8080/TransformService/rest/112

3) A WADL file per PUT service (these should be able to be generated automatically, see e.g. [url removed, login to view]). In other words: 3 WADL files.

The REST Services that should be developed

1) transformMessage: transform octal number to decimal number

2) voter: returns the most frequent number in an array

3) aggregate: adds key-value pairs to an object

(The detailed description (see below) is also found in the pdf.)

The REST Services that should be developed:

For each of the 3 services I have described in the below text I have included a description of the PUT operations. I assume you will be able to figure out how the GET and DELETE operation will look.

Service 1: Transform message

Description: This service will receive a message in one format (octal) and should simply store and return the text in another format (decimal)

PUT:

Input parameter integer (octal format)

Output parameter integer (decimal format)

Expected effect the output parameter has been stored, and the value will be written to the browser

Operation name transformMessage

Test cases:

PUT value 112, the new decimal value is calculated (i.e. 74). This value is stored and returned (written to browser)

GET value 112; and then the value (decimal) 74 will be returned (written to browser)

Service 2: Voter Mechanism

Description: This service should act as a voter which based on a number of input parameters (an array of integers) should return the “most frequent” value. In case more values have the same frequency the one closest to the average value of the array should be returned.

PUT:

Input parameter: array of integer

Output parameter most frequent number (In case more values have the same frequency, an average of these values should be returned.)

Expected effect the array should be saved

Operation name voter

Test cases:

PUT [1,2,3,3,4,5]; should return 3 (the array is saved as ID 1 (here I assume this is the first entry in the database))

PUT [1,2,3,3,3,4,9,9,9]; should return (the array is saved as ID 2)

GET 1; writes the array as well as the “frequent value” (i.e. [1,2,3,3,4,5] and 3)

Service 3: A Room Aggregator

Description: This service will take a number of parameters as input (sensor values) and return with an aggregated return object (contains the numbers for the room).

PUT

Input parameter room id (string) and a key-value pair containing information about the room (e.g. room temperature in Celsius (integer), humidity (integer in percentage), light in room (yes/no), etc

Output parameter The measurements the object hold should be written to the browser, e.g. “Room A: temperature: 23 C, Light: on”

Expected effect The new object should be stored/updated

Operation name Aggregate

Test cases:

PUT: A, (“temperature”, 20)

PUT: A, (“light”, “on”)

PUT: Room Lakeside, (“windows open”, “false”)

Get: A => this will print something like: “A: temperature: 20, light: on”

Final notes: I am aware that these services can seem more SOAP’ish. Nevertheless, I am interested in them as RESTful services.

Skills: Java

See more: simple rest service java, simple rest java, simple java rest service, rest project java, rest java project, java simple rest service, rest service java, simple java project rest service, java rest project, java simple rest server, simple java rest, what is oracle package, what is new in java 1.5, what is data entry test, what is database technology, what is a data entry test like, what are integers used for, tomcat rest, string source code java, put in production, pdf services, pdf for oracle, oracle pdf files, oracle package examples, oracle framework

About the Employer:
( 1 review ) Aarhus, Denmark

Project ID: #4387001

Awarded to:

lkh007

Full Working Demo is ready. Please check your private message for the URL.

$100 USD in 1 day
(0 Reviews)
0.0

27 freelancers are bidding on average $168 for this job

eperfections

JAVA EXPERT ! Love to develop these REST services

$199 USD in 3 days
(272 Reviews)
7.0
IMSeriousBidder

Hello Sir, I am Bing from China,I am a senior Java developer with 8 years experience, I also have experience on Jersey .I can do the 3 RESET webservice for you in 2 days please consider my serious bid Than More

$225 USD in 2 days
(60 Reviews)
6.7
dobreiiita

Hi, I am JAVA and Web Services expert and can surely help you here, Thank You

$175 USD in 2 days
(163 Reviews)
6.4
AshwinSen

Hello, Please view PMB. Ashwin

$220 USD in 3 days
(39 Reviews)
5.7
buzzcoder

Hi let me help you, please check your pm, thanks.

$210 USD in 3 days
(41 Reviews)
5.5
ankit0803

Hi i am experienced java professional, recently completed project on rest web service, you can check my past projects. You can check my profile and past projects done on freelancer. Thanks

$240 USD in 4 days
(3 Reviews)
5.2
poornachand

I have 6 years experience in JAVA, Restful services and Jersy framework. I am ready to start your work.

$148 USD in 3 days
(26 Reviews)
5.1
sergioes

Hi, I'm an experienced java developer.

$150 USD in 2 days
(48 Reviews)
4.9
aoefmpes

I'm ready to do, pl check your inbox

$143 USD in 3 days
(24 Reviews)
4.6
fahien

Please check you inbox for my detailed message and expertise on my bid

$180 USD in 4 days
(12 Reviews)
4.1
Creativitus

Greetings, I have a Master's degree in Software technologies and many years of professional experience in Java on complex projects. I'm sure I can finish the listed project requirements properly within a maximum of two More

$150 USD in 2 days
(1 Review)
4.0
baptistepernet

I know very well Tomcat and Java. I also know REST services principles. Please contact me if you want high quality and on time delivery.

$350 USD in 5 days
(1 Review)
2.8
abhijitcaps

Hello, I have an experience of over 4.8 Years in J2EE, where I have worked in JSP, Servlet, Spring, Hibernate, RESTful Web Service using JSON and XML mode if data exchange with [url removed, login to view] of Bean Objects to prepa More

$115 USD in 5 days
(1 Review)
2.2
scopert

Hi, I can help you in this project. tks,Marius

$137 USD in 7 days
(1 Review)
2.0
nmlemus

I have experience in Rest web service. Take a look at the last project I finish. I am a professor at University too, so I can get you very good explanations of the service. If you are interesting just contact me. I can More

$99 USD in 1 day
(1 Review)
1.4
dipakjadhav08

I have 4 years experience in Java/ J2EE application development. I can help you.

$140 USD in 1 day
(2 Reviews)
1.2
nickocean

Hi. I have a lot of experience about webservice (Rest, SOAP). I can do it. Please check your PM. Thanks

$100 USD in 2 days
(1 Review)
1.0
shenchilang

I am an experienced java and web service developer, the job can be beautifully done.

$100 USD in 2 days
(0 Reviews)
0.0
ulltrass

Hi. I work with Jersey and webservices as part of my every day work. I can do this with ease in a matter of a few hours (today). I can also provide you samples of work previous done. I can assure you that I can deliver More

$110 USD in 1 day
(0 Reviews)
0.0
Suadeo

Greetings. Java experienced programmer here. Seems to be an easy task, willing to do it for you. Let's get in touch!

$200 USD in 3 days
(0 Reviews)
0.0