Open311

Wiki

Collaboration for an Open311 Standard
Personal tools

Difference between revisions of "API"

Collaboration for an Open311 Standard

Jump to: navigation, search
(→‎Client Apps)
(→‎Clients (can send and view reports))
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
=Open311 APIs=
 
=Open311 APIs=
 +
 +
==Inquiry/Information beta==
 +
===Spec: [[Inquiry v1]]===
 +
The Inquiry/Information API is meant to be accessed to retrieve non-GeoReport-related content. This can be used for information which is typically provided to callers of a 311 system as an answer to their question. It supports three fundamental capabilities: services, facilities, and a "311 today" (RSS) feed.
 +
 +
===Spec: [[Inquiry v2 Draft]]===
 +
Version 2 is meant to provide a more generic version of the Inquiry/Information API with extended features.
  
 
==GeoReport v2==
 
==GeoReport v2==
 
===Spec: [[GeoReport v2]]===
 
===Spec: [[GeoReport v2]]===
  
−
Here is a proposal for doing specifying metadata about Open311 endpoints. It is expected that a version of this will be included in v2.
+
====Service Discovery====
−
[[Service Discovery]]
+
GeoReport v2 and following versions are meant to be accessed via the [[Service Discovery]] mechanism to identify the status and version number for available endpoints in each jurisdiction. The service discovery mechanism is a requirement of the specification, but is meant to be independent and persistant beyond the GeoReport v2 version of the spec.
 +
 
 +
Please view the [[Service Discovery]] specification.
  
 
===Servers===
 
===Servers===
−
Servers receive and manage reports on behalf of a jurisdiction.
+
{{:GeoReport v2}}
−
 
+
{{:GeoReport v2/Resources}}
−
''Note that the URLs require a method and jurisdiction_id at the end, the root URL is not intended to be accessed directly.''
+
−
{| class="wikitable sortable"
+
−
! Name
+
−
! Status
+
−
! API Key
+
−
! Dev API
+
−
! Production API
+
−
|-
+
−
| '''San Francisco'''
+
−
| ''Development Ready''
+
−
| [http://apps.sfgov.org/Open311API/?page_id=486 Request Key]
+
−
| [https://open311.sfgov.org/dev/V2/ Dev URL]
+
−
| [https://open311.sfgov.org/v2 Production URL]
+
−
|-
+
−
| '''Washington D.C.'''
+
−
| ''Development Ready''
+
−
|  -
+
−
| -
+
−
| [http://311.dc.gov/cwi/Open311/v2/ Production URL]
+
−
|}
+
−
 
+
−
====Server Software====
+
−
Server applications can receive and manage reports
+
−
* http://svn.ashlock.us/public/georeport-v2-api-php/ (in development)
+
−
* http://svn.ashlock.us/public/georeport_ushahidi/v2/ - Ushahidi integration, [http://ushahidi.georeport.org/georeport/v2/requests.xml see demo] (in development)
+
−
 
+
−
===Client Apps===
+
−
Client applications can send and/or view reports
+
−
* [http://help.seeclickfix.com/kb/api/api-overview SeeClickFix]
+
−
* [http://www.facebook.com/SF?sk=app_128760367192739 Facebook App] (for San Francisco's Open311 API)
+
−
 
+
−
====Test Suites====
+
−
Test suites are used to verify that a server is compliant with the specification.
+
−
* http://github.com/open311/open311-validator (in development)
+
−
 
+
−
====Client Libraries (API Wrappers)====
+
−
Client libraries make it easier to build client applications that work with the spec.
+
−
* [http://rubygems.org/gems/open311 Ruby Gem] by Dan Melton et al
+
−
* [https://github.com/mheadd/node-open311 Node.js]  by Mark Headd
+
−
* [https://github.com/mheadd/CSharpOpen311-v2 C Sharp] by Mark Headd
+
  
 
==GeoReport v1==
 
==GeoReport v1==
 
===Spec: [[GeoReport v1]]===
 
===Spec: [[GeoReport v1]]===
  
−
===Servers (can receive reports)===
+
===Servers===
−
{|
+
{{:GeoReport v1}}
−
! Name
+
−
! Status
+
−
! API Key
+
−
! Dev API
+
−
! Production API
+
−
|-
+
−
| '''City of San Francisco'''
+
−
| ''Production Ready''
+
−
| [http://apps.sfgov.org/Open311API/?page_id=486 Request Key]
+
−
| [https://open311.sfgov.org/dev/V1 Dev URL]
+
−
| [https://open311.sfgov.org/V1 Production URL]
+
−
|}
+
−
 
+
 
===Clients (can send and view reports)===
 
===Clients (can send and view reports)===
 
* [http://seeclickfix.blogspot.com/2010/05/seeclickfix-integrates-data-with-san.html SeeClickFix]
 
* [http://seeclickfix.blogspot.com/2010/05/seeclickfix-integrates-data-with-san.html SeeClickFix]
 
* [http://blog.citysourced.com/index.php/54/citysourced-integrates-san-franciscos-open-311-system/ CitySourced]
 
* [http://blog.citysourced.com/index.php/54/citysourced-integrates-san-franciscos-open-311-system/ CitySourced]
−
* [http://tweetmy311.org/ TweetMy311]
+
* [http://www.facebook.com/SF?sk=app_128760367192739 Facebook App] (for San Francisco's Open311 API)
  
 
====Client Libraries (API Wrappers)====
 
====Client Libraries (API Wrappers)====

Latest revision as of 16:12, 27 February 2013

Open311 APIs

Inquiry/Information beta

Spec: Inquiry v1

The Inquiry/Information API is meant to be accessed to retrieve non-GeoReport-related content. This can be used for information which is typically provided to callers of a 311 system as an answer to their question. It supports three fundamental capabilities: services, facilities, and a "311 today" (RSS) feed.

Spec: Inquiry v2 Draft

Version 2 is meant to provide a more generic version of the Inquiry/Information API with extended features.

GeoReport v2

Spec: GeoReport v2

Service Discovery

GeoReport v2 and following versions are meant to be accessed via the Service Discovery mechanism to identify the status and version number for available endpoints in each jurisdiction. The service discovery mechanism is a requirement of the specification, but is meant to be independent and persistant beyond the GeoReport v2 version of the spec.

Please view the Service Discovery specification.

Servers

Servers receive and manage service requests on behalf of a jurisdiction. A comprehensive list is being maintained on the GeoReport v2 Servers page

Open source developer resources for the GeoReport v2 specification.

Server Software

Server applications provide an API endpoint and can receive and manage reports.

Client Applications

Software that interacts with an Open311 server by connecting to an API.

Dashboards & Data Viz

See also open source libraries for Visualizations

Client Libraries (API Wrappers)

Client libraries make it easier to build client applications that work with the spec.

  • PHP by Ronaldo Barbachano at Code for America
  • Python by Zach Williams at Code for America
  • Ruby Gem by Code for America labs et al (see it on GitHub)
  • Node.js by Mark Headd and Ben Sheldon
  • C# by Mark Headd
  • Clojure by Ryan Briones
  • Java by Santiago Munín at Code for America

Test Suites

Test suites are used to verify that a server is compliant with the specification.

Products & Services

See also GeoReport v2 Support for products and services.

GeoReport v1

Spec: GeoReport v1

Servers

Servers receive and manage reports on behalf of a jurisdiction.

Note that the URLs require a method and jurisdiction_id at the end, the root URL is not intended to be accessed directly.

Name Status API Key city_id Dev API Production API
San Francisco Deprecated August 2013 [Deprecated] sfgov.org [N/A Dev URL] [N/A Production URL]
Miami-Dade County Development Ready Request Key miamidade.gov Beta URL -

Clients (can send and view reports)

Client Libraries (API Wrappers)

Inactive APIs