malenkix / guestbook

A smart guestbook for your events.
MIT License
0 stars 0 forks source link

API - data structure (post) #8

Open NadirHelix opened 6 years ago

NadirHelix commented 6 years ago
key value
url /posts
method POST
mimeType application/json

Data:

{
    "image" : {
        "file" : "12345",
        "posX" : 0,
        "posY" : 0,
        "width" : 100,
        "height" : 100,
        "rotation" : 15.0
    },
    "message" : {
        "content" : "Hi!",    // (max 24 characters)
        "color" : "#ffed21",
        "size" : 25,
        "posX" : 30,
        "posY" : 25,
        "rotation" : 45.0,    // (range: -180 , +180)
        "font" : "Arial-Black"
    },
    "background" : {
        "isImage" : true,
        "color" : "#aabbcc",   // (optional when isImage == true)
        "imageId" : "25"        // (optional when isImage == false)
    },
    "subtext" : "All the best to you!",    // (max 32 characters)
    "wishes" : "You are the best person in the world...",    // (max 144 characters)
    "name" : "Peter Parker"    // (max 64 characters)
}
NadirHelix commented 6 years ago

@malenkix please move this info to our wiki pages and close this issue afterward. Thanks!