- path variable 이랑 query params 규칙 어떻게 할 것인지 논의
{
"request" : {
"headers" : {
"Content-Type" : {
"Type" : "String",
"Desc" : "Define request data type",
"Value" : "application/json"
},
"Age" : {
"Type" : "Integer",
"Desc" : "Fields for cashing",
"Value" : "15"
},
},
"body" : {
"ID" : {
"Type" : "String",
"Desc" : "Login User ID",
"isList" : false,
"Constraints" : [
"NotBlank", "Size(min=4, max=10)", "NotNull"
],
"Value" : "Hello"
},
"telephones" :{
"Type" : "String",
"Desc" : "cell-phone numbers with candidates",
"isList" : true,
"Constraints" : [
"NotBlank", "NotNull", "Length(min=2, max=5)"
],
"Value" : ["010-1234-1234", "010-1234-1235", "010-2345-1234"]
}
},
"path_variable" : {
"userid" : {
"Type" : "String",
"Desc" : "for login",
"Constraints" : [
"NotNull"
],
"Value" : "hi"
}
},
"params" : {
"age" : {
"Type" : "int",
"Desc" : "user age",
"Constraints" : [
"NotNull"
],
"Value" : 15
}
}
}
}