API: Difference between revisions

447 bytes added ,  14 November 2019
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
__TOC__
__TOC__
PirateCraft application programming interface allowing access to data of the PirateCraft ecosystem.
PirateCraft application programming interface allowing access to data of the PirateCraft ecosystem.
This API has been created from scratch by [[GodsDead]] for the website https://piratemc.com
'''API is No currently public - I am creating this page as a placeholder'''
==Players API==
==Players API==
<p class="mw_paragraph">You can query players data by username or UUID using:
You can query players data by username or UUID using:
 
 
<syntaxhighlight lang="bash">
curl https://api.piratemc.com/pirate/<username>
</syntaxhighlight>
 
==Crews API==
This pulls overall data for all crews
 
 
<syntaxhighlight lang="bash">
curl https://api.piratemc.com/crews/<username>
</syntaxhighlight>
 
==Crew API==
This pulls a specific crews data




<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
curl api.piratemc.com/players/<username>
curl https://api.piratemc.com/crew/<username>
</syntaxhighlight>
</syntaxhighlight>