I have an API that I created myself here: https://db.ygoprodeck.com/api-guide/
I get roughly 20,000 requests per day on it but have asked by a couple of people to open source it.
I look into this and I'm not entirely sure what way I would go about it or if it's even a good idea.
I created the API using PHP so would it be simply uploading my PHP file to something like github?
This would normally be fine but I'm worried that I would be exposing my database structure as it makes database calls within the PHP file.
I also have my DB details in the PHP file but I understand that I could put them in a different file (that would not be open sourced) and then call that file. But does that defeat the purpose of having it transparent and open sourced?
I'm not sure what the etiquette is here.