How to test the backend in isolation

how do you isolate and unit test the backend code, and also is there a way to view the payload of these backend opertaions without connecting to the client ( like maybe some kind of API so i can just check the json and interact with it via postman?!? )
Was this page helpful?