Todo:
* Create Load API
* Finish Developer Dashboard for Mod IDs
* Update Save API to check Mod IDs
System Details
* Each mod will get a Mod ID on the Developer Dashboard
* Mods will need to get the cookie "accesskey" that will hold the User ID (not sure how to do this yet, Dillyg10 is looking into it.)
* Each mod will have 2 save slots
* Mod save data will not be able to use slashes
* Mod Data will be saved and returned as raw text
Format: RESTful/JSON
Save World
Code:
action = post/get
uid = post/get
mid = post/get
sid = post/get
data = post
Request:
http://playminicraft.com/api/?action=save&uid={user_id}&mid={mod_id}&sid={slot_id (1-2)}
Response:
200 - Save Worked
400 - Bad Request
500 - Internal Error
Thinking Notes:
* I am thinking that saves might look like this, but not sure how you guys are doing it.
Code:
inventory|s1-10-2!s2-4-3=World|l1-0-0-0|l2-0-1-0
Inventory:
Slot 1 - Item 10 - Amount 2
Slot 2 - Item 4 - Amount 3
World:
Level 1 - X 0 - Y 0 - Water 0
Level 1 - X 0 - Y 1 - Water 0
Like I said not sure how you guys are doing it, but this is how I am seeing it. Let me know what you are doing.