Listing all endpoints of a branch

GET /endpoints/list

This api will list all the detected endpoints for the codebase that was parsed by momentum.

Headers

Query Param

Response

{
    "/server.py": [
        {
            "entryPoint": "GET /",
            "identifier": "/server.py:index"
        },
        {
            "entryPoint": "GET /helloworld",
            "identifier": "/server.py:list"
        },
        {
            "entryPoint": "GET /search",
            "identifier": "/server.py:search"
        },
        {
            "entryPoint": "POST /add",
            "identifier": "/server.py:add"
        },
        {
            "entryPoint": "POST /delete",
            "identifier": "/server.py:delete"
        }
    ]
}

The success response will give an empty array in case the repo does not have any REST endpoints.

Last updated