When I check official documentation, I understood that I need to prepare the metadata about a data source and then I can upload this information to data catalog using the rest API. When I use the web interface however, I can upload documents to be analzed by the Azure Data catalog itself. Is it possible to use the REST API in the same manner?
No. The REST API doesn't do any analysis. I believe only the client does that.