> + }
> +
> + public static Properties defaultProperties() {
> + Properties properties = BaseHttpApiMetadata.defaultProperties();
> + return properties;
> + }
> +
> + public static class Builder extends BaseHttpApiMetadata.Builder<EtcdApi,
> Builder> {
> +
> + protected Builder() {
> + super(EtcdApi.class);
> + id("etcd").
> + name("Etcd API").
> + identityName("username:password").
> + defaultIdentity("Optional Username").
> + defaultCredential("Optional Password").
That's OK. One last thing is to think if this API is intended to be used
without authentication, or authentication will be mandatory.
If the common case is to use it without auth, then the api metadata should
provide the default values for the identity and credential (even dummy ones) so
users can create a context without having to explicitly pass dummy values.
Otherwise, this PR is good to go.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/195/files#r36194568