Skip to content

Commit fc407c1

Browse files
committed
fixes
1 parent 68bf7a7 commit fc407c1

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are on a DevNet Zone station, <a href="https://chrome.google.com/webstore
2020

2121
**Access to an APIC-EM Controller**
2222
* To run these code samples, you will need access to an APIC-EM controller.
23-
* **If you are not using your own APIC-EM controller**, you can use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
23+
* **If you are not using your own APIC-EM controller**, you can use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em .
2424
The login credentials for the always on sandbox are **username:** devnetuser and **password:** Cisco123!
2525

2626
## Step 1. Find the APIC-EM API Resources

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The Application Policy Infrastructure Control (APIC) Enterprise Module (EM), Ap
2727

2828
Using the the APIC-EM APIs, we can retrieve information about devices on our network including a list of hosts, list of network devices, a list of users and more. We are going to use these features as examples to learn how to make REST calls from Python.
2929

30-
Take a look at the <a href="http://devnetapic.cisco.com/" target="_blank">APIC-EM Reference Docs</a> to see the details of all of the APIC-EM endpoints.
30+
Take a look at the <a href="http://devnetapic.cisco.com/" target="_blank">APIC-EM Reference Docs</a> to see the details of all of the APIC-EM functions.
3131

3232

3333
### How does this work?

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To construct a request, you need to know the following information for the API t
1111
- **URL**
1212
* The URL for the endpoint you want to call
1313
* Example: http://{APIC-EMController}/api/v1/ticket
14-
* *If you are not using your own APIC-EM controller*, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
14+
* *If you are not using your own APIC-EM controller*, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em .
1515
- **URL Parameters**
1616
* The parameters that you can pass as part of the URL.
1717
- **Authentication**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We need to know how to construct the request to retrieve the service ticket, so
1212
* Authentication
1313
* Body
1414

15-
From the API EM docs, we can see that all of the urls for API-EM begin with:
15+
All of the urls for API-EM begin with:
1616

1717
```http
1818
@@ -38,7 +38,7 @@ To get the service ticket our request will look like this:
3838
* **Method** - POST
3939
* **URL** - https://{APIC-EM-Server}/api/v1/ticket
4040
* substitute in address for the APIC-EM controller you are using
41-
* If you are not using your own APIC-EM controller, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
41+
* If you are not using your own APIC-EM controller, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em
4242
* **Headers**
4343
* For POST calls the ‘Content-Type’ must be specified as ‘application/json’ in the header. It’s typical to include this header for all REST method (GET, POST, PUT, DELETE …etc) calls.
4444
* **Authentication**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You may need to accept the SSL certificate before calling the APIs in Postman.
3535
* ``A.`` Select **POST** in the Method drop down
3636
* **URL**
3737
* ``B.`` Enter **http://{APIC-EMController}/api/v1/ticket**
38-
* If you are not using your own APIC-EM controller, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
38+
* If you are not using your own APIC-EM controller, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em .
3939
* **Body**
4040
* ``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 Always-On Lab, enter the username and password specified above. Otherwise, enter the required username and password for your APIC-EM Controller.
4141
* **Headers**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To get the entire list of Hosts, our request will be like this:
4141
* **Method** - GET
4242
* **URL** - https://{APIC-EM-Server}/api/v1/host
4343
* substitute in address for the APIC-EM controller you are using
44-
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
44+
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em .
4545
* **Headers**
4646
* For Authentication purposes we need to add the service ticket that was created earlier. On the left side of the header we add the text 'X-Auth-Token'. On the right side we add the service ticket value that was returned by calling the Create Ticket endpoint.
4747
* When using GET a header for the content is not required for this request, but in practice it's good to specify the content in the header anyway as 'Content-Type' 'application/json'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* `A.` Select **GET** in the Method drop down
1010
* **URL**
1111
* `B.` Enter **http://{APIC-EMController}/api/v1/host**
12-
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
12+
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em.
1313
* **Headers**
1414
* `C.` Enter the 'Content-Type' and value 'application/json'
1515
* `C.` Enter the 'X-Auth-Token' and the service ticket created earlier. The 'X-Auth-Token' is required for all APIC-EM Controller API calls.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can look at the details of the Get Network Device API from the -- <a href="h
1212
* `A.` Select **GET** in the Method drop down
1313
* **URL**
1414
* `B.` Enter **http://{APIC-EMController}/api/v1/network-device**
15-
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: [https://devnetapi.cisco.com/sandbox/apic_em](https://devnetapi.cisco.com/sandbox/apic_em).
15+
* If you are not using your own APIC-EM Controller, use the Always-On APIC-EM Lab: https[]()://devnetapi.cisco.com/sandbox/apic_em .
1616
* **Headers**
1717
* `C.` Enter the 'Content-Type' and value 'application/json'
1818
* `C.` Enter the 'X-Auth-Token' and the service ticket created earlier. The 'X-Auth-Token' is required for all APIC-EM Controller API calls.

0 commit comments

Comments
 (0)