{
  "swagger": "2.0",
  "info": {
    "title": "OpenPhoto API",
    "description": "Official API for OpenPhoto provided by Info Lounge Corporation",
    "version": "1.0.0"
  },
  "host": "api.openphoto.app",
  "basePath": "/api/lod",
  "schemes": [
    "https"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/photos": {
      "get": {
        "summary": "JSON-LDで写真の一覧を取得",
        "description": "JSON-LDで写真の一覧を取得",
        "operationId": "photos",
        "parameters": [
          {
            "name": "decades[]",
            "in": "query",
            "description": "The decades of photos. Example: 2010",
            "type": "number"
          },
          {
            "name": "tags[]",
            "in": "query",
            "description": "The tag ids of photos. Example: 12",
            "type": "number"
          },
          {
            "name": "words",
            "in": "query",
            "description": "The words to search photos. Example: 花",
            "type": "string"
          },
          {
            "name": "related",
            "in": "query",
            "description": "The id of related photos. Example: 123",
            "type": "number"
          },
          {
            "name": "client",
            "in": "query",
            "description": "The slug of clients. Example: sample",
            "type": "string"
          },
          {
            "name": "from",
            "in": "query",
            "description": "The year of photos were taken. Example: 2020",
            "type": "number"
          },
          {
            "name": "lat",
            "in": "query",
            "description": "The latitude of a point. Example: 35.5467985",
            "type": "number",
            "format": "double"
          },
          {
            "name": "lng",
            "in": "query",
            "description": "The longitude of a point. Example: 139.5735892",
            "type": "number",
            "format": "double"
          },
          {
            "name": "distance",
            "in": "query",
            "description": "The distance(meter) from latitude and longitude. Default: 30, Example: 100",
            "type": "number"
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "The order by of sort. Example: shot_at",
            "type": "string"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The numbers of items to return. Default: 100",
            "type": "string"
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The number of items to skip before starting to collect the result set",
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response",
            "schema": {
              "type": "object",
              "properties": {
                "@context": {
                  "properties": {
                    "name": {
                      "type": "string",
                      "example": "http://schema.org/name"
                    },
                    "description": {
                      "type": "string",
                      "example": "http://schema.org/description"
                    },
                    "creator": {
                      "properties": {
                        "@id": {
                          "type": "string",
                          "example": "http://schema.org/creator"
                        },
                        "@type": {
                          "type": "string",
                          "example": "http://schema.org/person"
                        }
                      }
                    },
                    "dateCreated": {
                      "type": "string",
                      "example": "http://schema.org/dateCreated"
                    },
                    "creativeWorkStatus": {
                      "type": "string",
                      "example": "http://schema.org/creativeWorkStatus"
                    },
                    "license": {
                      "type": "string",
                      "example": "http://schema.org/license"
                    },
                    "thumbnailUrl": {
                      "type": "string",
                      "example": "http://schema.org/thumbnailUrl"
                    },
                    "contentUrl": {
                      "type": "string",
                      "example": "http://schema.org/contentUrl"
                    },
                    "width": {
                      "type": "string",
                      "example": "http://schema.org/width"
                    },
                    "height": {
                      "type": "string",
                      "example": "http://schema.org/height"
                    },
                    "url": {
                      "type": "string",
                      "example": "http://schema.org/url"
                    },
                    "geo": {
                      "properties": {
                        "@id": {
                          "type": "string",
                          "example": "http://schema.org/geo"
                        },
                        "@type": {
                          "type": "string",
                          "example": "http://schema.org/GeoCoordinates"
                        }
                      }
                    },
                    "latitude": {
                      "properties": {
                        "@id": {
                          "type": "string",
                          "example": "http://schema.org/latitude"
                        },
                        "@type": {
                          "type": "string",
                          "example": "xsd:float"
                        }
                      }
                    },
                    "longitude": {
                      "properties": {
                        "@id": {
                          "type": "string",
                          "example": "http://schema.org/longitude"
                        },
                        "@type": {
                          "type": "string",
                          "example": "xsd:float"
                        }
                      }
                    },
                    "contentLocation": {
                      "properties": {
                        "@id": {
                          "type": "string",
                          "example": "http://schema.org/contentLocation"
                        },
                        "@type": {
                          "type": "string",
                          "example": "http://schema.org/place"
                        }
                      }
                    },
                    "locationAccuracy": {
                      "type": "string",
                      "example": "http://openphoto.jp/ns/locationAccuracy"
                    },
                    "shotAtAccuracy": {
                      "type": "string",
                      "example": "http://openphoto.jp/ns/shotAtAccuracy"
                    },
                    "xsd": {
                      "type": "string",
                      "example": "http://www.w3.org/2001/XMLSchema#"
                    }
                  }
                },
                "@graph": {
                  "items": {
                    "properties": {
                      "@id": {
                        "type": "string",
                        "example": "https://openphoto.app/1061"
                      },
                      "@type": {
                        "type": "string",
                        "example": "http://schema.org/ImageObject"
                      },
                      "name": {
                        "type": "string",
                        "example": "（日進市）西部福祉会館"
                      },
                      "description": {
                        "type": "string",
                        "example": "高齢者のレクリエーション活動のための「老人福祉センター」と、児童の健全育成のための「児童館」との複合施設です。高齢者向けの健康増進事業や介護予防事業があり、児童などに対しては季節に合わせたきめ細かい月例行事も実施しています。 鉄骨造平屋建て"
                      },
                      "creator": {
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "日進市"
                          }
                        }
                      },
                      "dateCreated": {
                        "type": "string",
                        "example": "2010-02-07 10:10:00"
                      },
                      "creativeWorkStatus": {
                        "type": "string",
                        "example": "published"
                      },
                      "license": {
                        "type": "string",
                        "example": "https://creativecommons.org/licenses/by/4.0/deed.ja"
                      },
                      "thumbnailUrl": {
                        "type": "string",
                        "example": "https://storage.googleapis.com/storage.openphoto.jp/photos/thumbnail_fdy1zLezsh8kJpz0MNSv5HUYIYnGuKdxVg17RTeR.jpeg"
                      },
                      "contentUrl": {
                        "type": "string",
                        "example": "https://storage.googleapis.com/storage.openphoto.jp/photos/thumbnail_fdy1zLezsh8kJpz0MNSv5HUYIYnGuKdxVg17RTeR.jpeg"
                      },
                      "width": {
                        "type": "number",
                        "example": 4288
                      },
                      "height": {
                        "type": "number",
                        "example": 2848
                      },
                      "url": {
                        "type": "string",
                        "example": "https://openphoto.app/c/nisshin/1061"
                      },
                      "keywords": {
                        "type": "string",
                        "example": "避難所, 施設, 子育て"
                      },
                      "contentLocation": {
                        "properties": {
                          "@type": {
                            "type": "string",
                            "example": "Place"
                          },
                          "name": {
                            "type": "string",
                            "example": "日進市、南部福祉会館"
                          },
                          "geo": {
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "format": "double",
                                "example": 35.123208
                              },
                              "longitude": {
                                "type": "number",
                                "format": "double",
                                "example": 137.045064
                              },
                              "locationAccuracy": {
                                "type": "string",
                                "example": "unknown"
                              }
                            }
                          }
                        }
                      },
                      "shotAtAccuracy": {
                        "type": "string",
                        "example": "unknown"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          }
        }
      }
    }
  }
}