bkeys818 / testAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Used as a Fake API for Testing

Top Obj Format

{
    "version": "0.0.0", // major.minor.patch
    "data": [/*place*/]
}

Place format

{
    "title": "",  *required
    "desc": "",
    "id": "",  *required
    "lat": 0,  *required
    "lng": 0,  *required
    "type": "",
    "term": "",
    "url": "",
    "address ": {
        "street": "",
        "city": "",
        "state": "",
        "zip": 0,
        "country": ""
    },
    "offices": [
        {
        "name": "",
        "roomNumber": 0,
        "schedule": {/*schedule*/},
        "phone": 0,
        "email": "",
        "url": ""
        }
    ],
    "restrooms": [
        {
        "roomNumber": 0,
        "location": "",
        "sex": "" // male, female, both, unisex, family
        }
    ]
}

Schedule

{
    "days": [
        {
            "day": ["all"],
            "open": [7, 0],
            "close": [20, 30]
        }
    ]
}

Additional objects for specific building types

Dining Hall

"restaurants": [
    {
    "names": "",
    "schedule": {/*schedule*/}
    }
]

About