Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: discovery/googleapis/civicinfo__v2.json

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/classroom__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "basePath": "/civicinfo/v2/", 2 "basePath": "/civicinfo/v2/",
3 "baseUrl": "https://www.googleapis.com/civicinfo/v2/", 3 "baseUrl": "https://www.googleapis.com/civicinfo/v2/",
4 "batchPath": "batch", 4 "batchPath": "batch",
5 "canonicalName": "Civic Info", 5 "canonicalName": "Civic Info",
6 "description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential address es.", 6 "description": "Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential address es.",
7 "discoveryVersion": "v1", 7 "discoveryVersion": "v1",
8 "documentationLink": "https://developers.google.com/civic-information", 8 "documentationLink": "https://developers.google.com/civic-information",
9 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/0RRptSlHJI7MXoKAqjNEurqVvHk\"", 9 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/o3I9HhfXj9W3CUHRNSzja8F9LG4\"",
10 "icons": { 10 "icons": {
11 "x16": "http://www.google.com/images/icons/product/search-16.gif", 11 "x16": "http://www.google.com/images/icons/product/search-16.gif",
12 "x32": "http://www.google.com/images/icons/product/search-32.gif" 12 "x32": "http://www.google.com/images/icons/product/search-32.gif"
13 }, 13 },
14 "id": "civicinfo:v2", 14 "id": "civicinfo:v2",
15 "kind": "discovery#restDescription", 15 "kind": "discovery#restDescription",
16 "name": "civicinfo", 16 "name": "civicinfo",
17 "ownerDomain": "google.com", 17 "ownerDomain": "google.com",
18 "ownerName": "Google", 18 "ownerName": "Google",
19 "parameters": { 19 "parameters": {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 "httpMethod": "GET", 70 "httpMethod": "GET",
71 "id": "civicinfo.divisions.search", 71 "id": "civicinfo.divisions.search",
72 "parameters": { 72 "parameters": {
73 "query": { 73 "query": {
74 "description": "The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operator s of the Apache Lucene library are supported. See http://lucene.apache.org/core/ 2_9_4/queryparsersyntax.html", 74 "description": "The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operator s of the Apache Lucene library are supported. See http://lucene.apache.org/core/ 2_9_4/queryparsersyntax.html",
75 "location": "query", 75 "location": "query",
76 "type": "string" 76 "type": "string"
77 } 77 }
78 }, 78 },
79 "path": "divisions", 79 "path": "divisions",
80 "request": {
81 "$ref": "DivisionSearchRequest"
82 },
80 "response": { 83 "response": {
81 "$ref": "DivisionSearchResponse" 84 "$ref": "DivisionSearchResponse"
82 } 85 }
83 } 86 }
84 } 87 }
85 }, 88 },
86 "elections": { 89 "elections": {
87 "methods": { 90 "methods": {
88 "electionQuery": { 91 "electionQuery": {
89 "description": "List of available elections to query.", 92 "description": "List of available elections to query.",
90 "httpMethod": "GET", 93 "httpMethod": "GET",
91 "id": "civicinfo.elections.electionQuery", 94 "id": "civicinfo.elections.electionQuery",
92 "path": "elections", 95 "path": "elections",
96 "request": {
97 "$ref": "ElectionsQueryRequest"
98 },
93 "response": { 99 "response": {
94 "$ref": "ElectionsQueryResponse" 100 "$ref": "ElectionsQueryResponse"
95 } 101 }
96 }, 102 },
97 "voterInfoQuery": { 103 "voterInfoQuery": {
98 "description": "Looks up information relevant to a voter bas ed on the voter's registered address.", 104 "description": "Looks up information relevant to a voter bas ed on the voter's registered address.",
99 "httpMethod": "GET", 105 "httpMethod": "GET",
100 "id": "civicinfo.elections.voterInfoQuery", 106 "id": "civicinfo.elections.voterInfoQuery",
101 "parameterOrder": [ 107 "parameterOrder": [
102 "address" 108 "address"
(...skipping 19 matching lines...) Expand all
122 "type": "boolean" 128 "type": "boolean"
123 }, 129 },
124 "returnAllAvailableData": { 130 "returnAllAvailableData": {
125 "default": "false", 131 "default": "false",
126 "description": "If set to true, the query will retur n the success codeand include any partial information when it is unable to deter mine a matching address or unable to determine the election for electionId=0 que ries.", 132 "description": "If set to true, the query will retur n the success codeand include any partial information when it is unable to deter mine a matching address or unable to determine the election for electionId=0 que ries.",
127 "location": "query", 133 "location": "query",
128 "type": "boolean" 134 "type": "boolean"
129 } 135 }
130 }, 136 },
131 "path": "voterinfo", 137 "path": "voterinfo",
138 "request": {
139 "$ref": "VoterInfoRequest"
140 },
132 "response": { 141 "response": {
133 "$ref": "VoterInfoResponse" 142 "$ref": "VoterInfoResponse"
134 } 143 }
135 } 144 }
136 } 145 }
137 }, 146 },
138 "representatives": { 147 "representatives": {
139 "methods": { 148 "methods": {
140 "representativeInfoByAddress": { 149 "representativeInfoByAddress": {
141 "description": "Looks up political geography and representat ive information for a single address.", 150 "description": "Looks up political geography and representat ive information for a single address.",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 "", 217 "",
209 "", 218 "",
210 "" 219 ""
211 ], 220 ],
212 "location": "query", 221 "location": "query",
213 "repeated": true, 222 "repeated": true,
214 "type": "string" 223 "type": "string"
215 } 224 }
216 }, 225 },
217 "path": "representatives", 226 "path": "representatives",
227 "request": {
228 "$ref": "RepresentativeInfoRequest"
229 },
218 "response": { 230 "response": {
219 "$ref": "RepresentativeInfoResponse" 231 "$ref": "RepresentativeInfoResponse"
220 } 232 }
221 }, 233 },
222 "representativeInfoByDivision": { 234 "representativeInfoByDivision": {
223 "description": "Looks up representative information for a si ngle geographic division.", 235 "description": "Looks up representative information for a si ngle geographic division.",
224 "httpMethod": "GET", 236 "httpMethod": "GET",
225 "id": "civicinfo.representatives.representativeInfoByDivisio n", 237 "id": "civicinfo.representatives.representativeInfoByDivisio n",
226 "parameterOrder": [ 238 "parameterOrder": [
227 "ocdId" 239 "ocdId"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 "", 305 "",
294 "", 306 "",
295 "" 307 ""
296 ], 308 ],
297 "location": "query", 309 "location": "query",
298 "repeated": true, 310 "repeated": true,
299 "type": "string" 311 "type": "string"
300 } 312 }
301 }, 313 },
302 "path": "representatives/{ocdId}", 314 "path": "representatives/{ocdId}",
315 "request": {
316 "$ref": "DivisionRepresentativeInfoRequest"
317 },
303 "response": { 318 "response": {
304 "$ref": "RepresentativeInfoData" 319 "$ref": "RepresentativeInfoData"
305 } 320 }
306 } 321 }
307 } 322 }
308 } 323 }
309 }, 324 },
310 "revision": "20160823", 325 "revision": "20161102",
311 "rootUrl": "https://www.googleapis.com/", 326 "rootUrl": "https://www.googleapis.com/",
312 "schemas": { 327 "schemas": {
313 "AdministrationRegion": { 328 "AdministrationRegion": {
314 "description": "Describes information about a regional election admi nistrative area.", 329 "description": "Describes information about a regional election admi nistrative area.",
315 "id": "AdministrationRegion", 330 "id": "AdministrationRegion",
316 "properties": { 331 "properties": {
317 "electionAdministrationBody": { 332 "electionAdministrationBody": {
318 "$ref": "AdministrativeBody", 333 "$ref": "AdministrativeBody",
319 "description": "The election administration body for this ar ea." 334 "description": "The election administration body for this ar ea."
320 }, 335 },
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 "items": { 439 "items": {
425 "$ref": "Channel" 440 "$ref": "Channel"
426 }, 441 },
427 "type": "array" 442 "type": "array"
428 }, 443 },
429 "email": { 444 "email": {
430 "description": "The email address for the candidate's campai gn.", 445 "description": "The email address for the candidate's campai gn.",
431 "type": "string" 446 "type": "string"
432 }, 447 },
433 "name": { 448 "name": {
434 "description": "The candidate's name.", 449 "description": "The candidate's name. If this is a joint tic ket it will indicate the name of the candidate at the top of a ticket followed b y a / and that name of candidate at the bottom of the ticket. e.g. \"Mitt Romney / Paul Ryan\"",
435 "type": "string" 450 "type": "string"
436 }, 451 },
437 "orderOnBallot": { 452 "orderOnBallot": {
438 "description": "The order the candidate appears on the ballo t for this contest.", 453 "description": "The order the candidate appears on the ballo t for this contest.",
439 "format": "int64", 454 "format": "int64",
440 "type": "string" 455 "type": "string"
441 }, 456 },
442 "party": { 457 "party": {
443 "description": "The full name of the party the candidate is a member of.", 458 "description": "The full name of the party the candidate is a member of.",
444 "type": "string" 459 "type": "string"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 "description": "\"Yes\" or \"No\" depending on whether this a contest being held outside the normal election cycle.", 598 "description": "\"Yes\" or \"No\" depending on whether this a contest being held outside the normal election cycle.",
584 "type": "string" 599 "type": "string"
585 }, 600 },
586 "type": { 601 "type": {
587 "description": "The type of contest. Usually this will be 'G eneral', 'Primary', or 'Run-off' for contests with candidates. For referenda thi s will be 'Referendum'. For Retention contests this will typically be 'Retention '.", 602 "description": "The type of contest. Usually this will be 'G eneral', 'Primary', or 'Run-off' for contests with candidates. For referenda thi s will be 'Referendum'. For Retention contests this will typically be 'Retention '.",
588 "type": "string" 603 "type": "string"
589 } 604 }
590 }, 605 },
591 "type": "object" 606 "type": "object"
592 }, 607 },
608 "ContextParams": {
609 "id": "ContextParams",
610 "properties": {
611 "clientProfile": {
612 "type": "string"
613 }
614 },
615 "type": "object"
616 },
617 "DivisionRepresentativeInfoRequest": {
618 "description": "A request to look up representative information for a single division.",
619 "id": "DivisionRepresentativeInfoRequest",
620 "properties": {
621 "contextParams": {
622 "$ref": "ContextParams"
623 }
624 },
625 "type": "object"
626 },
627 "DivisionSearchRequest": {
628 "description": "A search request for political geographies.",
629 "id": "DivisionSearchRequest",
630 "properties": {
631 "contextParams": {
632 "$ref": "ContextParams"
633 }
634 },
635 "type": "object"
636 },
593 "DivisionSearchResponse": { 637 "DivisionSearchResponse": {
594 "description": "The result of a division search query.", 638 "description": "The result of a division search query.",
595 "id": "DivisionSearchResponse", 639 "id": "DivisionSearchResponse",
596 "properties": { 640 "properties": {
597 "kind": { 641 "kind": {
598 "default": "civicinfo#divisionSearchResponse", 642 "default": "civicinfo#divisionSearchResponse",
599 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"civicinfo#divisionSearchResponse\".", 643 "description": "Identifies what kind of resource this is. Va lue: the fixed string \"civicinfo#divisionSearchResponse\".",
600 "type": "string" 644 "type": "string"
601 }, 645 },
602 "results": { 646 "results": {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 "description": "The office phone number of the election offi cial.", 718 "description": "The office phone number of the election offi cial.",
675 "type": "string" 719 "type": "string"
676 }, 720 },
677 "title": { 721 "title": {
678 "description": "The title of the election official.", 722 "description": "The title of the election official.",
679 "type": "string" 723 "type": "string"
680 } 724 }
681 }, 725 },
682 "type": "object" 726 "type": "object"
683 }, 727 },
728 "ElectionsQueryRequest": {
729 "id": "ElectionsQueryRequest",
730 "properties": {
731 "contextParams": {
732 "$ref": "ContextParams"
733 }
734 },
735 "type": "object"
736 },
684 "ElectionsQueryResponse": { 737 "ElectionsQueryResponse": {
685 "description": "The list of elections available for this version of the API.", 738 "description": "The list of elections available for this version of the API.",
686 "id": "ElectionsQueryResponse", 739 "id": "ElectionsQueryResponse",
687 "properties": { 740 "properties": {
688 "elections": { 741 "elections": {
689 "description": "A list of available elections", 742 "description": "A list of available elections",
690 "items": { 743 "items": {
691 "$ref": "Election" 744 "$ref": "Election"
692 }, 745 },
693 "type": "array" 746 "type": "array"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 "description": "The first date that this early vote site or drop off location may be used. This field is not populated for polling locations .", 938 "description": "The first date that this early vote site or drop off location may be used. This field is not populated for polling locations .",
886 "type": "string" 939 "type": "string"
887 }, 940 },
888 "voterServices": { 941 "voterServices": {
889 "description": "The services provided by this early vote sit e or drop off location. This field is not populated for polling locations.", 942 "description": "The services provided by this early vote sit e or drop off location. This field is not populated for polling locations.",
890 "type": "string" 943 "type": "string"
891 } 944 }
892 }, 945 },
893 "type": "object" 946 "type": "object"
894 }, 947 },
948 "PostalAddress": {
949 "id": "PostalAddress",
950 "properties": {
951 "addressLines": {
952 "items": {
953 "type": "string"
954 },
955 "type": "array"
956 },
957 "administrativeAreaName": {
958 "type": "string"
959 },
960 "countryName": {
961 "type": "string"
962 },
963 "countryNameCode": {
964 "type": "string"
965 },
966 "dependentLocalityName": {
967 "type": "string"
968 },
969 "dependentThoroughfareLeadingType": {
970 "type": "string"
971 },
972 "dependentThoroughfareName": {
973 "type": "string"
974 },
975 "dependentThoroughfarePostDirection": {
976 "type": "string"
977 },
978 "dependentThoroughfarePreDirection": {
979 "type": "string"
980 },
981 "dependentThoroughfareTrailingType": {
982 "type": "string"
983 },
984 "dependentThoroughfaresConnector": {
985 "type": "string"
986 },
987 "dependentThoroughfaresIndicator": {
988 "type": "string"
989 },
990 "dependentThoroughfaresType": {
991 "type": "string"
992 },
993 "firmName": {
994 "type": "string"
995 },
996 "isDisputed": {
997 "type": "boolean"
998 },
999 "languageCode": {
1000 "type": "string"
1001 },
1002 "localityName": {
1003 "type": "string"
1004 },
1005 "postBoxNumber": {
1006 "type": "string"
1007 },
1008 "postalCodeNumber": {
1009 "type": "string"
1010 },
1011 "postalCodeNumberExtension": {
1012 "type": "string"
1013 },
1014 "premiseName": {
1015 "type": "string"
1016 },
1017 "recipientName": {
1018 "type": "string"
1019 },
1020 "sortingCode": {
1021 "type": "string"
1022 },
1023 "subAdministrativeAreaName": {
1024 "type": "string"
1025 },
1026 "subPremiseName": {
1027 "type": "string"
1028 },
1029 "thoroughfareLeadingType": {
1030 "type": "string"
1031 },
1032 "thoroughfareName": {
1033 "type": "string"
1034 },
1035 "thoroughfareNumber": {
1036 "type": "string"
1037 },
1038 "thoroughfarePostDirection": {
1039 "type": "string"
1040 },
1041 "thoroughfarePreDirection": {
1042 "type": "string"
1043 },
1044 "thoroughfareTrailingType": {
1045 "type": "string"
1046 }
1047 },
1048 "type": "object"
1049 },
895 "RepresentativeInfoData": { 1050 "RepresentativeInfoData": {
896 "id": "RepresentativeInfoData", 1051 "id": "RepresentativeInfoData",
897 "properties": { 1052 "properties": {
898 "divisions": { 1053 "divisions": {
899 "additionalProperties": { 1054 "additionalProperties": {
900 "$ref": "GeographicDivision", 1055 "$ref": "GeographicDivision",
901 "description": "The unique Open Civic Data identifier fo r this division." 1056 "description": "The unique Open Civic Data identifier fo r this division."
902 }, 1057 },
903 "description": "Political geographic divisions that contain the requested address.", 1058 "description": "Political geographic divisions that contain the requested address.",
904 "type": "object" 1059 "type": "object"
905 }, 1060 },
906 "offices": { 1061 "offices": {
907 "description": "Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request.", 1062 "description": "Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request.",
908 "items": { 1063 "items": {
909 "$ref": "Office" 1064 "$ref": "Office"
910 }, 1065 },
911 "type": "array" 1066 "type": "array"
912 }, 1067 },
913 "officials": { 1068 "officials": {
914 "description": "Officials holding the offices listed above. Will only be present if includeOffices was true in the request.", 1069 "description": "Officials holding the offices listed above. Will only be present if includeOffices was true in the request.",
915 "items": { 1070 "items": {
916 "$ref": "Official" 1071 "$ref": "Official"
917 }, 1072 },
918 "type": "array" 1073 "type": "array"
919 } 1074 }
920 }, 1075 },
921 "type": "object" 1076 "type": "object"
922 }, 1077 },
1078 "RepresentativeInfoRequest": {
1079 "description": "A request for political geography and representative information for an address.",
1080 "id": "RepresentativeInfoRequest",
1081 "properties": {
1082 "contextParams": {
1083 "$ref": "ContextParams"
1084 }
1085 },
1086 "type": "object"
1087 },
923 "RepresentativeInfoResponse": { 1088 "RepresentativeInfoResponse": {
924 "description": "The result of a representative info lookup query.", 1089 "description": "The result of a representative info lookup query.",
925 "id": "RepresentativeInfoResponse", 1090 "id": "RepresentativeInfoResponse",
926 "properties": { 1091 "properties": {
927 "divisions": { 1092 "divisions": {
928 "additionalProperties": { 1093 "additionalProperties": {
929 "$ref": "GeographicDivision", 1094 "$ref": "GeographicDivision",
930 "description": "The unique Open Civic Data identifier fo r this division." 1095 "description": "The unique Open Civic Data identifier fo r this division."
931 }, 1096 },
932 "description": "Political geographic divisions that contain the requested address.", 1097 "description": "Political geographic divisions that contain the requested address.",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 "description": "The name of the data source.", 1166 "description": "The name of the data source.",
1002 "type": "string" 1167 "type": "string"
1003 }, 1168 },
1004 "official": { 1169 "official": {
1005 "description": "Whether this data comes from an official gov ernment source.", 1170 "description": "Whether this data comes from an official gov ernment source.",
1006 "type": "boolean" 1171 "type": "boolean"
1007 } 1172 }
1008 }, 1173 },
1009 "type": "object" 1174 "type": "object"
1010 }, 1175 },
1176 "VoterInfoRequest": {
1177 "description": "A request for information about a voter.",
1178 "id": "VoterInfoRequest",
1179 "properties": {
1180 "contextParams": {
1181 "$ref": "ContextParams"
1182 },
1183 "voterInfoSegmentResult": {
1184 "$ref": "VoterInfoSegmentResult"
1185 }
1186 },
1187 "type": "object"
1188 },
1011 "VoterInfoResponse": { 1189 "VoterInfoResponse": {
1012 "description": "The result of a voter info lookup query.", 1190 "description": "The result of a voter info lookup query.",
1013 "id": "VoterInfoResponse", 1191 "id": "VoterInfoResponse",
1014 "properties": { 1192 "properties": {
1015 "contests": { 1193 "contests": {
1016 "description": "Contests that will appear on the voter's bal lot.", 1194 "description": "Contests that will appear on the voter's bal lot.",
1017 "items": { 1195 "items": {
1018 "$ref": "Contest" 1196 "$ref": "Contest"
1019 }, 1197 },
1020 "type": "array" 1198 "type": "array"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 }, 1247 },
1070 "state": { 1248 "state": {
1071 "description": "Local Election Information for the state tha t the voter votes in. For the US, there will only be one element in this array." , 1249 "description": "Local Election Information for the state tha t the voter votes in. For the US, there will only be one element in this array." ,
1072 "items": { 1250 "items": {
1073 "$ref": "AdministrationRegion" 1251 "$ref": "AdministrationRegion"
1074 }, 1252 },
1075 "type": "array" 1253 "type": "array"
1076 } 1254 }
1077 }, 1255 },
1078 "type": "object" 1256 "type": "object"
1257 },
1258 "VoterInfoSegmentResult": {
1259 "id": "VoterInfoSegmentResult",
1260 "properties": {
1261 "generatedMillis": {
1262 "format": "int64",
1263 "type": "string"
1264 },
1265 "postalAddress": {
1266 "$ref": "PostalAddress"
1267 },
1268 "request": {
1269 "$ref": "VoterInfoRequest"
1270 },
1271 "response": {
1272 "$ref": "VoterInfoResponse"
1273 }
1274 },
1275 "type": "object"
1079 } 1276 }
1080 }, 1277 },
1081 "servicePath": "civicinfo/v2/", 1278 "servicePath": "civicinfo/v2/",
1082 "title": "Google Civic Information API", 1279 "title": "Google Civic Information API",
1083 "version": "v2" 1280 "version": "v2"
1084 } 1281 }
OLDNEW
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/classroom__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698