This is a REST and Graphql API on Call of Duty Modern WarFare 2.The API is deployed on Render
BASE_URL
https://modern-warfare.onrender.comEndpoint for fetching Vehicles.
https://modern-warfare.onrender.com/vehiclesEndpoint to fetching operators.
https://modern-warfare.onrender.com/operatorsEndpoint to fetching missions.
https://modern-warfare.onrender.com/missionsYou can also pass an id to your missions url to fetch a specific mission
Endpoint for fetching maps
https://modern-warfare.onrender.com/mapsThis endpoint also supports pagination using the will_paginate gem to query maps using the page parameter,it is also possible to query maps using the per_page parameter
Example while using pagination https://modern-warfare.onrender.com/maps?page=1
GRAPH QL
The url to query and retrieve data is
https://modern-warfare.onrender.com/graphqlExample of a query
query {
guns {
name
image
description
real_life
}
}