Mind map
Part 2

Map content
Part 2
Algorithms
- response.json() - .json() Used in order to parse to an understandable language
- if details_response.status_code == 200: - This status code returns if the request is okay
- return render_template('character.html', characters=characters) - Renders the characters template after getting an appended array of characters
- characters.append(character_data) - Append character data to array of characters
- for page in range(1,10): - Searches through the API data from the first 10 pages to retrieve characters.
- response = requests.get(f"https://www.swapi.tech/api/people?page={page}&limit=10") - Retrieve API data, getting the People Resource
Developer Environment
- Backend
- Python
- Python Flask module allows the combining of CSS, HTML and JSON in order to create a web application
- requests package to make HTTP request to SWAPI
- Parses JSON data (using .json())
- JavaScript used for real time filtering.
- Python
- Frontend
- HTML to give structure and content to the webpage (as well as displaying JSON text).
- CSS to style the webpages in accordance with Star Wars theme.
- Backend
Criteria
- Prescribed Criteria
- PSC 1 - Display API data in a table format
- Use HTML to create table with th, td, tr tags etc
- PSC 2 - Have an algorithm to retrieve, process and display data from the Star Wars API.
- Python JSON parsing
- HTML displaying results
- PSC 3 - Be efficient, modular and have accurate code.
- Testing table.
- Have code comments (CSS / * * /, Python #, HTML <!-- -->
- Use of HTTP status codes to check for errors
- PSC 4 - Receive data in one format and programmatically transform it into another format for sharing/displaying.
- Python to Parse JSON
- Python to combine HTML and CSS using Flask
- HTML to display JSON readable text
- Python to combine HTML and CSS using Flask
- Python to Parse JSON
- PSC 1 - Display API data in a table format
- Self-Determined Criteria
- SDC 1 - Create an alphabetical filter (based on Max Power)
- Requires HTML select filter for a dropdown tag.
- JavaScript used for more efficiency.
- SDC 2 - Adhere to a Star Wars theme (both user personas)
- Requires CSS styling
- HTML images
- SDC 1 - Create an alphabetical filter (based on Max Power)
- Prescribed Criteria
User Personas
- Adhering to Max Power's needs also covers Jennifer Taylor, with the addition of an alphabetical filter for self-determined criteria.
Programming Features
- Data Types (SWAPI)
- JSON data
- Integers
- Strings
- Array
- Input - User search term (HTML search bar)
- Process - Parsing JSON data (Python)
- Output - API data in table format (HTML)
- Process - Parsing JSON data (Python)
- Error Handling
- Invalid search input
- Display "No character data found" to user on HTML page.
- Use of HTTP status codes (200 = okay)
- Invalid search input
- Data Types (SWAPI)
Images and files in the map
Information
- Description
- Mind Map on Part 2, created by Ethan Bui on 12/05/2025.
- Created by
- Ethan Bui
- Views
- 3
- Rating
