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:

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

I think this is what you are looking for: