Posts

Showing posts with the label technical

Think like a Developer: API Hacking

🔍 What Does an API Look Like? (Structure Breakdown) A typical API request looks like this: GET /v1/user/profile?id=0034 HTTP/1.1 Host: api.example.com Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... Content-Type: application/json Here’s what each part is for and how to spot uniqueness : Part What It Does How to Identify Why It’s Important Method (GET/POST) What action the API is taking First word in the request line GET = retrieve, POST = create, PUT = update, DELETE = remove Endpoint (/v1/...) The resource being accessed Always follows method—URL path Shows version , resource , hierarchy Query Params (?id=) Filter or identify specific data After ? , in key=value format Can be manipulated or tested for IDOR , SQLi , etc. Host The server the API lives on Usually api.domain.com Subdomain often used to separate API traffic Headers Metadata: auth, format, content-type Seen as key: value pairs Auth headers = access control , conten...