The Broadway Musicals API
With the Broadway musicals API, you can keep track of musicals, actors, and songs. You can use it to keep a database of shows you've seen or want to see, or just track all the musicals that are currently open on Broadway. The API is designed to be easy to use for everyone, even those who don't have much experience coding.
This API uses RESTful principles. REST stands for representational state transfer, an architectural style for designing applications. The standard HTTP methods of a RESTful API usually allow you to Create, Read, Update, or Delete a database entry. You can create, read, and update each record via AJAX. There are four HTTP methods you can use to interact with the database records:
- GET
- A GET request allows you to retrieve data. GET requests do not change or update your data.
- POST
- A POST request will allow you to create new resources. For example, making a post request to a collection (like
/musicals) will allow you to add a new musical to the musicals table.
- A POST request will allow you to create new resources. For example, making a post request to a collection (like
- PUT
- A PUT request allows you to update a resource. For example, a post request to a specific actor (like
/actors/1) will allow you to update one of their fields, such as the last Broadway show they performed in.
- A PUT request allows you to update a resource. For example, a post request to a specific actor (like
- DELETE
- A DELETE request allows you to remove a resource.
The responses will be in JSON format. JSON stands for JavaScript object notation, which is a data-interchange format that is easy for humans to read and easy to parse in the programming language of your choice.
The specific endpoints to visit as well as sample requests and responses to interact with this API are detailed in the "Routes" section of the documentation.