... | ... | @@ -618,4 +618,34 @@ A tree structure with the proposed or initial code design architecture. |
|
|
]
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
**Move Class Refactorings Metrics**
|
|
|
|
|
|
Returns metrics coupling and cohesion before and after the suggested refactorings.
|
|
|
|
|
|
**Sample Request**
|
|
|
|
|
|
In this example, we want to retrieve the move class refactoring metrics for the project with ID ‘Neurasmus’. Same output for java and c projects.
|
|
|
|
|
|
{GET} http://195.251.210.147:7070/moveClassRefactoringMetrics/search?projectID=Neurasmus
|
|
|
|
|
|
Headers: -
|
|
|
|
|
|
Authorization: -
|
|
|
|
|
|
**Response**
|
|
|
|
|
|
The response consists of the previous and after refactoring metrics coupling and cohesion on project level.
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"moveClassRefactoringsMetrics":{
|
|
|
"name":"Neurasmus",
|
|
|
"couplingOld":2,
|
|
|
"couplingNew":3,
|
|
|
"cohesionOld":4.333,
|
|
|
"cohesionNew":3
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |