This repository is a playground for API's. These are just a collection of items that you can utilize for learning purposes.
Sample APIs has been given a major overhaul. Due to the fact Vercel.com has changed the way their servers work, we have had to rethink how the system was built. Over all, the changes are for the better. It is now easier than ever to contribute.
Understanding RESTful APIs is hard enough, even without including an authentication mechanism. The sole purpose of this repository is to play with RESTful endpoints and learn. We have a few endpoints that you can start playing around with right away! If you are not finding anything you are interested in, create your own endpoints and/or submit a pull request. Take a look at the CONTRIBUTING for more information on how to get involved.
Choose an endpoint, say "futurama", then choose what information you'd like, say "characters":
Javascript const baseURL = "https://api.sampleapis.com/futurama/characters"; fetch(baseURL) .then(resp => resp.json()) .then(data => console.log(data));
Want to Search? for all chatacters with the name "Bender"?
Javascript const baseURL = "https://api.sampleapis.com/futurama/characters"; fetch(`${baseURL}?name.first=Bender`) .then(resp => resp.json()) .then(data => console.log(data));You also have full CRUD, so you can add information or correct existing ones.
Hosting has switched again due to
Vercel.com's static nature. The app is being self hosted and is back to being fully CRUD-able.
Checkout the Change Log for full details.