Guest User

place.json

a guest
Mar 16th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "name": "place",
  3.   "base": "PersistedModel",
  4.   "properties": {
  5.     "name": {
  6.       "type": "string",
  7.       "required": true
  8.     },
  9.     "adress": {
  10.       "type": {
  11.         "streetAddress": "string",
  12.         "postalCode": "string",
  13.         "addressLocality": "string"
  14.       },
  15.       "required": true
  16.     },
  17.     "telephone": {
  18.       "type": "string",
  19.       "required": true
  20.     },
  21.     "faxNumber": {
  22.       "type": "string"
  23.     },
  24.     "geo": {
  25.       "type": {
  26.         "latitude": "string",
  27.         "longitude": "string"
  28.       },
  29.       "required": true
  30.     },
  31.     "openingHoursSpecification": {
  32.       "type": [
  33.         {
  34.           "day": "string",
  35.           "morningOpening": "string",
  36.           "morningClosing": "string",
  37.           "afternoonOpening": "string",
  38.           "afternoonClosing": "string"
  39.         }
  40.       ],
  41.       "required": true
  42.     }
  43.   },
  44.   "validations": [],
  45.   "relations": {
  46.     "categorie": {
  47.       "type": "belongsTo",
  48.       "model": "categorie",
  49.       "foreignKey": ""
  50.     }
  51.   },
  52.   "acls": [],
  53.   "methods": []
  54. }
Advertisement
Add Comment
Please, Sign In to add comment