\documentclass{article}

\begin{document}

\title{Welcome to api}
\author{Umesh Vishwakarma}

\maketitle

\section{Section 1}

Some text

More words follow

\section{Section 2}

\begin{figure}
\caption{This is a test for figurecaption. 
Multiple lines}
\end{figure}

The end

\end{document}
