Skip to content

Instantly share code, notes, and snippets.

#%RAML 1.0
title: OpenWeatherMap API
version: 2.5
baseUri: https://api.openweathermap.org/data/2.5/
baseUriParameters: {}
documentation:
- title: OpenWeatherMap API
content: 'Get current weather, daily forecast for 16 days, and 3-hourly forecast 5 days for your city. Helpful stats, graphics, and this day in history charts are available for your reference. Interactive maps show precipitation, clouds, pressure, wind around your location stations. Data is available in JSON, XML, or HTML format. **Note**: This sample Swagger file covers the `current` endpoint only from the OpenWeatherMap API. <br/><br/> **Note**: All parameters are optional, but you must select at least one parameter. Calling the API by city ID (using the `id` parameter) will provide the most precise location results.'
securitySchemes:
auth:
@kenngyc
kenngyc / field-jsonapi-customers.json
Created June 26, 2018 11:29
Example defined fieldset retrieve
{
"data": [
{
"type": "customers",
"id": "1",
"attributes": {
"first_name": "Fancie",
"last_name": "Yglesia",
"account_no": "3559891215235202",
"balance": "256.34",
@kenngyc
kenngyc / jsonapi-customers.json
Created June 26, 2018 11:21
Example JSON-API Spec response
{
"data": [
{
"type": "customers",
"id": "1",
"attributes": {
"first_name": "Fancie",
"last_name": "Yglesia",
"email": "[email protected]",
"gender": "Female",
@kenngyc
kenngyc / customer_data.json
Created June 26, 2018 11:13
Mock customer data
[{
"id": 1,
"first_name": "Fancie",
"last_name": "Yglesia",
"email": "[email protected]",
"gender": "Female",
"ip_address": "115.156.83.78",
"account_no": "3559891215235202",
"balance": "256.34",
"country_code": "BR"
@kenngyc
kenngyc / gist:331f49f81a2dcb87f3ad
Created September 3, 2014 14:38
Kibana Dashboard for Apache Logs with Fluentd + ElasticSearch
{
"title": "Apache logs",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,