Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds getting a list of domains for service_id #90

Merged
merged 3 commits into from
Oct 16, 2018

Conversation

weienwong
Copy link
Contributor

This adds an additional method to call the /service/SERVICE_ID/domain endpoint to retrieve a list of domains for a given Service ID. Corresponding endpoint and documentation here: https://docs.fastly.com/api/config#service_d5578a1e3bc75512711ddd0a58ce7a36

@weienwong weienwong changed the title Adds Adds getting a list of domains for service_id Oct 15, 2018
}

// ListDomain lists all domains associated with a given service
func (c *Client) ListDomain(i *ListServiceDomainInput) (ServiceDomainsList, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be plural (ListDomains). What do you think?

Copy link
Contributor Author

@weienwong weienwong Oct 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - it should be pluralized. However there is already a method name in the library called ListDomains (it's located in the domain.go and it calls /domains/list).

I say we rename it to ListServiceDomains.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea - let's go plural

@sethvargo sethvargo merged commit 14a7278 into fastly:master Oct 16, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants