Skip to content

Commit a274c99

Browse files
committed
Removes https for devnetapic specifically as it is not available from https
1 parent 9021346 commit a274c99

File tree

5 files changed

+6
-6
lines changed
  • labs
    • coding-101-rest-basics-ga
    • coding-205-writing-file-ga
    • coding-207-putting-it-together-ga

5 files changed

+6
-6
lines changed

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/6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Now, look at the Get Hosts endpoint. A host is an end device attached to the network, such as a computer connected to a wireless device. Your goal is to find the hosts and display information about them.
66

7-
To construct a request that retrieves a list of hosts, refer to the <a href="https://devnetapic.cisco.com/" target="_blank">APIC-EM API Docs</a>. Click on Inventory under Services to find Get /host. These provide the following information:
7+
To construct a request that retrieves a list of hosts, refer to the <a href="http://devnetapic.cisco.com/" target="_blank">APIC-EM API Docs</a>. Click on Inventory under Services to find Get /host. These provide the following information:
88

99
* Method
1010
* URL

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Now, look at the Get Network Devices endpoint. A Network Device transports data to/from host devices or other network devices. A network device is typically a hub, switch, or router. It can be connected to the network by an Ethernet cable or wireless connection. Your goal is to find the network devices and display information about them.
44

5-
For details about the Get Network Device API, consult the [APIC-EM API Docs](https://devnetapic.cisco.com/).
5+
For details about the Get Network Device API, consult the [APIC-EM API Docs](http://devnetapic.cisco.com/).
66

77
1. Set up the API Call in Postman. Use the service ticket to authorize a request to GET the network devices from the controller.
88

labs/coding-205-writing-file-ga/5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Often, when you are working with REST APIs (see [Coding 101: Rest Basics Learnin
33

44
You can combine the techniques for writing to a file with the techniques for calling REST APIs that you learned in [Coding 102 Calling REST APIs from Python](/lab/coding-102-rest-python-ga/step/1)
55

6-
Now, look at an example that retrieves some JSON from the [APIC-EM APIs](https://devnetapic.cisco.com).
6+
Now, look at an example that retrieves some JSON from the [APIC-EM APIs](http://devnetapic.cisco.com).
77

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

labs/coding-207-putting-it-together-ga/3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ logging.debug("API response: " + json.dumps(get_devices_json, indent=4, separato
6363

6464
Now, look at what is going on in the code.
6565

66-
* Using the [APIC-EM API Reference](https://devnetapic.cisco.com), you can see that the URL `api/v1/ticket` returns the service ticket that's used to authorize calls to the APIC-EM APIs. Like the other 'post' and 'get' calls, it uses the Requests library to make a call to the APIC-EM Controller to retrieve the response data.
66+
* Using the [APIC-EM API Reference](http://devnetapic.cisco.com), you can see that the URL `api/v1/ticket` returns the service ticket that's used to authorize calls to the APIC-EM APIs. Like the other 'post' and 'get' calls, it uses the Requests library to make a call to the APIC-EM Controller to retrieve the response data.
6767
* `api/v1/network-device/count` returns the total count of devices.
6868
* This statement `devices_count_response = requests.get(devices_count_url, headers=header, verify=False)` makes the 'get' call to retrieve the device count.
6969
* `devices_count_response` contain the response returned from the API
@@ -78,5 +78,5 @@ Now, look at what is going on in the code.
7878

7979

8080
### Things to think about
81-
* What other APIC-EM APIs in the [APIC-EM API Reference](https://devnetapic.cisco.com) would you like to try?
81+
* What other APIC-EM APIs in the [APIC-EM API Reference](http://devnetapic.cisco.com) would you like to try?
8282
* For more information on using the Requests library to make API calls, see [Coding 102: Calling REST APIs from Python Learning Lab](/lab/coding-102-rest-python-ga/step/1).

0 commit comments

Comments
 (0)