Skip to content

Commit 11b7aa3

Browse files
committed
link fixes
1 parent 24a1535 commit 11b7aa3

File tree

9 files changed

+19
-19
lines changed
  • labs
    • coding-102-rest-python-ga
    • coding-201-parsing-xml
    • coding-202-parsing-json
    • coding-204-reading-a-file
    • coding-205-writing-file-ga
    • coding-207-putting-it-together-ga

9 files changed

+19
-19
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Let's look at what the code is doing.
3434
* The library exists within Python, but must be imported in order to access its functions.
3535
* The next line creates a variable called **url** that contains the url we are going to use in the request.
3636
* For this example, we are using the REST call that returns the service ticket. This ticket is used for authentication when making all other REST function calls in the APIC-EM API.
37-
* See the [Coding 101: Rest Basics Learning Lab](/#/labs/coding-101-rest-basics-ga/step/1) for information about how REST calls work.
37+
* See the [Coding 101: Rest Basics Learning Lab](/lab/coding-101-rest-basics-ga/step/1) for information about how REST calls work.
3838
* *payload = {"username":"devnetuser","password":"Cisco123!"}*
3939
* To create a service ticket the program must log into the APIC-EM Controller, so the username and password are needed. The username/password provided are for the Sandbox Always-On Database for APIC-EM which is https://sandboxapic.cisco.com
4040
* *header = {"content-type": "application/json"}*

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

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

1616
## Prerequisites
1717

18-
You will want to make sure you have gone through the [Coding 101 lab](lab/coding-101-rest-basics/step/1 "Coding 101 Lab") if you are unfamiliar with Python and retrieving results from a RESTful service.
18+
You will want to make sure you have gone 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.
1919

2020
You should also have a basic familiarity with XML. If you do not, consider visiting the [W3Schools XML Tutorial](http://www.w3schools.com/xml "W3Schools XML Tutorial") to get a firm base to build upon.
2121

labs/coding-202-parsing-json/1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Coding 202: Parsing JSON using Python
22

3-
In this Learning Lab you will learn the basics of parsing JSON content using Python. We will use the [Connected Mobile Experiences (CMX) Mobility Services](https://developer.cisco.com/site/cmx-mobility-services/ "CMX Mobility Services") as a data source and query for the names of the available access points and put them into a simple list for display. If you want to dig deeper into CMX, review the [Mobility Services Engine (MSE) Learning Lab](#/labs/cmx/step/1).
3+
In this Learning Lab you will learn the basics of parsing JSON content using Python. We will use the [Connected Mobile Experiences (CMX) Mobility Services](https://developer.cisco.com/site/cmx-mobility-services/ "CMX Mobility Services") as a data source and query for the names of the available access points and put them into a simple list for display. If you want to dig deeper into CMX, review the [Mobility Services Engine (MSE) Learning Lab](lab/cmx/step/1).
44

55
## Objectives
66

@@ -11,7 +11,7 @@ Completion Time: 15 minutes
1111

1212
## Prerequisites
1313

14-
You will want to make sure you have gone through the [Coding 101 lab](#/labs/coding-101-rest-basics/step/1 "Coding 101 Lab") if you are unfamiliar with Python and retrieving results from a RESTful service and the [Coding 201 lab](#/labs/coding-201-parsing-xml/step/1 "Coding 201 Parsing XML using Python Lab") for a similar approach to retrieving data using XML.
14+
You will want to make sure you have gone 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

1616
You should also have a basic familiarity with JSON. If you do not, consider visiting the [W3Schools JSON Tutorial](http://www.w3schools.com/json/ "W3Schools JSON Tutorial") to get a firm base to build upon.
1717

labs/coding-204-reading-a-file/1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Completion Time: 15 minutes
2222

2323
## Step 1. Introduction
2424

25-
In the [Coding 203: Getting input from a user in Python](/#/labs/coding-203-getting-input/step/1) learning lab, we learned how to get input from the user using the keyboard.
25+
In the [Coding 203: Getting input from a user in Python](/lab/coding-203-getting-input/step/1) learning lab, we learned how to get input from the user using the keyboard.
2626

2727
Another common way to get input is to read data from a text file.
2828

labs/coding-204-reading-a-file/6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Step 6. Read JSON from a file
2-
If you are using REST APIs, see [Coding 101: Rest Basics Learning Lab](/#/labs/coding-101-rest-basics/step/1) for more info, you often have the need to load some JSON from a file.
2+
If you are using REST APIs, see [Coding 101: Rest Basics Learning Lab](/lab/coding-101-rest-basics-ga/step/1) for more info, you often have the need to load some JSON from a file.
33

44
We can use the same techniques that we used in the previous steps to help us read JSON from a file.
55

@@ -64,7 +64,7 @@ Let's look at what is going on in the code.
6464
* Use **file.read())** to read the entire contents of the file
6565
* Use **json.loads()** to load the contents of the file into a json object
6666
* Now, you have the contents of the file in memory in a json object and you can loop through and manipulate the JSON as usual.
67-
* See [Coding 202 Parsing JSON](/#/labs/coding-202-parsing-json/step/1) for more information on how to parse JSON.
67+
* See [Coding 202 Parsing JSON](/lab/coding-202-parsing-json/step/1) for more information on how to parse JSON.
6868

6969
### Give it a try!
7070

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Step 5. Save data from JSON to a file
2-
Often, when you are working with REST APIs (see [Coding 101: Rest Basics Learning Lab](/#/labs/coding-101-rest-basics-ga/step/1) ), it is handy to be able to save some data to a file.
2+
Often, when you are working with REST APIs (see [Coding 101: Rest Basics Learning Lab](/lab/coding-101-rest-basics-ga/step/1) ), it is handy to be able to save some data to a file.
33

4-
We can combine the techniques for writing to a file that we just learned with the techniques for calling REST APIs that we learned in [Coding 101 Calling REST APIs from Python](/#/labs/coding-101-rest-python/step/1)
4+
We can combine the techniques for writing to a file that we just learned with the techniques for calling REST APIs that we learned in [Coding 101 Calling REST APIs from Python](/lab/coding-101-rest-python/step/1)
55

66
Let's take a look at an example that retrieves some JSON from the [APIC-EM APIs](http://devnetapic.cisco.com).
77

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Completion Time: 20 minutes
1717
## Prerequisites
1818

1919
**Background**
20-
* We recommend that you complete the [Coding 101: Rest Basics Learning Lab](/#/labs/coding-101-rest-basics-ga/step/1) and the [Coding 102: Calling REST APIs from Python Learning Lab](/#/labs/coding-102-rest-python-ga/step/1) before you start this lab.
20+
* We recommend that you complete the [Coding 101: Rest Basics Learning Lab](/lab/coding-101-rest-basics-ga/step/1) and the [Coding 102: Calling REST APIs from Python Learning Lab](/lab/coding-102-rest-python-ga/step/1) before you start this lab.
2121

2222
**Access to an APIC-EM Controller**
2323
* To run these code samples, you will need access to an APIC-EM controller.
@@ -73,13 +73,13 @@ We are going to use the APIC-EM API as an example of a REST API in this lab. So
7373

7474
In this Learning Lab, we are going to use all of the skills that we covered in these learning labs together in one application.
7575

76-
* [Coding 101: Rest Basics](/#/labs/coding-101-rest-basics-ga/step/1)
77-
* [Coding 102: Calling REST APIs from Python](/#/labs/coding-102-rest-python-ga/step/1)
78-
* [Coding 202: Parsing JSON using Python](/#/labs/coding-202-parsing-json/step/1)
79-
* [Coding 203: Getting input from a user in Python](/#/labs/coding-203-getting-input/step/1)
80-
* [Coding 204: Reading data from a file using Python](/#/labs/coding-204-reading-a-file/step/1)
81-
* [Coding 205: Writing data to a file using Python](/#/labs/coding-205-writing-file-ga/step/1)
82-
* [Coding 206: Using the logging module in Python](/#/labs/coding-206-logging/step/1)
76+
* [Coding 101: Rest Basics](/lab/coding-101-rest-basics-ga/step/1)
77+
* [Coding 102: Calling REST APIs from Python](/lab/coding-102-rest-python-ga/step/1)
78+
* [Coding 202: Parsing JSON using Python](/lab/coding-202-parsing-json/step/1)
79+
* [Coding 203: Getting input from a user in Python](/lab/coding-203-getting-input/step/1)
80+
* [Coding 204: Reading data from a file using Python](/lab/coding-204-reading-a-file/step/1)
81+
* [Coding 205: Writing data to a file using Python](/lab/coding-205-writing-file-ga/step/1)
82+
* [Coding 206: Using the logging module in Python](/lab/coding-206-logging/step/1)
8383

8484
Here is the outline of what the application will do:
8585

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ Let's look at what is going on in the code.
7979

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@ Open the file that you specified for the log file. You should see a result like
206206
### Congrats! You did it!###
207207

208208
### Things to think about
209-
* Check out the [Coding 202: Parsing JSON using Python Learning Lab](/#/labs/coding-201-parsing-json/step/1) for more information on parsing JSON.
209+
* Check out the [Coding 202: Parsing JSON using Python Learning Lab](/lab/coding-201-parsing-json/step/1) for more information on parsing JSON.

0 commit comments

Comments
 (0)