Skip to content

Fixed outdated references to /linode/distributions #91

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/getting_started/guides/curl/CreateLinode.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function Introduction(props) {
Just like selecting a type and a region, issue a call to the API, this time
for a list of available distributions:
</p>
<Code example={`curl ${API_ROOT}/${API_VERSION}/linode/distributions`} name="bash" />
<Code example={`curl ${API_ROOT}/${API_VERSION}/images`} name="bash" />
<p>
This will provide you with a list of distributions like the following:
</p>
Expand All @@ -159,7 +159,7 @@ export default function Introduction(props) {
/>
<p>
For detailed information about each field, see the complete&nbsp;
<Link to={`/${API_VERSION}/reference/endpoints/linode/distributions`}>
<Link to={`/${API_VERSION}/reference/endpoints/images`}>
distribution reference
</Link>
. For this example, we’ll go with Debian 8.
Expand Down
4 changes: 2 additions & 2 deletions src/getting_started/guides/curl/TestingWithCurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export default function Introduction(props) {
indicator in the reference documentation. For API endpoints where this indicator is
missing, you're able to use curl to test them without any additional steps.
For example, we could&nbsp;
<Link to={`/${API_VERSION}/reference/endpoints/linode/distributions`}>
<Link to={`/${API_VERSION}/reference/endpoints/images`}>
list supported distributions
</Link>:
</p>
<Code example={`curl ${API_ROOT}/${API_VERSION}/linode/distributions`} name="bash" />
<Code example={`curl ${API_ROOT}/${API_VERSION}/images`} name="bash" />
<p>
This will give you a response like this:
</p>
Expand Down
10 changes: 5 additions & 5 deletions src/getting_started/intros/Filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Filtering() {
all distributions whose vendor is "Debian":
</p>
<Code
example={`curl "${API_ROOT}/${API_VERSION}/linode/distributions" \\
example={`curl "${API_ROOT}/${API_VERSION}/images" \\
-H 'X-Filter: {
"vendor": "Debian"
}'`}
Expand All @@ -33,7 +33,7 @@ export default function Filtering() {
including more than one key (in this case, all recommended Debians):
</p>
<Code
example={`curl "${API_ROOT}/${API_VERSION}/linode/distributions" \\
example={`curl "${API_ROOT}/${API_VERSION}/images" \\
-H 'X-Filter: {
"vendor": "Debian",
"recommended": true
Expand All @@ -46,7 +46,7 @@ export default function Filtering() {
you can add an operator:
</p>
<Code
example={`curl "${API_ROOT}/${API_VERSION}/linode/distributions" \\
example={`curl "${API_ROOT}/${API_VERSION}/images" \\
-H 'X-Filter: {
"+or": [
{ "vendor": "Debian" },
Expand All @@ -61,7 +61,7 @@ export default function Filtering() {
operator as they were in the first example. Other operators are available:
</p>
<Code
example={`curl "${API_ROOT}/${API_VERSION}/linode/distributions" \\
example={`curl "${API_ROOT}/${API_VERSION}/images" \\
-H 'X-Filter: {
"disk_minimum": {
"+lte": 500
Expand All @@ -75,7 +75,7 @@ export default function Filtering() {
or who have a disk_minimum between 100 and 500 (inclusive).
</p>
<Code
example={`curl "${API_ROOT}/${API_VERSION}/linode/distributions" \\
example={`curl "${API_ROOT}/${API_VERSION}/images" \\
-H 'X-Filter: {
"+or": [
{
Expand Down