tabletop-api v0.0.2
TableTopAPI
Rest API for table top gaming, character creation, dice rolls. Currently Supporting AD&D 2.0 Roll MethodsI-IV, plus many other useful calls. Including a new addition of proficiency JSON files.
Roll for Hit Points. Options specific for class. Note appending max will automatically return the max HP value for the class in the call.
/roll-hp/
Max example: /roll-hp/max
Array of languages '/languages'
Array of Races '/races'
Alignment '/alignment' Stats '/stats', common.stats);
Player Classes '/playerClasses' '/roll-hp/:pcClass' Options: fighter | rouge | wizard : max Also running list of other that classes based on these 3main classes.
Example Request ://Example var xhReq = new XMLHttpRequest(); xhReq.open("GET", "http://localhost:2001/method1", false); xhReq.send(null); var serverResponse = xhReq.responseText; console.log(serverResponse);
The MIT License (MIT)
Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.