Skip to content

Commit 3e59a19

Browse files
authored
Merge pull request #68 from annegentle/ag-fix-https
Fix all http links to https as available
2 parents 1756e6a + a274c99 commit 3e59a19

File tree

19 files changed

+44
-36
lines changed

19 files changed

+44
-36
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ No configuration necessary.
2121

2222
* You can view these files using a Markdown editor.
2323

24+
## Link checking
25+
26+
You can run a link checker such as the Node-based [markdown-link-check](https://github.com/tcort/markdown-link-check) recursively through all labs by running:
27+
28+
```
29+
$ cd labs
30+
$ find . -name \*.md -exec echo "File: {}" \; -exec markdown-link-check {} \;
31+
```
2432

2533
## Known issues
2634

labs/coding-101-rest-basics-ga/2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ REST is centered around the HTTP request and response model. Consuming an API is
3838

3939
In this example, you request the list of hosts, and that information is returned to you in the response. The data returned in the response is usually formatted as JSON or XML.
4040

41-
(<a href="http://www.json.org/" target="_blank">JSON</a> -- JavaScript Object Notation, is a lightweight text-based open standard designed for human-readable data interchange.)
41+
(<a href="https://www.json.org/" target="_blank">JSON</a> -- JavaScript Object Notation, is a lightweight text-based open standard designed for human-readable data interchange.)
4242

4343
(<a href="https://www.w3schools.com/xml/xml_whatis.asp" target="_blank">XML</a> -- eXtensible Markup Language, a language designed to store and transport data.)
4444

labs/coding-101-rest-basics-ga/3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Choose one of the following http methods:
1111

1212
- **URL**
1313
* Determine the URL of the endpoint you want to call.
14-
* Example: `http://{APIC-EMController}/api/v1/ticket`
14+
* Example: `https://{APIC-EMController}/api/v1/ticket`
1515
* Where `{APIC-EMController}` is the controller IP or hostname.
1616
* Use the Cisco DevNet Learning Lab's APIC-EM controller, at https://sandboxapicem.cisco.com/, or enter the URL/IP address of an APIC-EM controller on your network.
1717
- **URL Parameters**
@@ -59,7 +59,7 @@ Study the Ticket API in APIC-EM:
5959

6060
* The API Reference includes attributes to be sent and returned. The Response portion defines the returned data, including HTTP status codes.
6161

62-
* HTTP status codes indicate success, error, or other conditions. For more information, see [http://www.w3.org/Protocols/HTTP/HTRESP.html](http://www.w3.org/Protocols/HTTP/HTRESP.html)
62+
* HTTP status codes indicate success, error, or other conditions. For more information, see [https://www.w3.org/Protocols/HTTP/HTRESP.html](https://www.w3.org/Protocols/HTTP/HTRESP.html)
6363
Some common codes are:
6464
* 200 OK
6565
* 202 Accepted/Processing

labs/coding-101-rest-basics-ga/5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
There are HTTP clients you can use to quickly test web services. They provide a way to construct/send requests to REST APIs and view the responses:
44

5-
* Postman - [http://www.getpostman.com/](http://www.getpostman.com/)
5+
* Postman - [https://www.getpostman.com/](https://www.getpostman.com/)
66
* Firefox RestClient - [https://addons.mozilla.org/en-US/firefox/addon/restclient/](https://addons.mozilla.org/en-US/firefox/addon/restclient/)
7-
* Command Line using curl - [http://curl.haxx.se/docs/httpscripting.html# POST](http://curl.haxx.se/docs/httpscripting.html# POST)
7+
* Command Line using curl - [https://curl.haxx.se/docs/httpscripting.html# POST](https://curl.haxx.se/docs/httpscripting.html# POST)
88
* SOAPUI - [https://www.soapui.org/](https://www.soapui.org/)
99

1010
Many IDEs have also consoles for testing REST Services built in
@@ -39,7 +39,7 @@ On OS X, to use Python 3.4, you may need to accept the SSL certificate before ca
3939
* **Method**
4040
* ``A.`` Select **POST**.
4141
* **URL**
42-
* ``B.`` Enter `http://{APIC-EMController}/api/v1/ticket`
42+
* ``B.`` Enter `https://{APIC-EMController}/api/v1/ticket`
4343
* If you are not using your APIC-EM controller, use the APIC-EM Lab: <a href="https://devnetapi.cisco.com/sandbox/apic_em">https://sandboxapicem.cisco.com/</a>.
4444
* **Body**
4545
* ``C.`` Enter the username and password in JSON format. These credentials are used to log into the APIC-EM Controller. If you are accessing the DevNet APIC-EM Lab, enter the username and password, as specified earlier. Otherwise, enter the required username and password for your APIC-EM Controller.

labs/coding-101-rest-basics-ga/7.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* **Method**
99
* `A.` Select **GET** in the Method drop down
1010
* **URL**
11-
* `B.` Enter **http://{APIC-EMController}/api/v1/host**
11+
* `B.` Enter **https://{APIC-EMController}/api/v1/host**
1212
* If you are not using your APIC-EM Controller, use the APIC-EM Lab: https://sandboxapicem.cisco.com.
1313
* **Headers**
1414
* `C.` Enter the 'Content-Type' and value 'application/json'
@@ -26,7 +26,7 @@
2626
![](/posts/files/coding-101-rest-basics-ga/assets/images/postman5.png "Response")
2727

2828
## Things to Try
29-
1. In Postman, append '?limit=1&offset=1' to the URL http://{APIC-EMController}/api/v1/host so reads as 'http://{APIC-EMController}/api/v1/host?limit=1&offset=1'. Click the **Send** button. How does the return data differ? Check the API Reference Guide for more information about the Get Host API call.
29+
1. In Postman, append '?limit=1&offset=1' to the URL https://{APIC-EMController}/api/v1/host so reads as 'https://{APIC-EMController}/api/v1/host?limit=1&offset=1'. Click the **Send** button. How does the return data differ? Check the API Reference Guide for more information about the Get Host API call.
3030
<br/><br/>
3131

3232
#### Congratulations! You made your first REST API call using the APIC-EM Service Ticket!

labs/coding-101-rest-basics-ga/8.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For details about the Get Network Device API, consult the [APIC-EM API Docs](htt
1212
* **Method**
1313
* **A.** Select **GET**.
1414
* **URL**
15-
* **B.** Enter `http://{APIC-EMController}/api/v1/network-device` or, if you are not using your APIC-EM Controller, enter the APIC-EM Lab controller`https[]()://sandboxapicem.cisco.com`.
15+
* **B.** Enter `https://{APIC-EMController}/api/v1/network-device` or, if you are not using your APIC-EM Controller, enter the APIC-EM Lab controller`https://sandboxapicem.cisco.com`.
1616
* **Headers**
1717
* **C.** Enter the `Content-Type` and value `application/json`.
1818
* **C.** Enter `X-Auth-Token` and the value of the service ticket created earlier.
@@ -28,8 +28,8 @@ The output should look similar to the example in this screenshot. For display pu
2828
![](/posts/files/coding-101-rest-basics-ga/assets/images/postman7.png "Response")
2929

3030
### Things to Try
31-
* In Postman, append `/1/2` so the call becomes `http://{APIC-EMController}/api/v1/network-device/1/2` and click **Send**. How does the output differ?
31+
* In Postman, append `/1/2` so the call becomes `https://{APIC-EMController}/api/v1/network-device/1/2` and click **Send**. How does the output differ?
3232
* Compare the change you made in *Get Network Devices API* call with the change you made in the *Get Hosts* call in the previous exercise (Step 7). How are they different and why? Hint: Check the API Reference Guide for each of these API calls.
33-
* In Postman, change the API call `http://{APIC-EMController}/api/v1/network-device/1/2` to `http://{APIC-EMController}/api/v1/user` and click **Send**. How is the returned data different and what does it represent? Hint: Check the API Reference Guide
33+
* In Postman, change the API call `https://{APIC-EMController}/api/v1/network-device/1/2` to `https://{APIC-EMController}/api/v1/user` and click **Send**. How is the returned data different and what does it represent? Hint: Check the API Reference Guide
3434

3535
### Congratulations! You've completed lab Coding 101 - REST API Basics!

labs/coding-102-rest-python-ga/6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ To run this code sample:
134134
* On Mac OS or Linux, enter: `python3 build-topology-web-server.py`
135135
5. The Flask web server will start listening at IP 127.0.0.1 port 5000. If the error: *"ImportError: No module named 'flask'"* is given, click the *"How to Set up Your Computer"* link at the top of this webpage.
136136
![](/posts/files/coding-102-rest-python-ga/assets/images/webapp-start.png)
137-
6. Open a web browser such as Chrome or Safari and, in the URL field, enter **http://127.0.0.1:5000**. You should see a result like the following example.
137+
6. Open a web browser such as Chrome or Safari and, in the URL field, enter **https://127.0.0.1:5000**. You should see a result like the following example.
138138
![](/posts/files/coding-102-rest-python-ga/assets/images/topology-graph.png)
139139

140140

labs/coding-102-rest-python-ga/byod.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h3>Install Python</h3>
1010

1111
<h3>Install the Requests Library</h3>
1212
<ul>
13-
<li>You can read more about the <a href="http://docs.python-requests.org/en/latest/" target="_blank">Requests Library here </a></li>
13+
<li>You can read more about the <a href="https://docs.python-requests.org/en/latest/" target="_blank">Requests Library here </a></li>
1414
<li>To install Requests for Python 3 on Mac OS, use these command line commands:
1515
<ul>
1616
<li><pre>
@@ -61,7 +61,7 @@ <h3>Install the Flask Library</h3>
6161
<ul>
6262
<li>You can use the the <a href="https://developer.cisco.com/site/devnet/sandbox/" target="_blank">DevNet Sandbox</a> Always-On APIC-EM Lab: <a href="https://sandboxapic.cisco.com" target="_blank">https://sandboxapic.cisco.com</a>.
6363
</li>
64-
<li><a href="http://blog.getpostman.com/index.php/2014/01/28/using-self-signed-certificates-with-postman/" >Be sure to accept the SSL Certificate </a>
64+
<li><a href="https://blog.getpostman.com/index.php/2014/01/28/using-self-signed-certificates-with-postman/" >Be sure to accept the SSL Certificate </a>
6565
</ul>
6666
</li>
6767
</ul>

labs/coding-201-parsing-xml/1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Completion Time: 20 minutes
1616

1717
Go through the [Coding 101 lab](lab/coding-101-rest-basics-ga/step/1 "Coding 101 Lab") if you are unfamiliar with Python and retrieving results from a RESTful service.
1818

19-
You should be familiar with XML. Otherwise, consider visiting the [W3Schools XML Tutorial](http://www.w3schools.com/xml "W3Schools XML Tutorial") to get a firm base to build upon.
19+
You should be familiar with XML. Otherwise, consider visiting the [W3Schools XML Tutorial](https://www.w3schools.com/xml "W3Schools XML Tutorial") to get a firm base to build upon.
2020

2121
For this lab, use Python 3.4+. If you are on a DevNet Zone station, the correct version of Python should already be installed. If you are following this lab online, check the version by entering the following command in a terminal or command prompt window:
2222
```

labs/coding-201-parsing-xml/2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ In the description shown, the elements tagged as `AccessPoint` have sub-elements
6262
```
6363
Where the tag is "AccessPoint" and there are six attributes: `apMode`, `ethMacAddress`, `ipAddress`, `name`, `numOfSlots`, and `radioMacAddress`.
6464

65-
For a complete reference about map information from CMX, review the online documentation at [https://developer.cisco.com/site/cmx-mobility-services/documents/api-reference-manual/index.gsp# maps-api](https://developer.cisco.com/site/cmx-mobility-services/documents/api-reference-manual/index.gsp# maps-api "Online Documentation for CMX Maps API")
65+
For a complete reference about map information from CMX, review the online documentation at [https://developer.cisco.com/site/cmx-mobility-services/documents/api-reference-manual/#maps-api](https://developer.cisco.com/site/cmx-mobility-services/documents/api-reference-manual/#maps-api "Online Documentation for CMX Maps API")
6666

6767
Now, you have a better understanding of what the structure looks like. Next, you'll parse the data.

0 commit comments

Comments
 (0)