Problem Statement
What is the core function for defining RTK Query APIs?
Explanation
createApi is the core function of RTK Query that defines a set of endpoints describing how to retrieve and update data from backend APIs or other async sources. It takes configuration including reducerPath, baseQuery, and endpoints, and generates an API slice with auto-generated React hooks for each endpoint. The createApi function returns everything needed to integrate the API into your Redux store including the reducer, middleware, and hooks.
