- What is it?
GraphQL is a query language for your API. You can send a single query to the GraphQL server that includes the concrete data requirements and the server will respond with a JSON object where these requirements are fulfilled. GraphQL isn't tied to any specific database or storage engine and is instead backed by your existing code and data, so you can define how you want to get what data. In short, it creates a single endpoint responsible for accepting queries, rather than relying on the REST API approach of having separate endpoints for each service. In GraphQL, you don’t use URLs to identify what is available in the API. Instead, you use a GraphQL schema.
- How can it be beneficial over RESTful CRUD endpoints?
GraphQL can be beneficial if you have rapidly changing data and you want to make requests that may have required multiple enpoints while using a REST API. You can retrieve only the data you need in a pre-determined format, which makes working with BE and FE more stra
- Amadeus - starts out free
- Flight Inspiration Search - find based on inspiration!
- Easy to get a token
- Very easy to test in the page! Test page
- OpenSky - real-time flight and aircraft info
api.openweathermap.org/data/2.5/forecast/
for 5 day / 3 hour forecast data by city was straightforward, but there were some more complicated calls
I recently came across a bug when working on a team project that uses Google OmniAuth for authentication. A few different people had the same code on our local machines, and only one person was receiving an error, which was the following Google OAuth error:
Failures:
1) welcome page As an authenticated users user logs in using Google OAuth
Failure/Error: click_link 'Log In with Google'
ActionController::RoutingError:
uninitialized constant AuthController