Develop a restful web service back-end for searching

Assignment Help Other Subject
Reference no: EM132209181

Mini Web Project - Genealogy Explorer

Coursework Description

Your task is to develop the Genealogy Explorer (GE), an online tool for building a family tree and tracking ancestry. This piece of coursework consists of two parts - Part 1 (RESTful Service) and Part 2 (Web Interface). You will need to develop a RESTful web service back-end for searching and editing genealogy records, and to design a web interface for creating and browsing these data.

You may start your work from Part 1 or Part 2 first as you wish. Java domain class templates and a SQL file is provided on Blackboard (see Appendix). You may choose to use them for implementation, and you are allowed to make any changes to them.

Part 1: RESTful Web Service

GE allows users to create and edit a family tree. Your tasks in Part 1 are to implement the following REST Web Service methods (a), (b), (c), (d) and (e).

(a) Adding a person

(1) GET /GE/person/add?key=3&name=RichardIII&dob=14830626&m=1&f=2&g=male

Submit a GET request to this URI to add a person to the database.

Parameter:
key : the unique key of the person (*)
name : full name of the person (*) m : the person's mother's key f : the person's father's key
dob : the person's date of birth (e.g. 19921210 - December 10th 1992)
g : the person's gender

(2) POST /GE/person/addJSON

JSON request

{
"key": "1",
"name": "RichardIII", "dob": "14830626",
"g": "male"
"m": "2",
"f": "3"
}
Successful response in JSON

{"result": "true"}

Unsuccessful response in JSON

{
"result": "false",
"message": "person id already exists (or m/f id does not exist)"
}

Add a new person to the database. This request returns true if the operation is successful, otherwise false is returned. (e.g. a person with the provided id already exists; one of the parent ids does not exist)

Consider the following HTTP GET requests:

GET /GE/person/add?key=1&name=King%20George%20VI
GET /GE/person/add?key=2&name=Queen%20Elizabeth
GET /GE/person/add?key=3&name=Queen%20Elizabeth%20II&m=2&f=1
GET /GE/person/add?key=5&name=Prince%20Philip%20Duke%20of%20Edinburgh
GET /GE/person/add?key=4&name=Princess%20Margaret&m=2&f=1
GET /GE/person/add?key=6&name=Prince%20Charles&m=3&f=5
GET /GE/person/add?key=7&name=Princess%20Diana
GET /GE/person/add?key=8&name=Prince%20William&m=7&f=6
GET /GE/person/add?key=9&name=Prince%20Harry&m=7&f=6
GET /GE/person/add?key=10&name=Catherine%20Duchess%20of%20Cambridge
GET /GE/person/add?key=11&name=Prince%20George&m=10&f=8

The family tree structure below will be created (Note that spaces in URLs are encoded as %20; optional arguments are omitted)

It is also possible to add multiple persons at the same time by posting a JSON array to addJSON. For example, the following JSON will add two people to the database:

{
"list":[
{
"key":"12",
"name":"Princess Charlotte", "dob":"20150502",
"g":"female",
"m":"10",
"f":"8"
},
{
"key":"13",
"name":"Prince Louis", "dob":"14830626",
"g":"male",
"m":"10",
"f":"8"
}
]
}

This request returns true if all people are added successfully, otherwise the operation is cancelled and false is returned.

(b) Deleting a person

GET /GE/person/delete/7

Delete a person with the given key (e.g. key=7) from the Genealogy database. The person's descendants should NOT be deleted from the family tree. The request should return true if the operation is successful, otherwise false is returned. For example, the above HTTP GET request should not delete key=8, 9, 10 or 11 in Figure (1).

Successful response in JSON

Unsuccessful response in JSON

{
"result": "false",
"message": "key X does not exist"
}

(c) Getting information about a specific person

GET /GE/person/get/12
Return the information about a person with the given key in JSON: Successful response in JSON
{
"key": "12",
"name": "Princess Charlotte", "dob": "20150502",
"g": "female",
"m": "10",
"f": "8"
}

Unsuccessful response in JSON

{
"result": "false",
"message": "key X does not exist"
}

(d) Finding someone's ancestors

GET /GE/person/ancestors/6

Return the person's direct-line ancestors (a direct-line ancestor is someone from whom you descend in a direct line - parent to child, grandparent, great-grandparent etc.) as a JSON object. Given the family tree in Figure 1, the GET request above should return all direct-line ancestors of the person (key=6) as a JSON object:

{
"key":"6", "parents":{
"m":{
"key":"3", "parents":{
"m":{
"key":"2"
}, "f":{
"key":"1"
}
}
}, "f":{
"key":"5"
}
}
}

Unsuccessful response in JSON

{
"result": "false",
"message": "key X does not exist"
}

Note: You may include other attributes (e.g. name, gender etc) in the JSON response.

(e) Finding someone's descendants
GET /GE/person/descendants/7

Return all of the person's lineal descendants (a lineal descendant is a blood relative in the direct line of descent - the children, grandchildren, great-grandchildren, etc.) as a JSON object. Given the family tree in Figure (1), the GET request above should return all descendants of the person (key=7) as a JSON object:

{
"key":"7", "children":[
{
"key":"8", "children":[
{
"key":"11"
}
]
},
{
"key":"9"
}
]
}

Part 2: Web Interface

Your task in Part 2 is to design and implement a web interface for creating and editing the Genealogy data. You may use any Web Frameworks (MVC, MVP or MVVM) for implementation, including but not limited to:

• Spring MVC
• ASP.NET MVC
• Ruby On Rails
• Laravel PHP
• AngularJS
• Django
• Ember.js

The architecture and good coding practice will also be taken into account when allocating marks. The mark for this piece of coursework will be capped at 65% if the solution does not use any web framework (Please consult with the convenor first if the framework you intend to use is not listed here).

Your tasks in Part 2 are to implement a Web Interface for (f), (g) and (h)

(f) Browsing genealogy records
(g) Adding, deleting and editing persons from the family trees
(h) Searching descendants and ancestors

In addition to the functionality, the website responsiveness (page rendering on a variety of devices and window or screen sizes) will be taken into account when allocating marks.

Reference no: EM132209181

Questions Cloud

Why the decision making is important : Why the decision making is important? The steps of the decision making. ( digital revolution and industrial revolution)
What ethical considerations were discussed in the video : Are the questions posed in this video still relevant today in light of the current business environment?What ethical considerations were discussed in the video?
Primary value chain activities relating to your business : List your potential competitive strategy. Describe the primary value chain activities relating to your business.
Social factors and work adjustment issues : According to Maslow hierarchy of needs why expats fail in re-entry, social factors and work adjustment issues.
Develop a restful web service back-end for searching : CO3098 Mini Web Project - develop the Genealogy Explorer (GE), an online tool for building a family tree and tracking ancestry. This piece of coursework consist
Give an example of a market penetration : Give an example of a market penetration, a retail format development, a market expansion, and a diversification growth strategy that Best Buy might use.
How information from application and system are displayed : Choose a set of data from the database list (e.g., Performance data). Next, select the appropriate application program that the data interfaces.
Charge of the checking account for small business : You are in charge of the checking account for a small business.
What is the variance of the returns : A stock had returns of 18.03 percent, -5.25 percent, and 20.48 percent for the past three years. What is the variance of the returns?

Reviews

len2209181

1/6/2019 9:54:44 PM

• Zip all files in a single zip file for submission: o Your Dynamic Web project or Gradle/Maven project folder o README.txt o Your SQL schema and data, if applicable (Your_email_ID.sql) • The archive should be named CO3098_MiniWeb_email_id.zip or CO7098_MiniWeb_email_id.zip (e.g. CO3098_MiniWeb_yh37.zip). Note: Please contact the module convenor first if you choose to use .NET WCF or other frameworks for Part 1 and 2. You need to submit the zip file via Blackboard and you are allowed to re-submit as many times as you like before the deadline.

len2209181

1/6/2019 9:54:33 PM

A (80%) • Optimise website for mobile devices, supporting both the portrait and landscape view in a variety of mobile devices with different screen sizes. • Secure RESTful Service with OAuth2 Tokens. • Genealogy records are visualised as an interactive tree. • Ajax/jQuery is used appropriately in most features. • The searching function passed all test cases. • Search results can be visualised using an interactive chart.

len2209181

1/6/2019 9:54:18 PM

C (60-70%) • The adoption of responsive web design, basic browser resizing and cross-device compatibility • Genealogy records show in a static or interactive tree-like structure; adding, deleting and editing functions are implemented. Ajax/jQuery is used in certain areas but limited, page reloading is still required. • Search results are mostly correct; results are displayed in HTML (e.g. tables, etc.). B (70-80%) • Genealogy records displayed as an interactive tree (e.g. GoJS genogram chart). • Ajax/jQuery is used in some core features so that the tree can be refreshed without reloading (users are able to make any change to the family tree directly without postback) • Search function invokes the RESTful service implemented in Part 1. • The searching function passed all test cases, and results are displayed in HTML with pagination.

len2209181

1/6/2019 9:53:58 PM

v

len2209181

1/6/2019 9:53:34 PM

E (40-50%) • Basic HTML pages/view without any front-end framework/CSS; do not adopt a responsive design. • Listing of genealogy records in simple form, e.g. display all persons in a simple HTML table; form- based adding, deleting and editing feature developed, but still not functioning properly. • Static HTML page and server-side code for searching partially implemented, but there are still major issues. (e.g. failed to return any result, 500 internal server error) D (50-60%) • Adopt responsive web design in the development, but there are major issues. (e.g. cannot navigate the website through desktop/mobile)

len2209181

1/6/2019 9:53:06 PM

REST Service API testing process will be automated. Test cases will be provided for each REST controller method (a), (b), (c), (d), (e) to check whether methods are behaving as they are expected. Marks will be distributed according to test results. Part 2: N (0%) • No submission F (0-40%) • Front-end HTML page exists, but the program fails to load or display any genealogy data. No listing of records in a simple form (e.g. table). No front-end framework/CSS used. • An attempt was made but adding/deleting/editing functions are not functional. • Static web pages (or view) for searching descendants/ancestors exists but without any connection to the database.

len2209181

1/6/2019 9:52:48 PM

The deadline is strict and will not be changed. Please ensure that you submit your work in time. • This coursework counts as 22% of your final mark. • Please read guidelines on plagiarism in the study guide and course documentation. • This coursework requires knowledge about REST Web Service, JSON, Bootstrap, AJAX and the Web MVC framework. • Learning outcome: ? Use a web MVC framework to create web applications. ? Demonstrate the understanding of technologies behind Web Service

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd