Based on current testing in my dev environment, it seems that using the Create API Definition endpoint within the on-prem community edition, followed by a reload request, doesn’t persist the API definitions within the gateway after container deletion and re-creation. Can someone confirm this?
If true, I would recommend adjusting the documentation at https://tyk.io/docs/get-started/with-tyk-on-premise/tutorials/tyk-on-premise-community-edition/create-api/ to not encourage the use of the API to create the API definition but rather to use the file approach from the start.
If the gateway does save the definition into the filesystem, the I would note that using a Dockerized version without mounting a persistent volume for the ./apps dir will result in losing your definitions. And if the volume isn’t shared between container instances, then only one of the container instances will know about the definitions. This isn’t clear in the documentation on how the gateway works when using CE vs. commercial editions that persist to MongoDB.