The backend service that start new analysis for the calculation of the TD Interest and accesses the results. This component is a REST API implemented in Spring Boot.
Default port: 8080
- url: String
- sha: String
/api/cumulativeInterest?url=https://github.com/apache/commons-io&sha=b10969081c7e9a8b8529167ccfb10e6be14e9a94
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"interestEu":1635.52,
"interestHours":41.5
}
]
- url: String
- sha: String
/api/interestChange?url=https://github.com/apache/commons-io&sha=b10969081c7e9a8b8529167ccfb10e6be14e9a94
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"changeEu":0.00,
"changeHours":0.0,
"changePercentage":0E-20
}
]
- url: String
- sha: String
/api/normalizedInterest?url=https://github.com/apache/commons-io&sha=b10969081c7e9a8b8529167ccfb10e6be14e9a94
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"normalizedInterestEu":0.05203538306606205815,
"normalizedInterestHours":0.00131935555441333917
}
]
- url: String
- sha: String
- limit: Integer
/api/highInterestFiles?url=https://github.com/apache/commons-io&sha=b10969081c7e9a8b8529167ccfb10e6be14e9a94&limit=2
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/test/java/org/apache/commons/io/DirectoryWalkerTestCase.java",
"interestEu":377.65,
"interestHours":9.58,
"interestPercentageOfProject":0.23090240149663948119
},
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/test/java/org/apache/commons/io/input/TailerTest.java",
"interestEu":326.36,
"interestHours":8.27,
"interestPercentageOfProject":0.19954465546832622660
}
]
- url: String
- limit: Integer
/api/analyzedCommits?url=https://github.com/apache/commons-io&limit=2
[
{
"sha":"5111e23b01eb9e8e44361438395658d815aa0d3b",
"revisionCount":3185
},
{
"sha":"2e8281f0965b45853065422633841291ed996c48",
"revisionCount":3184
}
]
- url: String
- limit: Integer
/api/reusabilityMetrics?url=https://github.com/apache/commons-io&limit=2
[
{
"sha":"9423d7dc927d7d44980b08b59b2a127f8f26ae99",
"revisionCount":1,
"cbo":0.0,
"dit":0.0,
"wmc":0.0,
"rfc":0.0,
"lcom":0.0,
"nocc":0.0
},
{
"sha":"9eb351eb37d45d68027efedd7a961249dd573f9f",
"revisionCount":2,
"cbo":0.0,
"dit":0.0,
"wmc":0.0,
"rfc":0.0,
"lcom":0.0,
"nocc":0.0
}
]
- url: String
- sha: String
- limit: Integer
/api/reusabilityMetricsByCommit?url=https://github.com/apache/commons-io&limit=2
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/ByteOrderMark.java",
"cbo":0,
"dit":1,
"wmc":7,
"rfc":24,
"lcom":0,
"nocc":0
},
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/ByteOrderParser.java",
"cbo":0,
"dit":1,
"wmc":1,
"rfc":4,
"lcom":0,
"nocc":0
},
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/Charsets.java",
"cbo":0,
"dit":1,
"wmc":3,
"rfc":7,
"lcom":3,
"nocc":0
},
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/comparator/AbstractFileComparator.java",
"cbo":0,
"dit":1,
"wmc":3,
"rfc":9,
"lcom":3,
"nocc":0
},
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/comparator/CompositeFileComparator.java",
"cbo":1,
"dit":1,
"wmc":2,
"rfc":10,
"lcom":0,
"nocc":0
}
]
- url: String
- sha: String
- filePath: String
- limit: Integer
/api/reusabilityMetricsByCommitAndFile?url=https://github.com/apache/commons-io&sha=b10969081c7e9a8b8529167ccfb10e6be14e9a94&filePath=src/main/java/org/apache/commons/io/comparator/AbstractFileComparator.java
[
{
"sha":"b10969081c7e9a8b8529167ccfb10e6be14e9a94",
"revisionCount":3056,
"filePath":"src/main/java/org/apache/commons/io/comparator/AbstractFileComparator.java",
"cbo":0,
"dit":1,
"wmc":3,
"rfc":9,
"lcom":3,
"nocc":0
}
]
"Content-Type": "application/json"
/api/startInterestAnalysis
{
"url": "https://github.com/dimizisis/racegame"
}
,
{
"url": "https://github.com/dimizisis/racegame",
"token": "xxx"
}
{
"id": 61,
"url": "https://github.com/dimizisis/racegame",
"owner": "dimizisis",
"repo": "racegame"
}