Highlights
Task:
The Brief In this project, you will use the Django framework to implement a RESTful web API for a ‘news agency’ and will host your API on www.pythonanywhere.com . Hosting small websites on pythonanywhere is free.
2. The Web Service A group of news agencies decided to form an alliance. One of the purposes of this alliance is to allow clients (news readers) to easily collect news from all agencies. The overall architecture of this system is shown in the following figure. In addition to the websites of the news agencies, a central directory service is needed to maintain a list of all participating services. A news aggregator application will first contact the directory to obtain the list of participating agencies, then it will contact each service in turn to collect news stories.
2.1. Specifications of the news agency service
2.1.1. The Database The news agency database should maintain two tables, one for authors and one for news stories. For each author, the authors’ table contains the name of the author, a unique username, and a password. Only authors registered in this table are allowed to post news stories to the service. Authors are added to this table manually through the admin site of the web API. The admin site is automatically created by the Django framework. There should be at least two author accounts in this table, one for the student who developed the service, and for the instructor (me) who will be testing the API (see submission instructions below)
2.1.2. The API (30 marks, 6 marks for each of the 5 services)
Except for one or two cases, we will mainly use application/json objects to represent data in the payload of the HTTP messages. When we specifically mention an HTTP response code in the API specifications, the server should use this code, otherwise it should respond with one of the standard HTTP status codes as appropriate to the situation (e.g. 400 Bad Request). Here is a list of the services your news API must provide: Log In Service Aim: to log in to an author’s account Service Details: The client sends a POST request to /api/login/ with the following data in an application/x-www-formurlencoded payload with two items: 1. Username ("username”, string) 2. Password ("password", string)
This COMP3011 : IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.