Need Help with a Minimal API
I am creating a simple API that takes in the values for a new microservice and stores them in a database --- eventually consumers will read the database entry and create the underlying infrastructure.
There will be 3 types of services, APIs, Cron Job and Consumers. APIs and Cron Jobs will have all of the same information, but consumers need additional information related to their infrastructure needs, so I created a separate model for the consumer that still inherits the base service model.
My questions:
does this approach make sense?
Since an API will always be a 1 for the ServiceType enum, how to do set that default value for consumers?
How do I create and store a dictionary? The topics should be the key and permissions the value
Thanks in advanced!
There will be 3 types of services, APIs, Cron Job and Consumers. APIs and Cron Jobs will have all of the same information, but consumers need additional information related to their infrastructure needs, so I created a separate model for the consumer that still inherits the base service model.
My questions:
does this approach make sense?
Since an API will always be a 1 for the ServiceType enum, how to do set that default value for consumers?
How do I create and store a dictionary? The topics should be the key and permissions the value
Thanks in advanced!
GitHub
Contribute to jessig1/InfraManager development by creating an account on GitHub.