---
# System prepended metadata

title: TD Web Service

---

# TD Web Service


## :memo: Anass DAEF (anassdaef@gmail.com)

### Pokémons

#### a - request : 
```
query
        {
          pokemons(first: 10) {
            types,
            id,
            image,
            name,
            number 
          }
        }
        
```
#### a - response : 
```
{
  "data": {
    "pokemons": [
      {
        "types": [
          "Grass",
          "Poison"
        ],
        "id": "UG9rZW1vbjowMDE=",
        "image": "https://img.pokemondb.net/artwork/bulbasaur.jpg",
        "name": "Bulbasaur",
        "number": "001"
      },
      {
        "types": [
          "Grass",
          "Poison"
        ],
        "id": "UG9rZW1vbjowMDI=",
        "image": "https://img.pokemondb.net/artwork/ivysaur.jpg",
        "name": "Ivysaur",
        "number": "002"
      },
      {
        "types": [
          "Grass",
          "Poison"
        ],
        "id": "UG9rZW1vbjowMDM=",
        "image": "https://img.pokemondb.net/artwork/venusaur.jpg",
        "name": "Venusaur",
        "number": "003"
      },
      {
        "types": [
          "Fire"
        ],
        "id": "UG9rZW1vbjowMDQ=",
        "image": "https://img.pokemondb.net/artwork/charmander.jpg",
        "name": "Charmander",
        "number": "004"
      },
      {
        "types": [
          "Fire"
        ],
        "id": "UG9rZW1vbjowMDU=",
        "image": "https://img.pokemondb.net/artwork/charmeleon.jpg",
        "name": "Charmeleon",
        "number": "005"
      },
      {
        "types": [
          "Fire",
          "Flying"
        ],
        "id": "UG9rZW1vbjowMDY=",
        "image": "https://img.pokemondb.net/artwork/charizard.jpg",
        "name": "Charizard",
        "number": "006"
      },
      {
        "types": [
          "Water"
        ],
        "id": "UG9rZW1vbjowMDc=",
        "image": "https://img.pokemondb.net/artwork/squirtle.jpg",
        "name": "Squirtle",
        "number": "007"
      },
      {
        "types": [
          "Water"
        ],
        "id": "UG9rZW1vbjowMDg=",
        "image": "https://img.pokemondb.net/artwork/wartortle.jpg",
        "name": "Wartortle",
        "number": "008"
      },
      {
        "types": [
          "Water"
        ],
        "id": "UG9rZW1vbjowMDk=",
        "image": "https://img.pokemondb.net/artwork/blastoise.jpg",
        "name": "Blastoise",
        "number": "009"
      },
      {
        "types": [
          "Bug"
        ],
        "id": "UG9rZW1vbjowMTA=",
        "image": "https://img.pokemondb.net/artwork/caterpie.jpg",
        "name": "Caterpie",
        "number": "010"
      }
    ]
  }
}

```
#### b - request : 
```

```
#### b - response : 
```

```

### Rick & Morty

#### a - request : 

```
query{
  characters(filter: { name: "Pickle Rick" }) {
            results {
              name,
              status,
              gender,
              origin{name},
              image,
              episode{
                id,
                name,
                air_date
              }
            }
          }
}

```

#### a - response  : 
```
{
  "data": {
    "characters": {
      "results": [
        {
          "name": "Pickle Rick",
          "status": "Alive",
          "gender": "Male",
          "origin": {
            "name": "Earth (C-137)"
          },
          "image": "https://rickandmortyapi.com/api/character/avatar/265.jpeg",
          "episode": [
            {
              "id": "24",
              "name": "Pickle Rick",
              "air_date": "August 6, 2017"
            }
          ]
        }
      ]
    }
  }
}
```
#### b - request : 
```
query{
  locations (filter: { name : "Citadel of Ricks" }){
    results{
      id,
      name,
      type,
      dimension,
      residents{name}
    }
  }
}
```

#### b - response : 
```
{
  "data": {
    "locations": {
      "results": [
        {
          "id": "3",
          "name": "Citadel of Ricks",
          "type": "Space station",
          "dimension": "unknown",
          "residents": [
            {
              "name": "Adjudicator Rick"
            },
            {
              "name": "Alien Morty"
            },
            {
              "name": "Alien Rick"
            },
            {
              "name": "Antenna Morty"
            },
            {
              "name": "Aqua Morty"
            },
            {
              "name": "Aqua Rick"
            },
            {
              "name": "Artist Morty"
            },
            {
              "name": "Big Head Morty"
            },
            {
              "name": "Big Morty"
            },
            {
              "name": "Body Guard Morty"
            },
            {
              "name": "Black Rick"
            },
            {
              "name": "Blue Shirt Morty"
            },
            {
              "name": "Bootleg Portal Chemist Rick"
            },
            {
              "name": "Campaign Manager Morty"
            },
            {
              "name": "Commander Rick"
            },
            {
              "name": "Cool Rick"
            },
            {
              "name": "Cop Morty"
            },
            {
              "name": "Cop Rick"
            },
            {
              "name": "Cowboy Morty"
            },
            {
              "name": "Cowboy Rick"
            },
            {
              "name": "Cyclops Morty"
            },
            {
              "name": "Cyclops Rick"
            },
            {
              "name": "Dipper and Mabel Mortys"
            },
            {
              "name": "Evil Morty"
            },
            {
              "name": "Evil Rick"
            },
            {
              "name": "Fat Morty"
            },
            {
              "name": "Garment District Rick"
            },
            {
              "name": "Glasses Morty"
            },
            {
              "name": "Hammerhead Morty"
            },
            {
              "name": "Insurance Rick"
            },
            {
              "name": "Investigator Rick"
            },
            {
              "name": "Juggling Rick"
            },
            {
              "name": "Lawyer Morty"
            },
            {
              "name": "Lizard Morty"
            },
            {
              "name": "Long Sleeved Morty"
            },
            {
              "name": "Maximums Rickimus"
            },
            {
              "name": "Mega Fruit Farmer Rick"
            },
            {
              "name": "Morty Mart Manager Morty"
            },
            {
              "name": "Morty Rick"
            },
            {
              "name": "Mortytown Loco"
            },
            {
              "name": "Plumber Rick"
            },
            {
              "name": "Quantum Rick"
            },
            {
              "name": "Regional Manager Rick"
            },
            {
              "name": "Reverse Rick Outrage"
            },
            {
              "name": "Rick D. Sanchez III"
            },
            {
              "name": "Rick Guilt Rick"
            },
            {
              "name": "Rick Prime"
            },
            {
              "name": "Rick D-99"
            },
            {
              "name": "Rick D716"
            },
            {
              "name": "Rick D716-B"
            },
            {
              "name": "Rick D716-C"
            },
            {
              "name": "Rick J-22"
            },
            {
              "name": "Ricktiminus Sancheziminius"
            },
            {
              "name": "Riq IV"
            },
            {
              "name": "Robot Morty"
            },
            {
              "name": "Robot Rick"
            },
            {
              "name": "Simple Rick"
            },
            {
              "name": "Slick Morty"
            },
            {
              "name": "Slow Rick"
            },
            {
              "name": "Solicitor Rick"
            },
            {
              "name": "Teacher Rick"
            },
            {
              "name": "Tortured Morty"
            },
            {
              "name": "Trunk Morty"
            },
            {
              "name": "Wall Crawling Rick"
            },
            {
              "name": "Yellow Shirt Rick"
            },
            {
              "name": "Zeta Alpha Rick"
            },
            {
              "name": "Bearded Morty"
            },
            {
              "name": "Communication's Responsible Rick"
            },
            {
              "name": "Teleportation's Responsible Rick"
            },
            {
              "name": "SEAL Team Rick"
            },
            {
              "name": "SEAL Team Rick"
            },
            {
              "name": "SEAL Team Rick"
            },
            {
              "name": "SEAL Team Rick"
            },
            {
              "name": "Baby Rick"
            },
            {
              "name": "Bartender Morty"
            },
            {
              "name": "Dancer Cowboy Morty"
            },
            {
              "name": "Dancer Morty"
            },
            {
              "name": "Flower Morty"
            },
            {
              "name": "Hairdresser Rick"
            },
            {
              "name": "Journalist Rick"
            },
            {
              "name": "Private Sector Rick"
            },
            {
              "name": "Purple Morty"
            },
            {
              "name": "Retired General Rick"
            },
            {
              "name": "Secret Service Rick"
            },
            {
              "name": "Steve Jobs Rick"
            },
            {
              "name": "Sheik Rick"
            },
            {
              "name": "Modern Rick"
            },
            {
              "name": "Tan Rick"
            },
            {
              "name": "Visor Rick"
            },
            {
              "name": "Colonial Rick"
            },
            {
              "name": "P-Coat Rick"
            }
          ]
        }
      ]
    }
  }
}
```

#### d - request : 
```
query{
  locations (filter: { dimension : "Dimension C-137" }){
    results{
      id,
      name,
      type,
      dimension
    }
  }
}
```

#### d - response : 
```
{
  "data": {
    "locations": {
      "results": [
        {
          "id": "1",
          "name": "Earth (C-137)",
          "type": "Planet",
          "dimension": "Dimension C-137"
        },
        {
          "id": "5",
          "name": "Anatomy Park",
          "type": "Microverse",
          "dimension": "Dimension C-137"
        },
        {
          "id": "18",
          "name": "Mr. Goldenfold's dream",
          "type": "Dream",
          "dimension": "Dimension C-137"
        },
        {
          "id": "46",
          "name": "Zigerion's Base",
          "type": "Space station",
          "dimension": "Dimension C-137"
        },
        {
          "id": "70",
          "name": "Snuffles' Dream",
          "type": "Dream",
          "dimension": "Dimension C-137"
        }
      ]
    }
  }
}
```
### Space X 

#### a - request : 
```
{
  ships(limit: 3) {
    id
    image
    active
    attempted_landings
    type
  }
}
```
#### a - response : 
```
{
  "data": {
    "ships": [
      {
        "id": "GOMSTREE",
        "image": "https://i.imgur.com/MtEgYbY.jpg",
        "active": true,
        "attempted_landings": null,
        "type": "High Speed Craft"
      },
      {
        "id": "GOPURSUIT",
        "image": "https://i.imgur.com/5w1ZWre.jpg",
        "active": false,
        "attempted_landings": null,
        "type": "Cargo"
      },
      {
        "id": "AMERICANCHAMPION",
        "image": "https://i.imgur.com/woCxpkj.jpg",
        "active": false,
        "attempted_landings": null,
        "type": "Tug"
      }
    ]
  }
}
```

#### b - request : 
```
{
  rockets(limit: 5) {
    name
    description
    diameter {
      meters
    }
    height {
      meters
    }
    mass {
      kg
    }
    wikipedia
  }
}
```

#### b - response 
```
{
  "data": {
    "rockets": [
      {
        "name": "Falcon 1",
        "description": "The Falcon 1 was an expendable launch system privately developed and manufactured by SpaceX during 2006-2009. On 28 September 2008, Falcon 1 became the first privately-developed liquid-fuel launch vehicle to go into orbit around the Earth.",
        "diameter": {
          "meters": 1.68
        },
        "height": {
          "meters": 22.25
        },
        "mass": {
          "kg": 30146
        },
        "wikipedia": "https://en.wikipedia.org/wiki/Falcon_1"
      },
      {
        "name": "Falcon 9",
        "description": "Falcon 9 is a two-stage rocket designed and manufactured by SpaceX for the reliable and safe transport of satellites and the Dragon spacecraft into orbit.",
        "diameter": {
          "meters": 3.7
        },
        "height": {
          "meters": 70
        },
        "mass": {
          "kg": 549054
        },
        "wikipedia": "https://en.wikipedia.org/wiki/Falcon_9"
      },
      {
        "name": "Falcon Heavy",
        "description": "With the ability to lift into orbit over 54 metric tons (119,000 lb)--a mass equivalent to a 737 jetliner loaded with passengers, crew, luggage and fuel--Falcon Heavy can lift more than twice the payload of the next closest operational vehicle, the Delta IV Heavy, at one-third the cost.",
        "diameter": {
          "meters": 12.2
        },
        "height": {
          "meters": 70
        },
        "mass": {
          "kg": 1420788
        },
        "wikipedia": "https://en.wikipedia.org/wiki/Falcon_Heavy"
      },
      {
        "name": "Starship",
        "description": "Starship and Super Heavy Rocket represent a fully reusable transportation system designed to service all Earth orbit needs as well as the Moon and Mars. This two-stage vehicle — composed of the Super Heavy rocket (booster) and Starship (ship) — will eventually replace Falcon 9, Falcon Heavy and Dragon.",
        "diameter": {
          "meters": 9
        },
        "height": {
          "meters": 118
        },
        "mass": {
          "kg": 2943000
        },
        "wikipedia": "https://en.wikipedia.org/wiki/SpaceX_Starship"
      }
    ]
  }
}
```
