So I've been looking around to see if there is a way to push Apex Classes via the Metadata API, and I'm a little confused at the documentation. I've used the Eclipse plugin before, so I know that you can absolutely create Apex Classes through the API, I'm just not sure how to do that via Apex.
I've been reviewing this hear https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_classes.htm. It looks like they have some fields that you can set the name, and some other fields, but it looks like all of the content is coming from the base64 encoding. Is there a way that I can send the content over without generating a zip file?
Use case is this - I have a need to have a custom button or tab that will call an apex class that will query for all apex classes and their logic, then push to another Salesforce org via the metadata API.