-
Notifications
You must be signed in to change notification settings - Fork 69
Rework the account/settings endpoint #44
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
Rework the account/settings endpoint #44
Conversation
src/data/endpoints/account.yaml
Outdated
examples: | ||
curl: | | ||
curl -h "Content-Type: application/json" \ | ||
-h "Authorization: Bearer $TOKEn" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capital N in TOKEN, please
src/data/objects/account.yaml
Outdated
type: String | ||
description: This account's company name. | ||
value: My Company LLC | ||
description: State (or province) portion of this account's billing address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be helpful to explain in detail that if the customer is not in the US, please enter the province here. I know you have (or province) in parens, but I know from experience dealing with a lot of Asian folks - for example - that it's not entirely clear.
That one Thai customer account from two months ago comes to mind as well.
I guess I'm saying, let's add a little more detail in the description to be 100% perfectly clear.
src/data/objects/account.yaml
Outdated
@@ -16,10 +27,14 @@ schema: | |||
type: String | |||
description: City portion of this account's billing address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to say "portion"? Seems weird. Maybe:
The City for this account's billing address.
src/data/objects/account.yaml
Outdated
value: PA | ||
zip: | ||
type: String | ||
description: Zip Code portion of this account's billing address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Zip Code for this account's billing address.
src/data/endpoints/account.yaml
Outdated
curl -H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $TOKEN" \ | ||
curl -h "content-type: application/json" \ | ||
-h "authorization: bearer $token" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Authorization
Bearer
$TOKEN
src/data/endpoints/account.yaml
Outdated
curl -h "Content-Type: application/json" \ | ||
-h "Authorization: Bearer $TOKEn" \ | ||
-X PUT -d '{ | ||
"network_helper": true, | ||
"longview_subscription": "longview-10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there is nothing else to edit in account/settings now?
If there is, please add them. If not, then, uh... cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with this proposal, there is not
src/data/objects/account.yaml
Outdated
description: This account's company name. | ||
value: My Company LLC | ||
description: > | ||
State portion of this account's billing address, or providence if you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
province, not providence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you hating on Rhode Island?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still not fixed
src/data/endpoints/account.yaml
Outdated
PUT: | ||
description: > | ||
Edits your account settings. | ||
examples: | ||
curl: | | ||
curl -H "Content-Type: application/json" \ | ||
-H "Authorization: Bearer $TOKEN" \ | ||
curl -h "Content-Type: application/json" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did these get changed to -h
from -H
when the man for curl says -H
is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞 I think I hit u
instead of y
one time and didn't notice
src/data/endpoints/account.yaml
Outdated
Returns your current defaults. | ||
examples: | ||
curl: | | ||
curl -h "Authorization: Bearer $TOKEN" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-H
here too
src/data/endpoints/account.yaml
Outdated
Edits your account's defaults. | ||
examples: | ||
curl: | | ||
curl -h "Content-Type: application/json" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-H
here as well
455a118
to
424f83d
Compare
src/data/objects/account.yaml
Outdated
description: This account's company name. | ||
value: My Company LLC | ||
description: > | ||
State portion of this account's billing address, or providence if you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still not fixed
424f83d
to
e26a571
Compare
schema: | ||
first_name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing PUT output
Manage default settings for your account. | ||
methods: | ||
GET: | ||
response: account_settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably include something like is_managed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This is a proposal for how the new endpoints will look. Please review and comment here so I can implement.
007de1e
to
1f96f27
Compare
Quick fix to description of label validation for creating a Linode
Added capitalization to titles and headers
Release to master
This is a proposal for how the new endpoints will look. Please review
and comment here so I can implement.