Encode a chain of chars using caesar cipher.
-
URL
<host>:<port>/cipher/v1/encode
-
Method:
POST
-
Data Params
{ "numberShift": int, "cipher": "string" }
-
Success Response:
- Code: 200
Content:{ encoded : 5, name : "i walked alone at the night, and sang a reggae for lonely street dogs." }
- Code: 200
-
Error Response:
- Code: 400 BAD REQUEST
Content:{ "timestamp" : "1587772800", "status": "400", "message": "the explained error message" }
- Code: 400 BAD REQUEST
-
Sample Call:
$.ajax({ url: "/cipher/v1/encode", data: "{ \"numberShift\": int, \"cipher\": \"string\" }" dataType: "json", type : "POST", success : function(r) { console.log(r); } });