L10n:Pontoon/API: Difference between revisions
mNo edit summary |
(Remove the Technology discussion) |
||
Line 1: | Line 1: | ||
' | Exposing Pontoon's data through an API will enable external consumers to build tools, extensions and reports about translations. In the future, the API will serve as the backend for Pontoon.NEXT's SPA front-end. We chose an iterative approach to exposing the data. We start small with a small number of clear-focused use-cases in mind and expand the scope in subsequent iterations. The API is based on [http://graphql.org/ GraphQL] (see [https://wiki.mozilla.org/index.php?title=L10n:Pontoon/API&oldid=1181890#Technology discussion]). | ||
The tracking bug for all work related to the API for Pontoon is {{bug|1395273}}. | |||
=Roadmap= | ==Roadmap== | ||
In Q3 2017, we'd like to make some data stored in Pontoon openly available for third-parties. The main driver is the use case from {{bug|1302053}}: | In Q3 2017, we'd like to make some data stored in Pontoon openly available for third-parties. The main driver is the use case from {{bug|1302053}}: | ||
Line 16: | Line 16: | ||
* Getting the stream of notifications per authorized user | * Getting the stream of notifications per authorized user | ||
= | ==Milestone 1== | ||
The | ''Complete, deployed on October 2, 2017.'' | ||
In the first iteration we'd like to make some data stored in Pontoon openly available for third-parties. The goals is to create an API endpoint supporting queries related to aggregate statistics per locale and per project. The main driver is the use case from {{bug|1302053}}: | |||
* Stats for a locale: supported projects, status of each project. | |||
* Stats for a project: supported locales, incomplete locales, complete locales. | |||
<bugzilla>{ | <bugzilla>{ | ||
Line 26: | Line 31: | ||
"include_fields": "id, summary, status, resolution, assigned_to, depends_on, blocks" | "include_fields": "id, summary, status, resolution, assigned_to, depends_on, blocks" | ||
}</bugzilla> | }</bugzilla> | ||
Revision as of 11:15, 6 October 2017
Exposing Pontoon's data through an API will enable external consumers to build tools, extensions and reports about translations. In the future, the API will serve as the backend for Pontoon.NEXT's SPA front-end. We chose an iterative approach to exposing the data. We start small with a small number of clear-focused use-cases in mind and expand the scope in subsequent iterations. The API is based on GraphQL (see discussion).
The tracking bug for all work related to the API for Pontoon is bug 1395273.
Roadmap
In Q3 2017, we'd like to make some data stored in Pontoon openly available for third-parties. The main driver is the use case from bug 1302053:
- Stats for a locale: supported projects, status of each project.
- Stats for a project: supported locales, incomplete locales, complete locales.
In future iterations, more use-case can be supported:
- Exposing data which can be fetched by a SPA front-end
- This will likely require pagination
- Getting the stream of notifications per authorized user
Milestone 1
Complete, deployed on October 2, 2017.
In the first iteration we'd like to make some data stored in Pontoon openly available for third-parties. The goals is to create an API endpoint supporting queries related to aggregate statistics per locale and per project. The main driver is the use case from bug 1302053:
- Stats for a locale: supported projects, status of each project.
- Stats for a project: supported locales, incomplete locales, complete locales.
ID | Summary | Status | Resolution | Assigned to | Depends on | Blocks |
---|---|---|---|---|---|---|
1302053 | Expose project status and information through API | RESOLVED | FIXED | Staś Małolepszy :stas | 1395273 | |
1403861 | [API] Hide aggregate statistics about Suggested strings | RESOLVED | FIXED | Staś Małolepszy :stas | 1377969 | 1395273 |
1407192 | [API] Enable GraphiQL IDE on production | RESOLVED | MOVED | 1395273 | ||
1409704 | [tracking] Pontoon API Milestone 2 | RESOLVED | WONTFIX | 1408625, 1409711, 1409723, 1409724 | 1395273 | |
1410387 | [API] Expose aggregate statistics about Suggestions | RESOLVED | MOVED | 1377969 | 1395273 |
5 Total; 0 Open (0%); 5 Resolved (100%); 0 Verified (0%);