test endpoints api code example

Example 1: if endpoint is not ready how would you test it in api

I would mock it with Postman
and swap the base url when it's ready

Example 2: have you done api testing

I have worked on API testing in my project and I used
POSTMAN for manually testing and REST ASSURED
java LIBRARY for automation.
I used JDBC and it is a Java-based data access technology
used for Java database connectivity. It provides classes and
interfaces to connect or communicate Java application with
database.
JDBC API is a Java API that can access any kind of data
stored in a Relational Database. It enables Java programs to
execute SQL statements.