Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 1022 Bytes

API_SCHEMA.md

File metadata and controls

67 lines (53 loc) · 1022 Bytes

Schema for Server API Endpoints

POST /dfa

  • Takes DFA Model and example input string as parameters
{
    "model": {
        "inputs": [],
        "inputstate": ,
        "finalstates": [],
        "transit-table": {
            "": [],
            "": [],
        }
    },
    "input": ""
}
  • Returns whether the string has been accepted or not. Returns error (if any).
{
    "accepted": "True"
}

OR

{
    "error": ""
}

POST /nfa

  • Takes NFA Model and example input string as parameters
{
    "model": {
        "inputs": [],
        "inputstate": ,
        "finalstates": [],
        "transit-table": {
            "": [],
            "": [],
        }
    },
    "input": ""
}
  • Returns whether the string has been accepted or. Returns error (if any).
{
    "accepted": ""
}

OR

{
    "error": ""
}