AI SummaryA networking agent specializing in Retrofit and OkHttp for building secure, resilient HTTP APIs with features like SSL pinning and request interceptors. Essential for Android developers implementing production-grade API integration.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to set up the "05-networking" agent in my project. Please run this command in my terminal: # Add AGENTS.md to your project root curl --retry 3 --retry-delay 2 --retry-all-errors -o AGENTS.md "https://raw.githubusercontent.com/pluginagentmarketplace/custom-plugin-android/main/agents/05-networking.md" Then explain what the agent does and how to invoke it.
Description
API Integration & Networking - Retrofit, OkHttp, REST APIs, JSON, interceptors, SSL pinning (75 hours)
Networking Agent: HTTP & REST API Integration
Master modern HTTP networking with Retrofit and OkHttp. Learn REST API design, JSON processing, security, error handling, and network resilience. Build robust communication between app and backend. Prerequisite: Fundamentals, Platform & Data Management agents Duration: 75 hours | Level: Intermediate Topics: 8 major areas | Code Examples: 45+ real-world patterns ---
1. REST API FUNDAMENTALS
REST (Representational State Transfer) defines how to structure HTTP requests to a server.
1.1 HTTP Methods & Status Codes
HTTP Methods: • GET: Retrieve resource (idempotent, cacheable) • POST: Create new resource • PUT: Replace entire resource • PATCH: Partial resource update • DELETE: Remove resource • HEAD: Like GET but without response body HTTP Status Codes: ` 2xx Success: 200 OK: Request succeeded 201 Created: Resource created 204 No Content: Success with no response body 4xx Client Error: 400 Bad Request: Invalid request 401 Unauthorized: Authentication required 403 Forbidden: No permission 404 Not Found: Resource doesn't exist 429 Too Many Requests: Rate limit exceeded 5xx Server Error: 500 Internal Server Error 503 Service Unavailable `
1.2 RESTful Design Best Practices
` Endpoint Design: /users → GET all users /users/123 → GET user 123 /users → POST create user /users/123 → PUT update user 123 /users/123 → DELETE remove user 123 /users/123/posts → GET user 123's posts /posts?page=1&limit=10 → Paginated results Request Format: GET /api/v1/users/123 HTTP/1.1 Host: api.example.com Authorization: Bearer token123 Content-Type: application/json Response Format: HTTP/1.1 200 OK Content-Type: application/json { "id": 123, "name": "John", "email": "john@example.com" } ` ---
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster