/dotPyREST

REST API for DotPy round 3

Primary LanguagePythonMIT LicenseMIT

dotPyREST

REST API for DotPy round 3

/user/show

ROOT: /user/

/user/create -> POST

// Params: 
data -> {
    "user" : "userID",
    "value": "output"
}

// RETURNS
data (stored in DB) -> {
    "user" : "userID",
    "value": "output"
}

/user/delete-> DELETE

// Params: 
data -> "user" = "userID"

// RETURNS
data  -> {
    "deleted": true
}

/user/fetch -> GET

// Params: 
data -> "user" = "userID"


// RETURNS
data (stored in DB) -> {
    "user" : "userID",
    "value": "output"
}

/user/update-> POST

// Params: 
data -> {
    "user" : "userID",
    "value": "output"
}

// RETURNS
data (stored in DB) -> {
    "user" : "userID",
    "value": "output"
}

/user/fetchall-> GET

// Params: 
NONE

// RETURNS
data (stored in DB) -> {
    "user1": {
        "output": "codeOP"
    },
    "user2": {
        "output": "codeOP"
    },
    "user3": {
        "output": "codeOP"
    }
    .
    .
    .
}