http://100061.pythonanywhere.com/allbaskets/
{
"country":[
{
"item":"India",
"itemLink":"Asia"
},
{
"item":"USA",
"itemLink":"North America"
},
{
"item":"Germany",
"itemLink":"Europe"
}
],
"state":[
{
"item":"Uttar Pradesh",
"itemLink":"India"
},
{
"item":"Maharashtra",
"itemLink":"India"
},
{
"item":"Georgia",
"itemLink":"USA"
},
{
"item":"Nevada",
"itemLink":"USA"
},
{
"item":"Bavaria",
"itemLink":"Germany"
},
{
"item":"Brandenburg",
"itemLink":"Germany"
}
],
"city":[
{
"item":"Agra",
"itemLink":"Uttar Pradesh"
},
{
"item":"Noida",
"itemLink":"Uttar Pradesh"
},
{
"item":"Pune",
"itemLink":"Maharashtra"
},
{
"item":"Mumbai",
"itemLink":"Maharashtra"
},
{
"item":"Atlanta",
"itemLink":"Georgia"
},
{
"item":"Carson City",
"itemLink":"Nevada"
},
{
"item":"Munich",
"itemLink":"Bavaria"
},
{
"item":"Potsdam",
"itemLink":"Brandenburg"
}
]
}
{
"dbInsertedId": "63d8ec5e790d8f03c1318997"
}
http://100061.pythonanywhere.com/type/
{
"numberOfLevels": 3,
"classificationType": "N",
"dbInsertedId":"63d8ec5e790d8f03c1318997"
}
{
"insertedId": "63d8ed59790d8f03c13189aa",
"message": "Select first baskets from the given baskets",
"baskets": [
"country",
"state",
"city"
]
}
http://100061.pythonanywhere.com/basket/
{
"selectedBasket":"state",
"baskets":[
"country",
"state"
]
,
"insertedId":"63d8ed59790d8f03c13189aa"
}
{
"insertedId": "63d8ed59790d8f03c13189aa",
"permutations": [
[
"state",
"city"
],
[
"city",
"state"
]
],
"baskets": [
"country"
],
"message": "Select and save from the given permutations of basket order and select next basket from the given baskets"
}
http://100061.pythonanywhere.com/savepermutations/
{
"inserted_id": "63d8ed59790d8f03c13189aa",
"selectedPermutation":[
"state",
"city"
]
}
{
"message": "Selected permutation ['state', 'city'] is saved successfully."
}
http://100061.pythonanywhere.com/basket/
{
"selectedBasket":"BasketOrder",
"baskets":[
"BasketOrder"
]
,
"insertedId":"63d8ed59790d8f03c13189aa"
}
{
"insertedId": "63d8ed59790d8f03c13189aa",
"message": "3 baskets are already selected, select item from the given items for the first basket",
"basket": "country",
"items": [
"India",
"USA",
"Germany"
]
}
http://100061.pythonanywhere.com/item/
{
"selectedItem":"India",
"basket":"country",
"insertedId":"63d8ed59790d8f03c13189aa",
"status":true
}
{
"message": "Select and save permutation from the given permutations and select next item from the same basket country or next basket state",
"nextBasekt": "state",
"nextBasketItems": [
"Uttar Pradesh",
"Maharashtra",
"Georgia",
"Nevada",
"Bavaria",
"Brandenburg"
],
"permutations": [
[
"Germany",
"India"
],
[
"India",
"Germany"
]
],
"currentBasketItems": [
"USA"
],
"currentBasket": "country"
}
http://100061.pythonanywhere.com/savepermutations/
{
"inserted_id": "63d8ed59790d8f03c13189aa",
"selectedPermutation":[
"India",
"Germany"
]
}
{
"message": "Selected permutation ['India', 'Germany'] is saved successfully."
}
http://100061.pythonanywhere.com/item/
{
"selectedItem":"",
"basket":"",
"insertedId":"63d8ed59790d8f03c13189aa",
"status":false
}
{
"message": "Items from all required baskets are successfully selected"
}
http://100061.pythonanywhere.com/function/
{
"insertedId":"63d8ed59790d8f03c13189aa"
}
{
"_id": "63d8ed59790d8f03c13189aa",
"classificationType": "N",
"numberOfLevels": 3,
"eventId": "FB1010000000167516091556471636",
"dbInsertedId": "63d8ec5e790d8f03c1318997",
"baskets": [
"country",
"state",
"city"
],
"basketOrder": [
"country",
"state",
"city"
],
"finalSelection": {
"country": [
"India",
"Germany"
],
"state": [
"Uttar Pradesh",
"Georgia"
],
"city": [
"Pune",
"Munich"
]
},
"totalLength": {
"country": 3,
"state": 6,
"city": 8
},
"selectedLength": {
"country": 2,
"state": 2,
"city": 2
},
"probability": 0.35294117647058826,
"finalOutput": [
[
"India",
"Germany"
],
[
"Uttar Pradesh",
"Georgia"
],
[
"Pune",
"Munich"
]
]
}
http://100061.pythonanywhere.com/basket/
{
"selectedBasket":"state",
"baskets":[
"country",
"state"
]
,
"insertedId":"63d8ed59790d8f03c13189aa"
}
{
"insertedId": "63d8ed59790d8f03c13189aa",
"permutations": [
[
"state",
"city"
],
[
"city",
"state"
]
],
"baskets": [
"country"
],
"message": "Select and save from the given permutations of basket order and select next basket from the given baskets"
}
http://100061.pythonanywhere.com/savepermutations/
{
"inserted_id": "63d8ed59790d8f03c13189aa",
"selectedPermutation":[
"state",
"city"
]
}
{
"message": "Selected permutation ['state', 'city'] is saved successfully."
}
http://100061.pythonanywhere.com/basket/
{
"selectedBasket":"BasketOrder",
"baskets":[
"BasketOrder"
]
,
"insertedId":"63d8ed59790d8f03c13189aa"
}
http://100061.pythonanywhere.com/type/
{
"numberOfLevels": 3,
"classificationType": "N",
"dbInsertedId":"63d8ec5e790d8f03c1318997"
}
{
"insertedId": "63d8ed59790d8f03c13189aa",
"message": "Select first baskets from the given baskets",
"baskets": [
"country",
"state",
"city"
]
}
http://100061.pythonanywhere.com/item/
{
"selectedItem":"India",
"basket":"country",
"insertedId":"63d8ed59790d8f03c13189aa",
"status":true
}
{
"message": "Select and save permutation from the given permutations and select next item from the same basket country or next basket state",
"nextBasekt": "state",
"nextBasketItems": [
"Uttar Pradesh",
"Maharashtra",
"Georgia",
"Nevada",
"Bavaria",
"Brandenburg"
],
"permutations": [
[
"Germany",
"India"
],
[
"India",
"Germany"
]
],
"currentBasketItems": [
"USA"
],
"currentBasket": "country"
}
http://100061.pythonanywhere.com/savepermutations/
{
"inserted_id": "63d8ed59790d8f03c13189aa",
"selectedPermutation":[
"India",
"Germany"
]
}
{
"message": "Selected permutation ['India', 'Germany'] is saved successfully."
}
http://100061.pythonanywhere.com/item/
{
"selectedItem":"",
"basket":"",
"insertedId":"63d8ed59790d8f03c13189aa",
"status":false
}
{
"message": "Items from all required baskets are successfully selected"
}
http://100061.pythonanywhere.com/function/
{
"insertedId":"63d8ed59790d8f03c13189aa"
}
{
"_id": "63d8ed59790d8f03c13189aa",
"classificationType": "N",
"numberOfLevels": 3,
"eventId": "FB1010000000167516091556471636",
"dbInsertedId": "63d8ec5e790d8f03c1318997",
"baskets": [
"country",
"state",
"city"
],
"basketOrder": [
"country",
"state",
"city"
],
"finalSelection": {
"country": [
"India",
"Germany"
],
"state": [
"Uttar Pradesh",
"Georgia"
],
"city": [
"Pune",
"Munich"
]
},
"totalLength": {
"country": 3,
"state": 6,
"city": 8
},
"selectedLength": {
"country": 2,
"state": 2,
"city": 2
},
"probability": 0.35294117647058826,
"finalOutput": [
[
"India",
"Germany"
],
[
"Uttar Pradesh",
"Georgia"
],
[
"Pune",
"Munich"
]
]
}