REST API
This page documents the active REST API surface in SMM.
Note: Swagger UI is the authoritative source for the full schema and examples. Default path:
http://localhost:<port>/api/docs.
Start API
From the workspace root:
bash
smm dashboard serveDefault port is 3000 unless PORT is set.
Pull Requests
GET /pull-requests/summaryGET /pull-requests/through-timeGET /pull-requests/by-authorGET /pull-requests/average-review-timeGET /pull-requests/average-open-byGET /pull-requests/average-commentsGET /pull-requests/authorsGET /pull-requests/labels
Common query params:
start_date,end_dateauthors,labelsstatus
Pipelines
GET /pipelines/summaryGET /pipelines/by-statusGET /pipelines/jobs-by-statusGET /pipelines/runs-durationGET /pipelines/jobs-duration-by-workflowGET /pipelines/deployment-frequencyGET /pipelines/runs-byGET /pipelines/jobs-average-timeGET /pipelines/workflowsGET /pipelines/jobsGET /pipelines/statusesGET /pipelines/conclusionsGET /pipelines/branchesGET /pipelines/events
Common query params:
start_date,end_dateworkflow_pathstatus,conclusionjob_name,branch,eventaggregate_by,top
Source Code
GET /code/pairing-indexGET /code/code-churnGET /code/couplingGET /code/entity-churnGET /code/entity-effortGET /code/entity-ownershipGET /code/authors
Common query params:
start_date,end_dateauthorsignore_files,include_onlytoptype_churn
Jira
GET /jira/issues
Common query params:
statusstartDate,endDate
SonarQube
GET /sonarqube/qualityGET /sonarqube/component-tree
Common query params:
measurescomponent,depth,metricsignore_files,include_files,remove_folders
Configuration
GET /configuration
Returns active runtime configuration values used by dashboard and API integrations.