https://www.scrabbleplayers.org/wiki/api.php?days=3&limit=50&action=feedrecentchanges&feedformat=atomNASPAWiki - Recent changes [en]2024-03-28T19:57:46ZTrack the most recent changes to the wiki in this feed.MediaWiki 1.29.0https://www.scrabbleplayers.org/wiki/index.php?title=RESTful_API&diff=19368&oldid=0RESTful API2024-03-25T17:04:12Z<p>Created page with "NASPA provides a '''RESTful API''' that is extended as needed to accommodate the needs of developers. == General information == All endpoints begin with the prefix https://w..."</p>
<p><b>New page</b></p><div>NASPA provides a '''RESTful API''' that is extended as needed to accommodate<br />
the needs of developers.<br />
<br />
== General information ==<br />
<br />
All endpoints begin with the prefix https://www.scrabbleplayers.org/rest/v1<br />
<br />
Data is returned as a JSON hash. If an error occurred, the hash will look like: {"error_code":"not-yet","error_text":"unimplemented"}, and can be recognized by the presence of the error_code key. The error_code key will not change once assigned; the error_text might be subject to occasional editing.<br />
<br />
== Authentication ==<br />
<br />
Some endpoints require authentication. To access these in a POST request,<br />
specify a valid NASPA ID as username, and corresponding password as password.<br />
<br />
== Endpoints ==<br />
<br />
Here is an incomplete list of currently supported endpoints.<br />
<br />
=== Players ===<br />
<br />
; /players/''naspaid''<br />
: return a hash of public information about the player whose alphanumeric NASPA ID is ''naspaid''<br />
<br />
=== Tournaments ===<br />
<br />
; /tourney/''nnn''<br />
: return a hash of information about the tournament whose numeric id is ''nnn'' <br />
; /tourney?status=pending<br />
: return a hash with key tourneys having a value of a list of hashes each providing data about a rated tournament that is pending (valid results not yet received)<br />
; /tourney/''nnn''/submit<br />
: submit rating data for the tournament whose numeric id is ''nnn'' (requires authentication, endpoint not fully implemented as of 2024-03-25)</div>CM000003https://www.scrabbleplayers.org/wiki/index.php?title=Submitting_tournament_results&diff=19367&oldid=19027Submitting tournament results2024-03-25T16:35:28Z<p><span dir="auto"><span class="autocomment">How to upload the results: </span> + restful api</span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:35, 25 March 2024</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l196" >Line 196:</td>
<td colspan="2" class="diff-lineno">Line 196:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Software developers should contact John Chew for details of a richer</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Software developers should contact John Chew for details of a richer</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>data format recommended for automatic generation of result submissions.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>data format recommended for automatic generation of result submissions<ins class="diffchange diffchange-inline">,</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">and for instructions about using NASPA's [[RESTful API]]</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==== No software ====</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==== No software ====</div></td></tr>
</table>CM000003