korobool / MM-demo

0 stars 0 forks source link

Develop endpoint using aiohttp with TWO entries #1

Closed korobool closed 5 years ago

korobool commented 5 years ago

POST for accepting text from client GET to return MM JSON

{
    "id": 0,
    "nodes": [
        {
            "id": 10,
            "nodes": [],
            "text": "test_node1"
        },
        {
            "id": 20,
            "nodes": [
                {
                    "id": 70,
                    "nodes": [],
                    "text": "test_node7"
                },
                {
                    "id": 90,
                    "nodes": null,
                    "text": "test_node9"
                },
                {
                    "id": 100,
                    "nodes": null,
                    "text": "test_node10"
                }
            ],
            "text": "test_node2"
        },
        {
            "id": 30,
            "nodes": [],
            "text": "test_node3"
        },
        {
            "id": 40,
            "nodes": [
                {
                    "id": 80,
                    "nodes": [
                        {
                            "id": 200,
                            "nodes": null,
                            "text": "test_node20"
                        },
                        {
                            "id": 400,
                            "nodes": [],
                            "text": "test_node40"
                        }
                    ],
                    "text": "test_node7"
                }
            ],
            "text": "test_node4"
        },
        {
            "id": 50,
            "nodes": [],
            "text": "test_node5"
        }
    ],
    "text": "test_head"
}
korobool commented 5 years ago

PUT THE TEXT TO ANY QUEUE FOR PROCESSING (By background worker) PULL THE RESULT FROM QUEUE2

LOG EVERYTHING TO TEXT LOG