Development Frameworks & APIs

Web Frameworks

Framework Language Usage
Laravel PHP Startups & small businesses
Express Node.js Used by PayPal, Yahoo, Uber, IBM
Django Python Used by Google, YouTube, Instagram
Rails Ruby Used by GitHub, Hulu, Twitch, Airbnb

Popular websites often use a mix of frameworks and web servers.

APIs (Application Programming Interfaces)

API Functionality

  1. Front end sends a request with specific input.
  2. Back end processes the request and returns a response.
  3. Front end renders the output.

Query Parameters

Examples

GET:

/search.php?item=apples

POST:

POST /search.php HTTP/1.1
...
item=apples

Web APIs

API Standards

SOAP (Simple Object Access Protocol)

SOAP Example

<?xml version="1.0"?>

<soap:Envelope
xmlns:soap="http://www.example.com/soap/soap/"
soap:encodingStyle="http://www.w3.org/soap/soap-encoding">

<soap:Header>
</soap:Header>

<soap:Body>
  <soap:Fault>
  </soap:Fault>
</soap:Body>

</soap:Envelope>

REST (Representational State Transfer)

REST API Example

GET /category/posts/

{
  "100001": {
    "date": "01-01-2021",
    "content": "Welcome to this web application."
  },
  "100002": {
    "date": "02-01-2021",
    "content": "This is the first post on this web app."
  },
  "100003": {
    "date": "02-01-2021",
    "content": "Reminder: Tomorrow is the ..."
  }
}

REST Methods

REST uses various HTTP methods to perform different actions on the web application:

Method Function
GET Retrieve data
POST Create data (non-idempotent)
PUT Create/replace data (idempotent)
DELETE Remove data

Summary


Exercise

Target: 94.237.122.123:35717

Use GET request '/index.php?id=0' to search for the name of the user with id number 1?

Open your browser and visit http://94.237.122.123:35717/index.php?id=1
Pasted image 20250925111559.png|450

flag: superadmin