A REST service can, however, offer several representations of the same resource.
For instance, many resources also provide JSON representations - JSON is a lightweight version of XML that is often used in Web mashups and REST interfaces because it can directly be translated to Java Script objects.
In this task, you should create a method that uses the Python Requests library (you'll need to install that from the given URL) for sending the same HTTP request as you created by hand in task 1.3.
This method should also display the JSON representation of the resource on the screen.
Rationale: You will require a solid HTTP foundation and basic knowledge in user interface technologies for the course project. Prerequisites: The Web services that you will be using throughout this assignment are the BART API as well as a simple test API to a crude online forum.
Used Languages: Python, Java Script ( j Query) You should create a zip file containing the Python and Java Script code created in this assignment.In this assignment you will learn to develop simple distributed applications using Web technologies.After getting familiar with establishing HTTP connections and sending different kinds of HTTP requests, you will create an application that gathers data from a Web service and visualizes it locally.Next, use an HTTP POST request to send a new forum post to the API's from the command line.In this part, you will create a website that uses Java Script to obtain input from a remote source and display this input. Using its API documentation, find the resource that enables you to access BART's real-time departure estimates.A web page is a document, typically written in HTML, that is almost always accessible via HTTP, a protocol that transfers information from the web server to display in the user’s web browser.All publicity accessible websites are seen collectively as constituting the “World Wide Web”.To obtain a representation of the header of your raw HTTP request to ask the server for a representation of the resource in the JSON format by specifying the appropriate media type.If successful, the Web server will now return a JSON file that contains all forum posts. HTTP requests are usually not implemented by hand, but rather using one of many different libraries that take care of the intricacies of the HTTP protocol and connection management.So unless you are just using your site for storage, start with putting down your purpose, your objectives, and message. Blog Site: Sites generally used to post online diaries which may include discussion forums ( e.g. Content Site: Sites whose business is the creation and distribution of original content ( e.g. Corporate Site: Used to provide background information about a business, organization or service. Community Site: A site where persons with similar interests communicate with each other usually by chat or message boards such as My Space.Types Of Web Site: There are many variety of web sites, each specializing in a particular type of content or use and they may be arbitrarily classified in any number of ways. Database Site: A site whose main use is the search and display of a specific database’s content such as the Internet Movie Database or the Political Graveyard.