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

NameValue

Authorization

Bearer <token>

Query Param

NameTypeDescription

project_id

string

Project id that was generated when the project was parsed.

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