Computer Science Principles
Course Progress
0/0
Sprint 1 intro
Computer System and Networks
Week 0 intro
Home Page Game Feedback
Intro to Python
Intro to JavaScript
Create Performance Task Concepts
Tools and Equipment Setup
Tools and Equipment Setup
Algorithms and Programming
Week 1 intro
BI 3 Review
Code Runners - Raw MD
UI Runner
Game Runner Examples
Code Runner - JavaScript
Crowdsourcing Lesson
Creative Development
Week 2 intro
GitHub Pages (about.md)
Agile Methodologies Practitioner
GitHub Pages (index.md)
Agile Methodologies Practitioner
Computer System and Networks
W0
0/6
Week 0 intro
Home Page Game Feedback
Intro to Python
Intro to JavaScript
Create Performance Task Concepts
Tools and Equipment Setup
Tools and Equipment Setup
Algorithms and Programming
W1
0/6
Week 1 intro
BI 3 Review
Code Runners - Raw MD
UI Runner
Game Runner Examples
Code Runner - JavaScript
Crowdsourcing Lesson
Creative Development
W2
0/4
Week 2 intro
GitHub Pages (about.md)
Agile Methodologies Practitioner
GitHub Pages (index.md)
Agile Methodologies Practitioner
Sprint 2 intro
Backend and Data Foundations
Week 7 intro
Crash Course into Python Flask
Anatomy of Python Flask
Big Idea 4 | Computer Systems| Flask
Anatomy of Python Flask
Backend and Data Foundations
W7
0/4
Week 7 intro
Crash Course into Python Flask
Anatomy of Python Flask
Big Idea 4 | Computer Systems| Flask
Anatomy of Python Flask
Sprint 3 intro
Interactive Features and Data
Week 9 intro
Framework for Sprints
Postman Guide
Plagiarism TDD plan and ceremony (Sample)
Plagiarism TDD plan and ceremony (Sample)
Interactive Features and Data
W9
0/4
Week 9 intro
Framework for Sprints
Postman Guide
Plagiarism TDD plan and ceremony (Sample)
Plagiarism TDD plan and ceremony (Sample)
Sprint 4 intro
Flask Foundations and Security
Week 13 intro
Variables and HTML DOM
UX Development Objectives
Intro to Flask
Database and Data Models
Week 15 intro
Frontend Authentication with a Backend Flask Application
Flask Foundations and Security
W13
0/3
Week 13 intro
Variables and HTML DOM
UX Development Objectives
Intro to Flask
Database and Data Models
W15
0/1
Week 15 intro
Frontend Authentication with a Backend Flask Application
Sprint 7 intro
AI and Machine Learning Foundations
Week 25 intro
Data Frames | Pandas | Intro 1
ML | Titanic Data
Data for Real-World Problems
Week 26 intro
ML | Fitness
ML | Neural Network | Handwritting Detection
Data Frames | Pandas | Intro 2
Network Stack | HTTP and TCP/IP
API | Request | Response | Database
Data | SQL Connect
Data | SQLAlchemy
Data | Binary Logic
AI and Full Stack Integration
Week 27 intro
Topic 1.4 - Identifying and Correcting Errors
Single Responsibility & API Chaining
Technology Solutions and Client Planning
Week 28 intro
Computing Systems | AWS Deployment | Setup Applicationa
Computing Systems | AWS Deployment | Launch EC2
Computing System | AWS Deployment| Step-by-Step Guide
AI and Machine Learning Foundations
W25
0/2
Week 25 intro
Data Frames | Pandas | Intro 1
ML | Titanic Data
Data for Real-World Problems
W26
0/8
Week 26 intro
ML | Fitness
ML | Neural Network | Handwritting Detection
Data Frames | Pandas | Intro 2
Network Stack | HTTP and TCP/IP
API | Request | Response | Database
Data | SQL Connect
Data | SQLAlchemy
Data | Binary Logic
AI and Full Stack Integration
W27
0/2
Week 27 intro
Topic 1.4 - Identifying and Correcting Errors
Single Responsibility & API Chaining
Technology Solutions and Client Planning
W28
0/3
Week 28 intro
Computing Systems | AWS Deployment | Setup Applicationa
Computing Systems | AWS Deployment | Launch EC2
Computing System | AWS Deployment| Step-by-Step Guide
Sprint 9 intro
Postman Guide
2 min read
- Postman Intro Guide
- Common Status Codes
- Common HTTP Methods
- Why Use Postman?
- Write Backend Code in VS Code
- Test APIs in Postman
- VS Code vs Postman: Where To Find the Information
Postman Intro Guide
Quick Guide to Write & Test APIs with Postman
π
Background Knowledge
Understand APIs & HTTP basics
β
β
Why Use Postman?
Test backend without a frontend
β
βοΈ
Write Backend Code
Define API routes in VS Code
β
π§ͺ
Test APIs
Send requests and inspect responses
β
βοΈ
VS Code vs Postman
Where to find info
Common Status Codes
| Status Code | Meaning | When to Expect |
|---|---|---|
| 200 OK | Request succeeded | Successful GET, POST, PUT, PATCH, DELETE |
| 201 Created | Resource created | Successful POST that creates a resource |
| 204 No Content | Request succeeded, no response body | Successful DELETE or PUT with no response content |
| 400 Bad Request | Malformed request syntax or invalid data | When request JSON or parameters are invalid |
| 401 Unauthorized | Authentication required or failed | Missing or invalid auth token/cookie |
| 403 Forbidden | Authenticated but not allowed | Access denied for user to resource |
| 404 Not Found | Resource not found | Invalid endpoint or missing resource |
| 500 Internal Server Error | Server encountered an error | Unhandled exceptions or errors on backend |
Common HTTP Methods
| Method | Purpose | Usage in VS Code | Postman Tip |
|---|---|---|---|
| GET | Retrieve data | Route with methods=['GET'] |
No body needed |
| POST | Create data | Read JSON from request body | Use Body tab to send JSON |
| PUT | Replace data | Replace full record | Send full updated data |
| PATCH | Update part | Partial update logic | Send partial JSON data |
| DELETE | Remove data | Delete from database | No body needed |
Why Use Postman?
- Test backend code (in python flask, java spring, etc.) without having a functional frontend . This allows for students to work on and test different pieces of the project seperately before joining them together. .
- Allows for quick debugging of APIs + Test Cookie/Token storage that may be generated by the backend (typically for authorization).
- Has its own collaboration system such as shared workspaces and collections where team members can share postman requests.
Pro Coder Tip: For more info on any tool (in this case postman) visit its offical documentation Postman Docs
Write Backend Code in VS Code
- 1. Create API endpoints in an api file (flask framework) + define in main.py
- 2. Use the terminal in VS Code to run your Flask localhost server (
python main.py).
Test APIs in Postman
- Choose method (GET, POST, etc.) and enter your API URL (which consists of your endpoint from your code + local host server from python main.py.
- Use Body β raw β JSON to send data for POST/PUT requests.
- View status codes and response data in the panel below.
VS Code vs Postman: Where To Find the Information
| Backend (VS Code) | Testing (Postman) |
|---|---|
| localhost url + endpoint | type localhost url + endpoint into send bar |
| Find API call method | Select HTTP method and enter URL, click Send |
Use request.json to read JSON data |
Enter JSON data under Body β raw β JSON |
Handle cookies with request.cookies |
Manage cookies in Postmanβs Cookies tab |