Decode a chain of chars using caesar cipher.
-
URL
<host>:<port>/cipher/v1/decode
-
Method:
POST
-
Data Params
{ "numberShift": int, "cipher": "string" }
-
Success Response:
- Code: 200
Content:{ encoded : 5, name : "n bfqpji fqtsj fy ymj snlmy, fsi xfsl f wjllfj ktw qtsjqd xywjjy itlx." }
- 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/decode", data: "{ \"numberShift\": int, \"cipher\": \"string\" }" dataType: "json", type : "POST", success : function(r) { console.log(r); } });