AppThreat / AppThreat/atom

OpenAPI spec generation in Java Spring does not prefix endpoints with the RequestMapping

Open
#143 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
98
Forks
10
Avg merge
6h 19m
Merged PRs (30d)
1

Description

## Describe the issue
When trying to generate openAPI spec for a java Spring application using atom and atom-tools,
the endpoints in generated spec are missing the `@RequestMapping` prefix path
eg.
```
@RestController
@RequestMapping("/user")
public class UserController {
@Autowired
private TransactionService transactionService;
@Autowired
private BalanceService balanceService;
@Autowired
private MailService mailService;
@Autowired
private UserService userService;
@Autowired
PasswordEncoder passwordEncoded;

@GetMapping("/balance/{accountNo}")
```
Here the generated openAPI spec has endpoint `/balance/{accountNo}`
whereas the actual endpoint should be `/user/balance/{accountNo}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.