-
Notifications
You must be signed in to change notification settings - Fork 147
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
Updates based on issues in the WooCommerce repo #243
Conversation
This also removes redundant properties from Orders Fixes woocommerce/woocommerce#43444
Refs #46895
Property type set to string to match schema Fixes woocommerce/woocommerce#28474
Switching the reviewers to Nestor and Naman since they are working on docs updates. |
| `rate_code` | string | Tax rate code. <i class="label label-info">read-only</i> | | ||
| `rate_id` | integer | Tax rate ID. <i class="label label-info">read-only</i> | | ||
| `label` | string | Tax rate label. <i class="label label-info">read-only</i> | | ||
| `compound` | boolean | Show if is a compound tax rate. <i class="label label-info">read-only</i> | |
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.
"show if it's a compound" is better maybe?
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.
Yeah, that grammar could definitely be improved. Updated in 849b306
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.
Looks good to me overall!
| `orderby` | string | Sort collection by object attribute. Options: `date`, `modified`, `id`, `include`, `title` and `slug`. Default is `date`. | | ||
| `parent` | array | Limit result set to those of particular parent IDs. | | ||
| `parent_exclude` | array | Limit result set to all items except those of a particular parent ID. | | ||
| `dp` | integer | Number of decimal points to use in each resource. Default is `2`. | |
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.
Side note: should we perhaps use the full name decimal_points
instead of the abbreviation here?
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 we perhaps use the full name decimal_points instead of the abbreviation here?
dp
is the name of the parameter used in the REST API, so if we changed it in the docs, we'd need to update the endpoint as well. Replacing dp
with decimal_points
would be backwards-incompatible, but I guess we could add decimal_points
as an alias of dp
.
I agree decimal_points
would have been a better name from the start, though. For now I think we should keep the docs and the endpoint as they are.
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 agree decimal_points would have been a better name from the start, though. For now I think we should keep the docs and the endpoint as they are.
👍
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.
Looks good, 🚢
| `orderby` | string | Sort collection by object attribute. Options: `date`, `modified`, `id`, `include`, `title` and `slug`. Default is `date`. | | ||
| `parent` | array | Limit result set to those of particular parent IDs. | | ||
| `parent_exclude` | array | Limit result set to all items except those of a particular parent ID. | | ||
| `dp` | integer | Number of decimal points to use in each resource. Default is `2`. | |
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 agree decimal_points would have been a better name from the start, though. For now I think we should keep the docs and the endpoint as they are.
👍
There are several issues in the backlog of the REST API focus in the WooCommerce repo. This attempts to batch fixes for those issues into one PR.
To test
./build.sh
. This will create abuild
directory in the repo.index.html
file in the build directory and open it in a browser. You should see something that looks just like the live REST API docs site.