add minimal resource interface
added AddResource to endpoint
added resourceContext