Exactly, both testing types are important but serve different purposes. Functional testing tends to focus on individual features, typically validating whether or not those features meet business requirements or end-user needs.
In contrast, integration testing is about the communication between these features or modules and ensuring they work together seamlessly, especially when external dependencies like databases, APIs, or services are involved.
So, functional testing might test a single endpoint, while integration testing checks if that endpoint interacts correctly with the database or other services.