代写 Client-Server API Implementation 程序
Coursework Assignment: Programming 3

Table of Contents
Use Case Scenario and Problem Definition .......................................................... 1
Requirements Specification............................................................................. 2
Minimum Required Features ..................................................................................................... 2
Feature 1: Register and Authenticate........................................................................................ 2
Feature 2: Post Touristic Location Information .......................................................................... 3
Feature 3: Get information about Tourist Locations................................................................... 4
Feature 4: Add Coordinates to Tourist Locations....................................................................... 6
6. Advanced Feature..................................................................................................................... 7
Feature 5: Attach Weather Information...................................................................................... 7
Assessment Criteria ...................................................................................... 8
Grading: Coursework Assignment .......................................................... 8
Assignment Deliverables and Feedback – Important Dates ....................................... 8
Access to Support Material and Additional Information ........................................... 9
Note: Using AI ............................................................................................. 9
Client-Server API Implementation for a Tourist Locations
Information System
Use Case Scenario and Problem Definition
Use Case Scenario: Travellers from around the world want to share and access information about
tourist attractions in Oulu, Finland via a Tourist Locations Information system. This system should
be implemented on a server, allowing the users to access it. Only the registered users should be
able to post touristic location information in the system.
Problem Definition: You, as a developer, should implement a server API based on the use case
scenario. The server API should be implemented for delivering the expected functionalities as per
the requirements defined below.
2
Requirements Specification
Minimum requirements
ID Description
REQ1 HTTP Headers must include the Content
Length in bytes and Content Type using
standard HTTP headers
REQ2 All content in the HTTP requests/responses
must be JSON (except for the server error
messages, which may be text)
REQ3 HTTP header Content-Type must be
“application/json”
REQ4 All text in the HTTP body must use UTF-8
encoding
REQ5 All dates and times in JSON content MUST
follow the ISO 8601 UTC format with
milliseconds, e.g., 2020-12-21T07:57:47.131Z.
REQ6 All user data and corresponding tourist
location information must be stored in a
database.
3
Minimum Required Features
Feature 1: Register and Authenticate
URL: https://server.url/registration
Request Type: POST
Authorization: Not required
Response code for successful operation: 200
Response code for failed operation: 400 - 499
Header information that must be included at a minimum:
- Content-Length: size of the content
- Content-Type: application/json
Example data format for registering a user:
{
"userName": "username",
"password": "password",
"email": "user.email@for-contacting.com",
"userNickname": "Sam"
}
Note: Server MUST NOT accept other than registration requests from unauthorized clients.
For other than registration requests, users MUST be authenticated using Basic HTTP
authentication. Authentication MUST be done over HTTPS using the Authorization header, where
username:password string MUST be UTF-8.
4
Feature 2: Post Touristic Location Information
URL: https://server.url/info
Method: POST
Authorization: Only registered users can perform this operation
Response code for successful operation: 200
Response code for failed operation: 400 - 499
Header information that must be included at a minimum:
- Content-Length: size of the content
- Content-Type: application/json
Example data format for posting a touristic location information:
{
"locationName": "Oulun Tuomiokirkko",
"locationDescription": "The church of Oulu",
"locationCity": "Oulu",
"locationCountry": "Finland",
"locationStreetAddress": "Kirkkokatu 3 A",
"originalPoster": "Pekka",
"originalPostingTime": "2020-12-21T07:57:47.123Z"
}
where:
- locationName is the name of the location and can be chosen by the user
- locationDescription: is a free description that the user can provide of the tourist location
- locationCity: is the name of the city where the tourist location is
- locationStreetAddress: is the local address for the tourist location
- originalPoster: is the name of the person who sent the tourist location information
- originalPostingTime: is when the user sent the tourist location information, represented in UTC
5
Feature 3: Get information about Tourist Locations
URL: https://server.url/info
Method: GET
Authorization: Only registered users can perform this operation
Response code for successful operation: 200
Response code for failed operation: 400 - 499
Header information that must be included at a minimum:
- Content-Length: size of the content
- Content-Type: application/json
Note: Server may respond with 204 or empty body if there are no available coordinates.
Example response data format for sending back data to the client:
[
{
"locationName": "Oulun Tuomiokirkko",
"locationDescription": "The church of Oulu",
"locationCity": "Oulu",
"locationCountry": "Finland",
"locationStreetAddress": "Kirkkokatu 3 A",
"originalPoster": "Pekka",
"originalPostingTime": "2020-12-21T07:57:47.123Z"
},
{
"locationName": "Nallikari Beach",
"locationDescription": "The most popular beach in Oulu",
"locationCity": "Oulu",
"locationCountry": "Finland",
"locationStreetAddress": "Nallikarinranta, 90500 Oulu",
"originalPoster": "Anna",
"originalPostingTime": "2024-12-21T07:57:47.123Z"
}
]
6
Feature 4: Add Coordinates to Tourist Locations
URL: https://server.url/info
Method: POST
Authorization: Only registered users can perform this operation
Response code for successful operation: 200
Response code for failed operation: 400 - 499
Header information that must be included at a minimum:
- Content-Length: size of the content
- Content-Type: application/json
Example data format for posting a touristic location information:
{
"locationName": "Oulun Tuomiokirkko",
"locationDescription": "The church of Oulu",
"locationCity": "Oulu",
"locationCountry": "Finland",
"locationStreetAddress": "Kirkkokatu 3 A",
"originalPoster": "Pekka",
"originalPostingTime": "2020-12-21T07:57:47.123Z",
"latitude": "65.0580507136066",
"longitude": "25.469414591526057"
}
Note: Coordinates are not mandatory. If no coordinates exist for a tourist location, no
coordinates are provided in the response message sent to the client.
7
6. Advanced Feature
Feature 5: Attach Weather Information
URL: https://server.url/info
Method: POST
Authorization: Only registered users can perform this operation
Response code for successful operation: 200
Response code for failed operation: 400 - 499
Header information that must be included at a minimum:
- Content-Length: size of the content
- Content-Type: application/json
Example data format for posting a touristic location information:
{
"locationName": "Oulun Tuomiokirkko",
"locationDescription": "The church of Oulu",
"locationCity": "Oulu",
"locationCountry": "Finland",
"locationStreetAddress": "Kirkkokatu 3 A",
"originalPoster": "Pekka",
"originalPostingTime": "2020-12-21T07:57:47.123Z",
"latitude": "65.0580507136066",
"longitude": "25.469414591526057",
"weather": ""
}
where:
- weather can be an integer, double, or “1C” representation of temperature data given from the
weather service
Note:
- The user attaching weather data is optional.
- Weather information is based on the coordinates corresponding to the location.
- Weather information is obtained from a custom-built service.
- The messages with weather information must contain temperature of the location in the request
- The weather service will be provided separately; the server must send the coordinates to the
weather service that will provide the weather information related to the coordinates.
8
The attached jar (in Moodle) contains the package you need for feature 5. You can initiate it off
with the following command:
java -jar .\weatherserver-http.jar 4001,
where 4001 is the port number.
The server listens to http, so no keystores are needed.
Send a message with curl to http://localhost:portnumber/weather and you receive short reply
instructing what you need to send to the weather server in order to get weather information.
For example:
curl http://localhost:4001/weather -k -H "Content-Type:application/xml" -v
NOTE: Weather server only listens to POST commands and specific XML messages:

28.23333
10.23344

Assessment Criteria
Complete the coursework assignment on or before the given deadline (Deadlines are found in
Moodle. Submissions must be made to the GitLab repository. These GitLab submissions must at
least pass the automated tests to receive the minimum points allocated for the assignment.
Late submissions or late changes to Coursework Assignments will result in a penalty of 5 points for
each day past the deadline.
Grading: Coursework Assignment
Activity Individual Total Weight
Minimum API implementation:
Features 1-4
45 pts 45%
Gitlab documentation 5 pts 5%
Advanced API Feature: Feature 5 5 pts
5%
Database programming 20 pts 20%
Total: Coursework Assignment 75 pts 75%
9
Assignment Deliverables and Feedback – Important Dates
Each student will have a GitLab repository created for submitting their Exercises and Coursework.
The Gitlab submissions must at least pass the automated tests to receive the minimum grade
for the assignment. Please find further instructions in Moodle.
Assignment Deadline
Coursework Submission 21.11.2025
Access to Support Material and Additional Information
The teaching, learning, and support material is provided electronically via the NJIT Moodle system
(https://moodle.njit.edu.cn/). The students who have enrolled will have access to a GitLab
repository at https://njit-ci.oulu.fi. They must set up their authenticated access according to the
instructions given in the GitLab user manual provided in Moodle. Please check and inform the
responsible teacher or NJIT teacher if the Gitlab Repository link is broken or non-accessible,
preferably during the contact teaching hours and at least a week before the first Gitlab submission
deadline.
For inquiries, please email the responsible teacher at vishaka.basnayake@oulu.fi from Monday to
Friday, 8 AM to 5 PM.
Note: Using AI
All the assignment deliverables need to be submitted in English, if there are ideas or content
which needs to be expressed in Chinese (e.g. demonstrating language translation capabilities of
the developed applications etc. stuff, if such issues apply), also those contents need to be
translated into English to the extent that makes judgment of your deliverables possible in English.
For the same reason, we STRONGLY DISCOURAGE the use of automatic language translators and
other such tools at first when you produce your text and content in English. Try to formulate your
text first in English on your own, AFTER WHICH you can expose your text to language check, seek
the right concepts and expressions, etc., if the appropriate tools are available to you. We are
more interested in what has been learned through human thinking and analytical processes.
The assignment documents may be checked with plagiarism detection and artificial intelligence
detection tools, in case the teachers suspect unauthorized use of such means, and individual
assignment deliverables need to be originally produced by each student. The documentation needs
to report if and how any language translation or artificial intelligence-related tools have been
used in the report. Improper use of such tools, as well as detected plagiarism, leads to disciplinary
processes according to the rules and practices of the NJIT-Oulu school.

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图