How the score is calculated
Every operation is scored on its own, the results are averaged per rule, and the seven rule scores are added up. The weights below sum to 100.
| Category | Max points | What lowers it |
|---|---|---|
| Path naming | 20 | camelCase in a path, underscores in a segment, and verb segments such as get, create, update, delete, list or save. |
| HTTP verb usage | 20 | A GET with a request body, and action words (create, update, delete, remove, get, fetch, add, save) in the path. |
| Path structure and depth | 15 | Paths deeper than 3 segments. The issue list only flags paths deeper than 4. |
| Consistency | 15 | Duplicate method and path pairs, and singular and plural forms of the same word across paths (/user and /users). |
| Versioning | 10 | No path with a segment such as /v1 or /v2. One path is enough for full points. |
| Error handling coverage | 10 | The share of operations with no 4xx, 5xx or default response. If no operation declares any responses, this rule gets 2 of 10. |
| Operation documentation | 10 | The share of operations with neither a summary nor a description. |
The score reads the design of the extracted operations only. For the reasoning behind each rule, see the API quality checklist.