Skip to content

Instantly share code, notes, and snippets.

@ChenLiZhan
Last active March 9, 2017 02:23
Show Gist options
  • Save ChenLiZhan/e977d146c51e7cac83a050978a84e92c to your computer and use it in GitHub Desktop.
Save ChenLiZhan/e977d146c51e7cac83a050978a84e92c to your computer and use it in GitHub Desktop.
Phase.1 検索一覧APIs & Responses

GET /api/vXXX/photos

  • 使えるquery params:

    1. q (free word)
    2. tags (tags list)
    3. equipments (equipments list)
    4. hours (hours list)
    5. months (months list)
    6. sort (sort type, i.e. date or popularity)
    7. lat (latitude)
    8. long (longitude)
    9. page (page number)
  • レスポンス

{
  "data": [{
    "id": "photo123",
    "photoUserLikeId": "photouserlike123",
    "user": {
      "id": "user123",
      "lastName": "",
      "firstName": "立展",
      "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
    },
    "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4",
    "story": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum a cumque, repellat nisi, consectetur explicabo ratione et laborum labore expedita voluptates? Nam ducimus, nostrum iste sequi in, aperiam ratione rerum.",
    "timeUpload": "Mon Mar 06 2017 14:32:53 GMT+0900 (JST)",
    "latitude": "51.5033640",
    "longitude": "-0.1276250",
    "exif": {
      "FILE": {
        "FileName": "imageExif1.jpg",
        "FileDateTime": "1434704705",
        "FileSize": "62411",
        "FileType": "2",
        "MimeType": "image/jpeg",
        "SectionsFound": "ANYTAG, IFD0, THUMBNAIL, EXIF, GPS, INTEROP"
      },
      "COMPUTED": {
        "html": "width=\"500\" height=\"375\"",
        "Height": "375",
        "Width": "500",
        "IsColor": "1",
        "ByteOrderMotorola": "0",
        "ApertureFNumber": "f/5.9",
        "UserComment": "",
        "UserCommentEncoding": "UNDEFINED",
        "Thumbnail.FileType": "2",
        "Thumbnail.MimeType": "image/jpeg"
      },
      "IFD0": {
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "YCbCrPositioning": "2",
        "ExifIFDPointer": "284",
        "GPSIFDPointer": "13254",
        "UndefinedTag:0xC4A5": "PrintIM\u00000300\u0000\u0000\u0002\u0000\u0002\u0000\u0001\u0000\u0000\u0000\u0001\u0001\u0001"
      },
      "THUMBNAIL": {
        "Compression": "6",
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "JPEGInterchangeFormat": "13910",
        "JPEGInterchangeFormatLength": "8421",
        "YCbCrPositioning": "2"
      },
      "EXIF": {
        "ExposureTime": "1/250",
        "FNumber": "59/10",
        "ExposureProgram": "2",
        "ISOSpeedRatings": "100",
        "UndefinedTag:0x8830": "2",
        "UndefinedTag:0x8832": "100",
        "ExifVersion": "0230",
        "DateTimeOriginal": "2011:12:31 17:07:29",
        "DateTimeDigitized": "2011:12:31 17:07:29",
        "ComponentsConfiguration": "\u0001\u0002\u0003",
        "CompressedBitsPerPixel": "1/1",
        "BrightnessValue": "23234/2560",
        "ExposureBiasValue": "0/10",
        "MaxApertureValue": "55/16",
        "MeteringMode": "5",
        "LightSource": "0",
        "Flash": "16",
        "FocalLength": "6848/100",
        "MakerNote": "",
        "UserComment": "",
        "FlashPixVersion": "0100",
        "ColorSpace": "1",
        "ExifImageWidth": "3648",
        "ExifImageLength": "2736",
        "InteroperabilityOffset": "13632",
        "FileSource": "\u0003",
        "SceneType": "\u0001",
        "CustomRendered": "0",
        "ExposureMode": "0",
        "WhiteBalance": "0",
        "DigitalZoomRatio": "16/16",
        "SceneCaptureType": "0",
        "Contrast": "0",
        "Saturation": "0",
        "Sharpness": "0",
        "UndefinedTag:0xA432": [
          "428/100",
          "6848/100",
          "33/10",
          "59/10"
        ]
      },
      "GPS": {
        "GPSVersion": "\u0002\u0003",
        "GPSLatitudeRef": "N",
        "GPSLatitude": [
          "41/1",
          "53/1",
          "23487/1000"
        ],
        "GPSLongitudeRef": "E",
        "GPSLongitude": [
          "12/1",
          "29/1",
          "10362/1000"
        ],
        "GPSAltitudeRef": "",
        "GPSAltitude": "56819/1000",
        "GPSTimeStamp": [
          "15/1",
          "7/1",
          "33998/1000"
        ],
        "GPSStatus": "A",
        "GPSMeasureMode": "3",
        "GPSDOP": "13552/10000",
        "GPSSpeedRef": "K",
        "GPSSpeed": "955/1000",
        "GPSTrackRef": "T",
        "GPSTrack": "34442/100",
        "GPSImgDirectionRef": "M",
        "GPSImgDirection": "4775/100",
        "GPSMapDatum": "WGS-84",
        "GPSDateStamp": "2011:12:31",
        "GPSDifferential": "0"
      },
      "INTEROP": {
        "InterOperabilityIndex": "R98",
        "InterOperabilityVersion": "0100"
      }
    },
    "section": "photo",
    "title": "Lorem ipsum",
    "countLikes": 123,
    "countSaves": 39,
    "countComments": 3,
    "goWithUsers": [
      {
        "id": "userGowith123",
        "userGowith": {
          "id": "user456",
          "lastName": "山下",
          "firstName": "智久",
          "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
        }
      }, {
        "id": "userGowith456",
        "userGowith": {
          "id": "user789",
          "lastName": "石原",
          "firstName": "聰美",
          "avatarUrl": "http://imgs.niusnews.com/upload/imgs/default/15NovCh/1113B/5.jpg"
        }
      }
    ],
    "tags": [{
      "id": "tag123",
      "text": "風景"
    }, {
      "id": "tag456",
      "text": ""
    }],
    "location": {
      "id": "location123",
      "name": "日本",
      "administrativeArea1": "富山県",
      "administrativeArea1": "新川郡"
    },
    "equipments": [{
      "id": "equipment123",
      "text": "NIKON NIKON D7100",
      "type": "カメラ"
    }, {
      "id": "equipment456",
      "text": "NIKON AF-S",
      "type": "レンズ"
    }, {
      "id": "equipment789",
      "text": "NIKON TRI-3",
      "type": "三脚"
    }]
  }, {
    "id": "photo456",
    "photoUserLikeId": "photouserlike123",
    "user": {
      "id": "user123",
      "lastName": "",
      "firstName": "立展",
      "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
    },
    "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4",
    "story": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum a cumque, repellat nisi, consectetur explicabo ratione et laborum labore expedita voluptates? Nam ducimus, nostrum iste sequi in, aperiam ratione rerum.",
    "timeUpload": "Mon Mar 06 2017 14:32:53 GMT+0900 (JST)",
    "latitude": "51.5033640",
    "longitude": "-0.1276250",
    "exif": {
      "FILE": {
        "FileName": "imageExif1.jpg",
        "FileDateTime": "1434704705",
        "FileSize": "62411",
        "FileType": "2",
        "MimeType": "image/jpeg",
        "SectionsFound": "ANYTAG, IFD0, THUMBNAIL, EXIF, GPS, INTEROP"
      },
      "COMPUTED": {
        "html": "width=\"500\" height=\"375\"",
        "Height": "375",
        "Width": "500",
        "IsColor": "1",
        "ByteOrderMotorola": "0",
        "ApertureFNumber": "f/5.9",
        "UserComment": "",
        "UserCommentEncoding": "UNDEFINED",
        "Thumbnail.FileType": "2",
        "Thumbnail.MimeType": "image/jpeg"
      },
      "IFD0": {
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "YCbCrPositioning": "2",
        "ExifIFDPointer": "284",
        "GPSIFDPointer": "13254",
        "UndefinedTag:0xC4A5": "PrintIM\u00000300\u0000\u0000\u0002\u0000\u0002\u0000\u0001\u0000\u0000\u0000\u0001\u0001\u0001"
      },
      "THUMBNAIL": {
        "Compression": "6",
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "JPEGInterchangeFormat": "13910",
        "JPEGInterchangeFormatLength": "8421",
        "YCbCrPositioning": "2"
      },
      "EXIF": {
        "ExposureTime": "1/250",
        "FNumber": "59/10",
        "ExposureProgram": "2",
        "ISOSpeedRatings": "100",
        "UndefinedTag:0x8830": "2",
        "UndefinedTag:0x8832": "100",
        "ExifVersion": "0230",
        "DateTimeOriginal": "2011:12:31 17:07:29",
        "DateTimeDigitized": "2011:12:31 17:07:29",
        "ComponentsConfiguration": "\u0001\u0002\u0003",
        "CompressedBitsPerPixel": "1/1",
        "BrightnessValue": "23234/2560",
        "ExposureBiasValue": "0/10",
        "MaxApertureValue": "55/16",
        "MeteringMode": "5",
        "LightSource": "0",
        "Flash": "16",
        "FocalLength": "6848/100",
        "MakerNote": "",
        "UserComment": "",
        "FlashPixVersion": "0100",
        "ColorSpace": "1",
        "ExifImageWidth": "3648",
        "ExifImageLength": "2736",
        "InteroperabilityOffset": "13632",
        "FileSource": "\u0003",
        "SceneType": "\u0001",
        "CustomRendered": "0",
        "ExposureMode": "0",
        "WhiteBalance": "0",
        "DigitalZoomRatio": "16/16",
        "SceneCaptureType": "0",
        "Contrast": "0",
        "Saturation": "0",
        "Sharpness": "0",
        "UndefinedTag:0xA432": [
          "428/100",
          "6848/100",
          "33/10",
          "59/10"
        ]
      },
      "GPS": {
        "GPSVersion": "\u0002\u0003",
        "GPSLatitudeRef": "N",
        "GPSLatitude": [
          "41/1",
          "53/1",
          "23487/1000"
        ],
        "GPSLongitudeRef": "E",
        "GPSLongitude": [
          "12/1",
          "29/1",
          "10362/1000"
        ],
        "GPSAltitudeRef": "",
        "GPSAltitude": "56819/1000",
        "GPSTimeStamp": [
          "15/1",
          "7/1",
          "33998/1000"
        ],
        "GPSStatus": "A",
        "GPSMeasureMode": "3",
        "GPSDOP": "13552/10000",
        "GPSSpeedRef": "K",
        "GPSSpeed": "955/1000",
        "GPSTrackRef": "T",
        "GPSTrack": "34442/100",
        "GPSImgDirectionRef": "M",
        "GPSImgDirection": "4775/100",
        "GPSMapDatum": "WGS-84",
        "GPSDateStamp": "2011:12:31",
        "GPSDifferential": "0"
      },
      "INTEROP": {
        "InterOperabilityIndex": "R98",
        "InterOperabilityVersion": "0100"
      }
    },
    "section": "photo",
    "title": "Lorem ipsum",
    "countLikes": 123,
    "countSaves": 39,
    "countComments": 3,
    "goWithUsers": [
      {
       "id": "user456",
       "lastName": "山下",
       "firstName": "智久",
       "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
      }, {
       "id": "user789",
       "lastName": "石原",
       "firstName": "聰美",
       "avatarUrl": "http://imgs.niusnews.com/upload/imgs/default/15NovCh/1113B/5.jpg"
      }
    ],
    "tags": [{
      "id": "tag123",
      "text": "風景"
    }, {
      "id": "tag456",
      "text": ""
    }],
    "location": {
      "id": "location123",
      "name": "日本",
      "administrativeArea1": "富山県",
      "administrativeArea1": "新川郡"
    },
    "equipments": [{
      "id": "equipment123",
      "text": "NIKON NIKON D7100",
      "type": "カメラ"
    }, {
      "id": "equipment456",
      "text": "NIKON AF-S",
      "type": "レンズ"
    }, {
      "id": "equipment789",
      "text": "NIKON TRI-3",
      "type": "三脚"
    }]
  }, {
    "id": "photo789",
    "photoUserLikeId": "photouserlike123",
    "user": {
      "id": "user123",
      "lastName": "",
      "firstName": "立展",
      "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
    },
    "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4",
    "story": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum a cumque, repellat nisi, consectetur explicabo ratione et laborum labore expedita voluptates? Nam ducimus, nostrum iste sequi in, aperiam ratione rerum.",
    "timeUpload": "Mon Mar 06 2017 14:32:53 GMT+0900 (JST)",
    "latitude": "51.5033640",
    "longitude": "-0.1276250",
    "exif": {
      "FILE": {
        "FileName": "imageExif1.jpg",
        "FileDateTime": "1434704705",
        "FileSize": "62411",
        "FileType": "2",
        "MimeType": "image/jpeg",
        "SectionsFound": "ANYTAG, IFD0, THUMBNAIL, EXIF, GPS, INTEROP"
      },
      "COMPUTED": {
        "html": "width=\"500\" height=\"375\"",
        "Height": "375",
        "Width": "500",
        "IsColor": "1",
        "ByteOrderMotorola": "0",
        "ApertureFNumber": "f/5.9",
        "UserComment": "",
        "UserCommentEncoding": "UNDEFINED",
        "Thumbnail.FileType": "2",
        "Thumbnail.MimeType": "image/jpeg"
      },
      "IFD0": {
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "YCbCrPositioning": "2",
        "ExifIFDPointer": "284",
        "GPSIFDPointer": "13254",
        "UndefinedTag:0xC4A5": "PrintIM\u00000300\u0000\u0000\u0002\u0000\u0002\u0000\u0001\u0000\u0000\u0000\u0001\u0001\u0001"
      },
      "THUMBNAIL": {
        "Compression": "6",
        "ImageDescription": "",
        "Make": "SONY",
        "Model": "DSC-HX9V",
        "Orientation": "0",
        "XResolution": "72/1",
        "YResolution": "72/1",
        "ResolutionUnit": "1",
        "DateTime": "2011:12:31 17:07:29",
        "JPEGInterchangeFormat": "13910",
        "JPEGInterchangeFormatLength": "8421",
        "YCbCrPositioning": "2"
      },
      "EXIF": {
        "ExposureTime": "1/250",
        "FNumber": "59/10",
        "ExposureProgram": "2",
        "ISOSpeedRatings": "100",
        "UndefinedTag:0x8830": "2",
        "UndefinedTag:0x8832": "100",
        "ExifVersion": "0230",
        "DateTimeOriginal": "2011:12:31 17:07:29",
        "DateTimeDigitized": "2011:12:31 17:07:29",
        "ComponentsConfiguration": "\u0001\u0002\u0003",
        "CompressedBitsPerPixel": "1/1",
        "BrightnessValue": "23234/2560",
        "ExposureBiasValue": "0/10",
        "MaxApertureValue": "55/16",
        "MeteringMode": "5",
        "LightSource": "0",
        "Flash": "16",
        "FocalLength": "6848/100",
        "MakerNote": "",
        "UserComment": "",
        "FlashPixVersion": "0100",
        "ColorSpace": "1",
        "ExifImageWidth": "3648",
        "ExifImageLength": "2736",
        "InteroperabilityOffset": "13632",
        "FileSource": "\u0003",
        "SceneType": "\u0001",
        "CustomRendered": "0",
        "ExposureMode": "0",
        "WhiteBalance": "0",
        "DigitalZoomRatio": "16/16",
        "SceneCaptureType": "0",
        "Contrast": "0",
        "Saturation": "0",
        "Sharpness": "0",
        "UndefinedTag:0xA432": [
          "428/100",
          "6848/100",
          "33/10",
          "59/10"
        ]
      },
      "GPS": {
        "GPSVersion": "\u0002\u0003",
        "GPSLatitudeRef": "N",
        "GPSLatitude": [
          "41/1",
          "53/1",
          "23487/1000"
        ],
        "GPSLongitudeRef": "E",
        "GPSLongitude": [
          "12/1",
          "29/1",
          "10362/1000"
        ],
        "GPSAltitudeRef": "",
        "GPSAltitude": "56819/1000",
        "GPSTimeStamp": [
          "15/1",
          "7/1",
          "33998/1000"
        ],
        "GPSStatus": "A",
        "GPSMeasureMode": "3",
        "GPSDOP": "13552/10000",
        "GPSSpeedRef": "K",
        "GPSSpeed": "955/1000",
        "GPSTrackRef": "T",
        "GPSTrack": "34442/100",
        "GPSImgDirectionRef": "M",
        "GPSImgDirection": "4775/100",
        "GPSMapDatum": "WGS-84",
        "GPSDateStamp": "2011:12:31",
        "GPSDifferential": "0"
      },
      "INTEROP": {
        "InterOperabilityIndex": "R98",
        "InterOperabilityVersion": "0100"
      }
    },
    "section": "photo",
    "title": "Lorem ipsum",
    "countLikes": 123,
    "countSaves": 39,
    "countComments": 3,
    "goWithUsers": [
      {
        "id": "user456",
        "lastName": "山下",
        "firstName": "智久",
        "avatarUrl": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ7e6Vhv3UavQuX7CEXp2P9UGEEOstY7KmP_suj3hw2jLovqdGi"
      }, {
        "id": "user789",
        "lastName": "石原",
        "firstName": "聰美",
        "avatarUrl": "http://imgs.niusnews.com/upload/imgs/default/15NovCh/1113B/5.jpg"
      }
    ],
    "tags": [{
      "id": "tag123",
      "text": "風景"
    }, {
      "id": "tag456",
      "text": ""
    }],
    "location": {
      "id": "location123",
      "name": "日本",
      "administrativeArea1": "富山県",
      "administrativeArea1": "新川郡"
    },
    "equipments": [{
      "id": "equipment123",
      "text": "NIKON NIKON D7100",
      "type": "カメラ"
    }, {
      "id": "equipment456",
      "text": "NIKON AF-S",
      "type": "レンズ"
    }, {
      "id": "equipment789",
      "text": "NIKON TRI-3",
      "type": "三脚"
    }]
  }]
}

POST /api/vXXX/photos/#id/like

 * レスポンス

{"result": true}

POST /api/vXXX/photos/#id/save

 * レスポンス

{"result": true}

DELETE /api/vXXX/photos/#id/like

 * レスポンス

{"result": true}

DELETE /api/vXXX/photos/#id/save

 * レスポンス

{"result": true}

GET /api/vXXX/locations

  • 使えるquery params:
    1. q (free word)
    2. tags (tags list)
    3. equipments (equipments list)
    4. hours (hours list)
    5. months (months list)
    6. sort (sort type, i.e. date or popularity)
    7. lat (latitude)
    8. long (longitude)
    9. page (page number)

 * レスポンス

{
  "data": [{
    "id": "location123",
    "locationUserFollowId": "locationuserfollow123",
    "countPhotos": 324,
    "countUserFollowers": 126,
    "countKuchikomis": 14,
    "countEvaluations": 65,
    "latitude": "36.814968",
    "longitude": "137.5840573",
    "coverPhoto": {
      "id": "photo123",
      "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4"
    },
    "evaluation": {
      "averagePoint1": 2,
      "averagePoint2": 3,
      "averagePoint3": 2
    },
    "nameJp": "黑部峽谷",
    "nameEn": "kurotetu",
    "addressJp": "〒938-0293 富山県黒部市黒部峡谷口11",
    "addressEn": "Kurobekyokoku Ashikuraji, Tateyama, Nakaniikawa District, Toyama Prefecture 930-1406",
    "countryJp": "日本",
    "countryEn": "Japan",
    "administrativeAreaLevelJp1": "富山県",
    "administrativeAreaLevelEn1": "Tateyama, Nakaniikawa District",
    "administrativeAreaLevelJp2": "黒部市",
    "administrativeAreaLevelEn2": "Kurobekyokoku Ashikuraji"
  }, {
    "id": "location234",
    "locationUserFollowId": "locationuserfollow123",
    "countPhoto": 324,
    "countUserFollower": 126,
    "countKuchikomi": 14,
    "countEvaluation": 65,
    "latitude": "36.814968",
    "longitude": "137.5840573",
    "coverPhoto": {
      "id": "photo123",
      "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4"
    },
    "evaluation": {
      "averagePoint1": 2,
      "averagePoint2": 3,
      "averagePoint3": 2
    },
    "nameJp": "黑部峽谷",
    "nameEn": "kurotetu",
    "addressJp": "〒938-0293 富山県黒部市黒部峡谷口11",
    "addressEn": "Kurobekyokoku Ashikuraji, Tateyama, Nakaniikawa District, Toyama Prefecture 930-1406",
    "countryJp": "日本",
    "countryEn": "Japan",
    "administrativeAreaLevelJp1": "富山県",
    "administrativeAreaLevelEn1": "Tateyama, Nakaniikawa District",
    "administrativeAreaLevelJp2": "黒部市",
    "administrativeAreaLevelEn2": "Kurobekyokoku Ashikuraji"
  }, {
    "id": "location345",
    "locationUserFollowId": null,
    "countPhoto": 324,
    "countUserFollower": 126,
    "countKuchikomi": 14,
    "countEvaluation": 65,
    "latitude": "36.814968",
    "longitude": "137.5840573",
    "coverPhoto": {
      "id": "photo123",
      "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4"
    },
    "evaluation": {
      "averagePoint1": 2,
      "averagePoint2": 3,
      "averagePoint3": 2
    },
    "nameJp": "黑部峽谷",
    "nameEn": "kurotetu",
    "addressJp": "〒938-0293 富山県黒部市黒部峡谷口11",
    "addressEn": "Kurobekyokoku Ashikuraji, Tateyama, Nakaniikawa District, Toyama Prefecture 930-1406",
    "countryJp": "日本",
    "countryEn": "Japan",
    "administrativeAreaLevelJp1": "富山県",
    "administrativeAreaLevelEn1": "Tateyama, Nakaniikawa District",
    "administrativeAreaLevelJp2": "黒部市",
    "administrativeAreaLevelEn2": "Kurobekyokoku Ashikuraji"
  }, {
    "id": "location456",
    "locationUserFollowId": "locationuserfollow123",
    "countPhoto": 324,
    "countUserFollower": 126,
    "countKuchikomi": 14,
    "countEvaluation": 65,
    "latitude": "36.814968",
    "longitude": "137.5840573",
    "coverPhoto": {
      "id": "photo123",
      "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4"
    },
    "evaluation": {
      "averagePoint1": 2,
      "averagePoint2": 3,
      "averagePoint3": 2
    },
    "nameJp": "黑部峽谷",
    "nameEn": "kurotetu",
    "addressJp": "〒938-0293 富山県黒部市黒部峡谷口11",
    "addressEn": "Kurobekyokoku Ashikuraji, Tateyama, Nakaniikawa District, Toyama Prefecture 930-1406",
    "countryJp": "日本",
    "countryEn": "Japan",
    "administrativeAreaLevelJp1": "富山県",
    "administrativeAreaLevelEn1": "Tateyama, Nakaniikawa District",
    "administrativeAreaLevelJp2": "黒部市",
    "administrativeAreaLevelEn2": "Kurobekyokoku Ashikuraji"
  }, {
    "id": "location567",
    "locationUserFollowId": null,
    "countPhoto": 324,
    "countUserFollower": 126,
    "countKuchikomi": 14,
    "countEvaluation": 65,
    "latitude": "36.814968",
    "longitude": "137.5840573",
    "coverPhoto": {
      "id": "photo123",
      "photoUrl": "https://drscdn.500px.org/photo/140700811/m%3D900/ea8b2148051f90a7637018761128c0c4"
    },
    "evaluation": {
      "averagePoint1": 2,
      "averagePoint2": 3,
      "averagePoint3": 2
    },
    "nameJp": "黑部峽谷",
    "nameEn": "kurotetu",
    "addressJp": "〒938-0293 富山県黒部市黒部峡谷口11",
    "addressEn": "Kurobekyokoku Ashikuraji, Tateyama, Nakaniikawa District, Toyama Prefecture 930-1406",
    "countryJp": "日本",
    "countryEn": "Japan",
    "administrativeAreaLevelJp1": "富山県",
    "administrativeAreaLevelEn1": "Tateyama, Nakaniikawa District",
    "administrativeAreaLevelJp2": "黒部市",
    "administrativeAreaLevelEn2": "Kurobekyokoku Ashikuraji"
  }]
}

POST /api/vXXX/locations/#id/follow

 * レスポンス

{"result": true}

DELETE /api/vXXX/locations/#id/follow

 * レスポンス

{"result": true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment