OntoBot-org / ontobot-app

1 stars 0 forks source link

Error messages and Success messages should be added. #18

Open madusankanipunajith opened 1 year ago

madusankanipunajith commented 1 year ago

All the response messages received by the FE from the BE with two types. They are, 1) success messages

{
            "code": 201,
            "msg":  "This is the payload content",
            "type": "success"
}

2) error messages

{
            "code" : 500,
            "topic" : "Relational pattern violation",
            "msg" : "Following concepts should have connected with object property",
            "meta" : "Additional Information",
            "type" : "error"
}

We can easily identify the response message's type by accessing it type attribute of the object.

chathuRashmini commented 1 year ago

What files should be added with the success messages?