“”time””:””+timeString+””}””
CS340 Southern New Hampshire MongoDB Project Hi,I need help with MongoDB…
…Thanks, CS 340 Milestone Two Guidelines and Rubric
Overview: For this assignment, you will implement a basic RESTful web service using either Python or Java. You will use the language-specific web services
framework to implement the RESTful service. You will later build upon this simple RESTful service implementation for your final project. Make sure you are using
the same programming language you chose in Module Four, as this assignment will build on the work you completed for Milestone One.
Reminders
Make sure you complete either the Java or the Python REST service tutorial in your Codio
terminal before you start this assignment.
Type all Python code into your Codio terminal manually, especially when running the
Python example code below. Python is space-sensitive and does not copy into the Codio
terminal well.
Prior to completing the prompt for this assignment, run the following code in your chosen language.
Create a basic web service using the RESTful design pattern to implement the following URI example:
http://localhost/currentTime
The above URI should return the current server system time in the following JSON format text:
{ date : MM-DD-YYYY , time : HH:MM:SS }
Example Python Code
#!/usr/bin/python
import json
from bson import json_util
import bottle
from bottle import route, run, request, abort
# set up URI paths for REST service
@route(‘/currentTime’, method=’GET’)
def get_currentTime():
dateString=datetime.datetime.now().strftime(“%Y-%m-%d”)
timeString=datetime.datetime.now().strftime(“%H:%M:%S”)
string=”{“date””:””+dateString+””
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.