Skip to content

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

Merged
merged 3 commits into from
Jan 22, 2018

Conversation

Dorthu
Copy link
Collaborator

@Dorthu Dorthu commented Jan 12, 2018

This is a proposal for how the new endpoints will look. Please review
and comment here so I can implement.

@yoshizzle yoshizzle changed the title [ DO NOT MERGE ] Rework the account/settings endpoint Rework the account/settings endpoint Jan 17, 2018
examples:
curl: |
curl -h "Content-Type: application/json" \
-h "Authorization: Bearer $TOKEn" \
Copy link
Collaborator

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

type: String
description: This account's company name.
value: My Company LLC
description: State (or province) portion of this account's billing address.
Copy link
Collaborator

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.

@@ -16,10 +27,14 @@ schema:
type: String
description: City portion of this account's billing address.
Copy link
Collaborator

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.

value: PA
zip:
type: String
description: Zip Code portion of this account's billing address.
Copy link
Collaborator

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.

curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
curl -h "content-type: application/json" \
-h "authorization: bearer $token" \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Authorization
Bearer
$TOKEN

curl -h "Content-Type: application/json" \
-h "Authorization: Bearer $TOKEn" \
-X PUT -d '{
"network_helper": true,
"longview_subscription": "longview-10"
Copy link
Collaborator

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!

Copy link
Collaborator Author

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

description: This account's company name.
value: My Company LLC
description: >
State portion of this account's billing address, or providence if you
Copy link
Collaborator

Choose a reason for hiding this comment

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

province, not providence

Copy link
Contributor

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?

Copy link
Collaborator

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

PUT:
description: >
Edits your account settings.
examples:
curl: |
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
curl -h "Content-Type: application/json" \
Copy link
Contributor

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?

Copy link
Collaborator Author

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

Returns your current defaults.
examples:
curl: |
curl -h "Authorization: Bearer $TOKEN" \
Copy link
Contributor

Choose a reason for hiding this comment

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

-H here too

Edits your account's defaults.
examples:
curl: |
curl -h "Content-Type: application/json" \
Copy link
Contributor

Choose a reason for hiding this comment

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

-H here as well

@Dorthu Dorthu force-pushed the feature/rework-account-endpoint branch from 455a118 to 424f83d Compare January 18, 2018 19:20
description: This account's company name.
value: My Company LLC
description: >
State portion of this account's billing address, or providence if you
Copy link
Collaborator

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

@Dorthu Dorthu force-pushed the feature/rework-account-endpoint branch from 424f83d to e26a571 Compare January 19, 2018 16:06
schema:
first_name:
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Collaborator Author

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.
@Dorthu Dorthu force-pushed the feature/rework-account-endpoint branch from 007de1e to 1f96f27 Compare January 22, 2018 18:55
@Dorthu Dorthu merged commit 695987a into linode:develop Jan 22, 2018
alioso pushed a commit that referenced this pull request Aug 22, 2019
Quick fix to description of label validation for creating a Linode
LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
Added capitalization to titles and headers
LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants