{"swagger":"2.0","basePath":"","info":{"title":"OpenChurch API","version":"0.0.3","description":"An open data initiative."},"paths":{"\/api\/calendars":{"get":{"tags":["Calendar"],"operationId":"getCalendarCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Calendar resources.","responses":{"200":{"description":"Calendar collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Calendar"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Calendar"],"operationId":"postCalendarCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Calendar resource.","responses":{"201":{"description":"Calendar resource created","schema":{"$ref":"#\/definitions\/Calendar"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"calendar","in":"body","description":"The new Calendar resource","schema":{"$ref":"#\/definitions\/Calendar"}}]}},"\/api\/calendars\/{id}":{"get":{"tags":["Calendar"],"operationId":"getCalendarItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Calendar resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Calendar resource response","schema":{"$ref":"#\/definitions\/Calendar"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Calendar"],"operationId":"deleteCalendarItem","summary":"Removes the Calendar resource.","responses":{"204":{"description":"Calendar resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Calendar"],"operationId":"putCalendarItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Calendar resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"calendar","in":"body","description":"The updated Calendar resource","schema":{"$ref":"#\/definitions\/Calendar"}}],"responses":{"200":{"description":"Calendar resource updated","schema":{"$ref":"#\/definitions\/Calendar"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/churches":{"get":{"tags":["Church"],"operationId":"getChurchCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Church resources.","responses":{"200":{"description":"Church collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Church-place_church"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Church"],"operationId":"postChurchCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Church resource.","responses":{"201":{"description":"Church resource created","schema":{"$ref":"#\/definitions\/Church-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"church","in":"body","description":"The new Church resource","schema":{"$ref":"#\/definitions\/Church"}}]}},"\/api\/churches\/{id}":{"get":{"tags":["Church"],"operationId":"getChurchItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Church resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Church resource response","schema":{"$ref":"#\/definitions\/Church-place_church"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Church"],"operationId":"deleteChurchItem","summary":"Removes the Church resource.","responses":{"204":{"description":"Church resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Church"],"operationId":"putChurchItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Church resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"church","in":"body","description":"The updated Church resource","schema":{"$ref":"#\/definitions\/Church"}}],"responses":{"200":{"description":"Church resource updated","schema":{"$ref":"#\/definitions\/Church-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/dioceses":{"get":{"tags":["Diocese"],"operationId":"getDioceseCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Diocese resources.","responses":{"200":{"description":"Diocese collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Diocese"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Diocese"],"operationId":"postDioceseCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Diocese resource.","responses":{"201":{"description":"Diocese resource created","schema":{"$ref":"#\/definitions\/Diocese"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"diocese","in":"body","description":"The new Diocese resource","schema":{"$ref":"#\/definitions\/Diocese"}}]}},"\/api\/dioceses\/{id}":{"get":{"tags":["Diocese"],"operationId":"getDioceseItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Diocese resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Diocese resource response","schema":{"$ref":"#\/definitions\/Diocese"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Diocese"],"operationId":"deleteDioceseItem","summary":"Removes the Diocese resource.","responses":{"204":{"description":"Diocese resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Diocese"],"operationId":"putDioceseItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Diocese resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"diocese","in":"body","description":"The updated Diocese resource","schema":{"$ref":"#\/definitions\/Diocese"}}],"responses":{"200":{"description":"Diocese resource updated","schema":{"$ref":"#\/definitions\/Diocese"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/parishes":{"get":{"tags":["Parish"],"operationId":"getParishCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Parish resources.","responses":{"200":{"description":"Parish collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Parish"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Parish"],"operationId":"postParishCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Parish resource.","responses":{"201":{"description":"Parish resource created","schema":{"$ref":"#\/definitions\/Parish"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"parish","in":"body","description":"The new Parish resource","schema":{"$ref":"#\/definitions\/Parish"}}]}},"\/api\/parishes\/{id}":{"get":{"tags":["Parish"],"operationId":"getParishItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Parish resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Parish resource response","schema":{"$ref":"#\/definitions\/Parish"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Parish"],"operationId":"deleteParishItem","summary":"Removes the Parish resource.","responses":{"204":{"description":"Parish resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Parish"],"operationId":"putParishItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Parish resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"parish","in":"body","description":"The updated Parish resource","schema":{"$ref":"#\/definitions\/Parish"}}],"responses":{"200":{"description":"Parish resource updated","schema":{"$ref":"#\/definitions\/Parish"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/photos":{"get":{"tags":["Photo"],"operationId":"getPhotoCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Photo resources.","responses":{"200":{"description":"Photo collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Photo"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Photo"],"operationId":"postPhotoCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Photo resource.","responses":{"201":{"description":"Photo resource created","schema":{"$ref":"#\/definitions\/Photo"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"photo","in":"body","description":"The new Photo resource","schema":{"$ref":"#\/definitions\/Photo"}}]}},"\/api\/photos\/{id}":{"get":{"tags":["Photo"],"operationId":"getPhotoItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Photo resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Photo resource response","schema":{"$ref":"#\/definitions\/Photo"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Photo"],"operationId":"deletePhotoItem","summary":"Removes the Photo resource.","responses":{"204":{"description":"Photo resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Photo"],"operationId":"putPhotoItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Photo resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"photo","in":"body","description":"The updated Photo resource","schema":{"$ref":"#\/definitions\/Photo"}}],"responses":{"200":{"description":"Photo resource updated","schema":{"$ref":"#\/definitions\/Photo"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/places":{"get":{"tags":["Place"],"operationId":"getPlaceCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of Place resources.","responses":{"200":{"description":"Place collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/Place-place_church"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["Place"],"operationId":"postPlaceCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a Place resource.","responses":{"201":{"description":"Place resource created","schema":{"$ref":"#\/definitions\/Place-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"place","in":"body","description":"The new Place resource","schema":{"$ref":"#\/definitions\/Place"}}]}},"\/api\/places\/{id}":{"get":{"tags":["Place"],"operationId":"getPlaceItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a Place resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"Place resource response","schema":{"$ref":"#\/definitions\/Place-place_church"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["Place"],"operationId":"deletePlaceItem","summary":"Removes the Place resource.","responses":{"204":{"description":"Place resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["Place"],"operationId":"putPlaceItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the Place resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"place","in":"body","description":"The updated Place resource","schema":{"$ref":"#\/definitions\/Place"}}],"responses":{"200":{"description":"Place resource updated","schema":{"$ref":"#\/definitions\/Place-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}},"\/api\/wikidata_churches":{"get":{"tags":["WikidataChurch"],"operationId":"getWikidataChurchCollection","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves the collection of WikidataChurch resources.","responses":{"200":{"description":"WikidataChurch collection response","schema":{"type":"array","items":{"$ref":"#\/definitions\/WikidataChurch-place_church"}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","type":"integer"}]},"post":{"tags":["WikidataChurch"],"operationId":"postWikidataChurchCollection","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Creates a WikidataChurch resource.","responses":{"201":{"description":"WikidataChurch resource created","schema":{"$ref":"#\/definitions\/WikidataChurch-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}},"parameters":[{"name":"wikidataChurch","in":"body","description":"The new WikidataChurch resource","schema":{"$ref":"#\/definitions\/WikidataChurch"}}]}},"\/api\/wikidata_churches\/{id}":{"get":{"tags":["WikidataChurch"],"operationId":"getWikidataChurchItem","produces":["application\/ld+json","application\/json","text\/html"],"summary":"Retrieves a WikidataChurch resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"WikidataChurch resource response","schema":{"$ref":"#\/definitions\/WikidataChurch-place_church"}},"404":{"description":"Resource not found"}}},"delete":{"tags":["WikidataChurch"],"operationId":"deleteWikidataChurchItem","summary":"Removes the WikidataChurch resource.","responses":{"204":{"description":"WikidataChurch resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"type":"string"}]},"put":{"tags":["WikidataChurch"],"operationId":"putWikidataChurchItem","consumes":["application\/ld+json","application\/json","text\/html"],"produces":["application\/ld+json","application\/json","text\/html"],"summary":"Replaces the WikidataChurch resource.","parameters":[{"name":"id","in":"path","required":true,"type":"string"},{"name":"wikidataChurch","in":"body","description":"The updated WikidataChurch resource","schema":{"$ref":"#\/definitions\/WikidataChurch"}}],"responses":{"200":{"description":"WikidataChurch resource updated","schema":{"$ref":"#\/definitions\/WikidataChurch-place_church"}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"},"422":{"description":"Unprocessable entity"}}}}},"definitions":{"Calendar":{"type":"object","description":"The most generic type of item.","externalDocs":{"url":"http:\/\/schema.org\/Thing"},"properties":{"id":{"readOnly":true,"type":"integer"},"church":{"type":"string","format":"iri-reference"},"calendarUrl":{"type":"string"},"rite":{"type":"string"},"lang":{"type":"string"},"type":{"type":"string"},"hozanaUserId":{"type":"integer"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"description":"?   * @ORM\\Column(type=\"datetime\")","externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"}},"required":["church","calendarUrl","lang","hozanaUserId","createdAt","updatedAt"]},"Church":{"type":"object","description":"The most generic type of item.","properties":{"id":{"readOnly":true,"type":"integer"},"calendars":{"type":"array","items":{"type":"string","format":"iri-reference"}},"theodiaChurch":{"$ref":"#\/definitions\/TheodiaChurch"},"wikidataChurch":{"$ref":"#\/definitions\/WikidataChurch"},"theodiaChurchId":{"$ref":"#\/definitions\/TheodiaChurch"},"massesUrl":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"}}},"Church-place_church":{"type":"object","description":"The most generic type of item.","properties":{"id":{"readOnly":true,"type":"integer"},"wikidataChurch":{"$ref":"#\/definitions\/WikidataChurch-place_church"},"massesUrl":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"calendars":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Diocese":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"integer"},"name":{"type":"string"},"country":{"type":"string","format":"iri-reference"},"website":{"type":"string"},"parishes":{"type":"array","items":{"type":"string","format":"iri-reference"}},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"gcatholicId":{"type":"string"},"wikidataChurches":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["createdAt","updatedAt"]},"Parish":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"integer"},"name":{"type":"string"},"diocese":{"type":"string","format":"iri-reference"},"country":{"type":"string","format":"iri-reference"},"messesinfoId":{"type":"string"},"website":{"type":"string"},"zipCode":{"type":"string"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"wikidataChurches":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["createdAt","updatedAt"]},"Photo":{"type":"object","description":"The most generic type of item.","externalDocs":{"url":"http:\/\/schema.org\/Thing"},"properties":{"id":{"readOnly":true,"type":"integer"},"wikidataChurch":{"type":"string","format":"iri-reference"},"theodiaChurch":{"$ref":"#\/definitions\/TheodiaChurch"},"url":{"description":"URL of the item","externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"}},"required":["createdAt","updatedAt"]},"Place":{"type":"object","description":"The most generic type of item.","properties":{"children":{"type":"array","items":{"$ref":"#\/definitions\/Place"}},"id":{"readOnly":true,"type":"integer"},"parent":{"$ref":"#\/definitions\/Place"},"name":{"externalDocs":{"url":"http:\/\/schema.org\/name"},"type":"string"},"countryCode":{"type":"string"},"type":{"type":"string"},"wikidataChurches":{"type":"array","items":{"$ref":"#\/definitions\/WikidataChurch"}},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"dioceses":{"type":"array","items":{"$ref":"#\/definitions\/Diocese"}},"parishes":{"type":"array","items":{"$ref":"#\/definitions\/Parish"}}},"required":["createdAt","updatedAt"]},"Place-place_church":{"type":"object","description":"The most generic type of item.","properties":{"id":{"readOnly":true,"type":"integer"},"name":{"externalDocs":{"url":"http:\/\/schema.org\/name"},"type":"string"},"countryCode":{"type":"string"},"type":{"type":"string"}}},"TheodiaChurch":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"string","format":"iri-reference"}},"churches":{"type":"array","items":{"type":"string","format":"iri-reference"}},"id":{"readOnly":true,"type":"integer"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"}},"required":["createdAt","updatedAt"]},"WikidataChurch":{"type":"object","description":"The most generic type of item.","properties":{"churches":{"type":"array","items":{"$ref":"#\/definitions\/Church"}},"photos":{"type":"array","items":{"type":"string","format":"iri-reference"}},"pin":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"name":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"place":{"$ref":"#\/definitions\/Place"},"address":{"type":"string"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"parish":{"$ref":"#\/definitions\/Parish"},"diocese":{"$ref":"#\/definitions\/Diocese"},"messesinfoId":{"type":"string"}},"required":["latitude","longitude","place","address","createdAt","updatedAt"]},"WikidataChurch-place_church":{"type":"object","description":"The most generic type of item.","properties":{"id":{"readOnly":true,"type":"integer"},"name":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"place":{"$ref":"#\/definitions\/Place-place_church"},"address":{"type":"string"},"churches":{"type":"array","items":{"$ref":"#\/definitions\/Church-place_church"}},"photos":{"type":"array","items":{"type":"string","format":"iri-reference"}},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"pin":{"readOnly":true,"type":"string"}},"required":["latitude","longitude","place","address","updatedAt"]}}}