Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 586 Bytes

README.md

File metadata and controls

43 lines (38 loc) · 586 Bytes

DevMomentAPI

this makes json API server from json format.

USAGE

Write json moment api format ./sample.json at the now.

{
    apis:[
        {
            path:"/hoge",
            response: {
                "message":"json"
            }
        }
    ]
}

式展開

{
    apis:[
        {
            path:"/hoge",
            response: {
                "message":"${user}"
            }
        }
    ]

    model:{
        "user": {"name": "hoge"}
    }
}

this json is Access localhost:8080/hoge

curl localhost:8080/hoge
{"message":"json"}