Upload a file using api

Hello. I am new to Gitea.
Can someone tell me how I can upload a file to a repository using the rest api. Please.
Any examples?

Hello guys.
Via the Gitea running locally from the site when a repository is selected, a binary can be uploaded, api may go something like this:
http://localhost:3000/defaultOrg/repo3/upload-file

Is there a equivalent of it in rest api published.
Please, I am trying hard to believe in the power of open source.