Giter Club home page Giter Club logo

pursuit-core-introduction-to-networking-and-apis-lab's Introduction

Pursuit-Core-Introduction-To-Networking-and-APIs-Lab

Part One

API Scavenger Hunt!

For each of the questions below, identify a website and search query that will give you the appropriate JSON. Paste the url and a snippet of the json below. Googling the category + API will generally take you to where you need. Ex. https://lmgtfy.com/?q=cat+fact+api

  1. A random cat fact https://catfact.ninja/facts { "current_page": 1, "data": [ { "fact": "The Maine Coon is 4 to 5 times larger than the Singapura, the smallest breed of cat.", "length": 84 } ]

  2. A list of 150 random users in English. https://randomuser.me/api/ { "results": [ { "gender": "male", "name": { "title": "Mr", "first": "Mohamoud", "last": "Van 't Slot" }, "location": { "street": { "number": 7485, "name": "De Trommelslager" }]

  3. All the repos on Github with Pursuit their name https://api.github.com/search/repositories?q=pursuit { "total_count": 1552, "incomplete_results": false, "items": [ { "id": 22592439, "node_id": "MDEwOlJlcG9zaXRvcnkyMjU5MjQzOQ==", "name": "pursuit", "full_name": "purescript/pursuit", "private": false,

  4. All the JavaScript repos on Github with Pursuit in their name https://api.github.com/search/repositories?q=pursuit+javascript { "total_count": 16, "incomplete_results": false, "items": [ { "id": 160723388, "node_id": "MDEwOlJlcG9zaXRvcnkxNjA3MjMzODg=", "name": "Javascript-Trivial-Pursuit-Game", "full_name": "mrwishart/Javascript-Trivial-Pursuit-Game", "private": false,

  5. All the Swift repos on Github with Pursuit in their name https://api.github.com/search/repositories?q=pursuit+swift

{ "total_count": 5, "incomplete_results": false, "items": [ { "id": 39978693, "node_id": "MDEwOlJlcG9zaXRvcnkzOTk3ODY5Mw==", "name": "swift-wisdom", "full_name": "IntrepidPursuits/swift-wisdom", "private": false,

  1. A list of all Pokemon https://pokeapi.co/api/v2/pokemon/

{ "count": 964, "next": "https://pokeapi.co/api/v2/pokemon/?offset=20&limit=20", "previous": null, "results": [ { "name": "bulbasaur", "url": "https://pokeapi.co/api/v2/pokemon/1/" }, { "name": "ivysaur", "url": "https://pokeapi.co/api/v2/pokemon/2/" }, { "name": "venusaur", "url": "https://pokeapi.co/api/v2/pokemon/3/" }, { "name": "charmander", "url": "https://pokeapi.co/api/v2/pokemon/4/" }, { "name": "charmeleon", "url": "https://pokeapi.co/api/v2/pokemon/5/" }, { "name": "charizard", "url": "https://pokeapi.co/api/v2/pokemon/6/" },

  1. A list of all items in Fortnite fortnite-api.theapinetwork.com/store/get

{ "lastUpdate": 1574726400, "lanuage": "en", "data": [ { "itemId": "e67b4bc-bd9afae-5c95ae3-2ce6ce9", "lastUpdate": 1574726400, "store": { "isFeatured": true, "isRefundable": true, "cost": 1200, "occurrences": 0, "isNew": false },

  1. A list of all Game of Thrones Episodes. https://api.got.show/api/map/episodes { "message": "Success", "data": [ { "characters": [ "Viserys Targaryen", "Catelyn Stark", "Cersei Lannister", "Jaime Lannister", "Eddard Stark", "Robert Baratheon", "Jorah Mormont", "Daenerys Targaryen", "Jon Snow", "Petyr Baelish", "Arya Stark", "Sansa Stark", "Bran Stark", "Robb Stark", "Joffrey Baratheon", "Tyrion Lannister", "Jeor Mormont", "Alliser Thorne", "Jory Cassel", "Barristan Selmy", "Rodrik Cassel", "Benjen Stark", "Yoren", "Renly Baratheon", "Maester Aemon", "Syrio Forel", "Grenn", "Irri", "Pypar", "Rakharo", "Lancel Lannister" ], "_id": "5cc0743604e71a0010b85729", "director": "Tim Van Patten", "airDate": "2011-04-24T04:00:00.000Z", "totalNr": 2, "season": 1, "nr": 2, "name": "The Kingsroad", "predecessor": "Winter Is Coming", "successor": "Lord Snow", "createdAt": "2019-04-24T14:35:34.594Z", "updatedAt": "2019-04-24T14:35:34.594Z", "__v": 0 },
  2. A list of all songs with "Love" in the title. http://api.napster.com/v2.2/search/verbose?apikey=YTkxZTRhNzAtODdlNy00ZjMzLTg0MWItOTc0NmZmNjU4Yzk4&query=love { "type": "album", "id": "alb.10882884", "upc": "696998524323", "shortcut": "sade/love-deluxe-epic", "href": "https://api.napster.com/v2.2/albums/alb.10882884", "name": "Love Deluxe", "released": "2000-11-21T08:00:00.000Z", "originallyReleased": "1992-10-20T07:00:00.000Z", "label": "Epic", "copyright": "1992 Sony Music Entertainment(UK)Ltd.", "tags": [], "discCount": 1, "trackCount": 9, "isExplicit": false, "isSingle": false, "accountPartner": "Sony", "artistName": "Sade", "isAvailableInHiRes": false, "contributingArtists": { "primaryArtist": "art.2152" },
  3. All information about Petyr Baelish from the Game of Thrones books https://anapioficeandfire.com/api/characters/?name=petyr%20baelish [ { "url": "https://anapioficeandfire.com/api/characters/823", "name": "Petyr Baelish", "gender": "Male", "culture": "Valemen", "born": "In 268 AC, at the Fingers", "died": "", "titles": [ "Master of coin (formerly)", "Lord Paramount of the Trident", "Lord of Harrenhal", "Lord Protector of the Vale" ],
  4. All the movies Leonardo Dicaprio has acted in

Part Two

Status Code Scavenger Hunt!

Use Postman to find each of the following HTTP codes:

  1. 200
  2. 301
  3. 400
  4. 401
  5. 403
  6. 404
  7. 418
  8. 500

For each of the questions below, write:

  1. The website which generated the HTTP status code
  2. A description of what the status code means
  3. If an app you were writing encountered this status code, what would you do (if anything) to resolve any issues?

For reference, see:

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes (Links to an external site.) https://http.cat

pursuit-core-introduction-to-networking-and-apis-lab's People

Contributors

benstone1 avatar davidlawrencer avatar coreyladovsky avatar marvinthompson-code avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.