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

Diff for: README.md

+8
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

Diff for: labs/coding-101-rest-basics-ga/2.md

+1-1
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

Diff for: labs/coding-101-rest-basics-ga/3.md

+2-2
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

Diff for: labs/coding-101-rest-basics-ga/5.md

+3-3
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.

Diff for: labs/coding-101-rest-basics-ga/7.md

+2-2
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!

Diff for: labs/coding-101-rest-basics-ga/8.md

+3-3
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!

Diff for: labs/coding-102-rest-python-ga/6.md

+1-1
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

Diff for: labs/coding-102-rest-python-ga/byod.html

+2-2
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>

Diff for: labs/coding-201-parsing-xml/1.md

+1-1
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
```

Diff for: labs/coding-201-parsing-xml/2.md

+1-1
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.

Diff for: labs/coding-201-parsing-xml/5.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ The following sections provide additional resources for learning about the topic
44

55
### Extensible Markup Language (XML)
66

7-
If some of the XML terminology is still confusing, a good next step would be to visit: [http://www.w3schools.com/xml/](http://www.w3schools.com/xml/ "W3Schools XML").
7+
If some of the XML terminology is still confusing, a good next step would be to visit: [https://www.w3schools.com/xml/](https://www.w3schools.com/xml/ "W3Schools XML").
88

9-
To learn more about XML, you can also review the XML standard at [http://www.w3.org/TR/REC-xml/](http://www.w3.org/TR/REC-xml/ "Extensible Markup Language (XML) 1.0 (Fifth Edition)").
9+
To learn more about XML, you can also review the XML standard at [https://www.w3.org/TR/REC-xml/](https://www.w3.org/TR/REC-xml/ "Extensible Markup Language (XML) 1.0 (Fifth Edition)").
1010

1111

1212
### Python
@@ -23,7 +23,7 @@ Additionally, for an overview of the Python modules for Stream and Document Obje
2323
### Connected Mobile Experiences
2424

2525
**Product Information**<br/>
26-
[http://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html](http://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html "Connected Mobile Experiences Product Site")
26+
[https://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html](https://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html "Connected Mobile Experiences Product Site")
2727

2828
**Developer Resources**<br/>
2929
[https://developer.cisco.com/site/cmx-mobility-services/](https://developer.cisco.com/site/cmx-mobility-services/ "Connected Mobile Experiences Developer Site")

Diff for: labs/coding-202-parsing-json/1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Completion Time: 15 minutes
1313

1414
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 and the [Coding 201 lab](lab/coding-201-parsing-xml/step/1 "Coding 201 Parsing XML using Python Lab") for a similar approach to retrieving data using XML.
1515

16-
You should also have a basic familiarity with JSON. Otherwise, consider visiting the [W3Schools JSON Tutorial](http://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON Tutorial") to get a firm base to build upon.
16+
You should also have a basic familiarity with JSON. Otherwise, consider visiting the [W3Schools JSON Tutorial](https://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON Tutorial") to get a firm base to build upon.
1717

1818
For this lab, use Python 3.4+. To verify your version, enter the following command in a terminal:
1919

Diff for: labs/coding-202-parsing-json/4.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ For more information on the topics covered, visit the following resources.
44

55
## JavaScript Object Notation (JSON)
66

7-
For more information on JavaScript Object Notation (JSON), visit [http://www.json.org/](http://www.json.org/ "JSON.org").
7+
For more information on JavaScript Object Notation (JSON), visit [https://www.json.org/](https://www.json.org/ "JSON.org").
88

9-
Also consider visiting the JavaScript Object Notation (JSON) tutorials at [http://www.w3schools.com/js/js_json_intro.asp](http://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON")
9+
Also consider visiting the JavaScript Object Notation (JSON) tutorials at [https://www.w3schools.com/js/js_json_intro.asp](https://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON")
1010

1111
## Python
1212

@@ -18,7 +18,7 @@ The documentation for the JSON Python library can be found at [https://docs.pyth
1818
## Connected Mobile Experiences
1919

2020
**Product Information**<br>
21-
[http://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html](http://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html "Connected Mobile Experiences Product Site")
21+
[https://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html](https://www.cisco.com/c/en/us/solutions/enterprise-networks/connected-mobile-experiences/index.html "Connected Mobile Experiences Product Site")
2222

2323
**Developer Resources**<br>
2424
[https://developer.cisco.com/site/cmx-mobility-services/](https://developer.cisco.com/site/cmx-mobility-services/ "Connected Mobile Experiences Developer Site")

Diff for: labs/coding-205-writing-file-ga/5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can combine the techniques for writing to a file with the techniques for cal
66
Now, look at an example that retrieves some JSON from the [APIC-EM APIs](http://devnetapic.cisco.com).
77

88
```python
9-
# Import the requests library so you can use it to make REST calls (http://docs.python-requests.org/en/latest/index.html)
9+
# Import the requests library so you can use it to make REST calls (https://docs.python-requests.org/en/latest/index.html)
1010
import requests
1111

1212
# Import the JSON library. This library provides many handy features for formatting, displaying

Diff for: labs/coding-205-writing-file-ga/byod.html

+2-2
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>
@@ -42,7 +42,7 @@ <h3>Install the Requests Library</h3>
4242
<ul>
4343
<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>.
4444
</li>
45-
<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>
45+
<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>
4646
</ul>
4747
</li>
4848
</ul>

Diff for: labs/coding-207-putting-it-together-ga/byod.html

+2-2
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>
@@ -42,7 +42,7 @@ <h3>Install the Requests Library</h3>
4242
<ul>
4343
<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>.
4444
</li>
45-
<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>
45+
<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>
4646
</ul>
4747
</li>
4848
</ul>

Diff for: labs/coding-210-parsing-json-c++/1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Completion Time: 20 minutes
2121
##### On Windows #####
2222
Install Cygwin with the gcc compiler and libcurl libraries.
2323

24-
You should also have a basic familiarity with JSON. Otherwise, consider visiting the [W3Schools JSON Tutorial](http://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON Tutorial").
24+
You should also have a basic familiarity with JSON. Otherwise, consider visiting the [W3Schools JSON Tutorial](https://www.w3schools.com/js/js_json_intro.asp "W3Schools JSON Tutorial").
2525

2626
For this lab, use the GNU C Compiler (g\+\+) version 4.9.+ tailored for C\+\+. If you have g\+\+ already installed, verify your version entering the following command:
2727
```

Diff for: labs/coding-210-parsing-json-c++/2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To enable support for libcurl, complete the following steps.
1313
Cygwin enables you to add libcurl support by installing it through the Cygwin package support. This should already be set up on the DevNet Learning Lab for the Cygwin instance. However, you are doing this on your computer, make sure the libcurl libraries are installed.
1414

1515
2. Modify your code to include the Headers needed to use the functionality provided by libcurl.<br/>
16-
To use the functionality provided by libcurl, include the programmatic definitions into your source code and use them as prescribed by the [cURL documentation](http://curl.haxx.se/libcurl/). To simplify things even further, use the cURL "Easy" options for setting up a connection.
16+
To use the functionality provided by libcurl, include the programmatic definitions into your source code and use them as prescribed by the [cURL documentation](https://curl.haxx.se/libcurl/). To simplify things even further, use the cURL "Easy" options for setting up a connection.
1717

1818
3. Change how you compile the application to include the required libraries.<br/>
1919
Now that you've installed libcurl, you append the `-lcurl` flag to your compilation command.
@@ -34,7 +34,7 @@ using namespace std;
3434
3535
int main() {
3636
37-
string uri = "http://www.cisco.com";
37+
string uri = "https://www.cisco.com";
3838
3939
CURLcode res;
4040
CURL *curl = curl_easy_init();

0 commit comments

Comments
 (0)