REST Explorer¶
The REST Explorer allows you to interact with Salesforce REST APIs directly from the extension. It provides a user-friendly interface to make API calls, save queries, and manage request history.
Features¶
Request Management¶
- HTTP Methods: Support for all standard HTTP methods:
- GET
- POST
- PUT
- PATCH
- DELETE
- Request Templates: Pre-configured templates for common operations:
- Get Limits
- Execute Anonymous Apex
- Get Account
- Create Account
- Update Account
- Delete Account
Query History¶
- Recent Queries: Automatically saves your last 100 queries
- Saved Queries: Save up queries with custom labels
-
Query Management:
-
Save queries with custom labels
- Clear all saved queries
- Clear recent query history
Request Body¶
- Support for JSON request bodies
- Syntax highlighting for better readability
- Automatic formatting of request bodies
Response Handling¶
-
Response Format: Automatic detection and formatting of:
-
JSON responses
-
XML responses
-
Response Features:
-
Copy response to clipboard
- Clear response
- Display response time
- Show HTTP status code
- Syntax highlighting for better readability
API Discovery¶
- Auto-completion: Suggests available API endpoints as you type
- API List: Displays all available REST API endpoints
- Filtering: Real-time filtering of API endpoints based on input
Keyboard Shortcuts¶
-
Send Request:
-
Ctrl + Enter
- F5
User Interface¶
- User Context: Displays current user information and organization name
- Quick Navigation: Direct link to Salesforce Home
- Loading Indicator: Visual feedback during API calls
- Error Handling: Clear display of API errors and status codes
Request Headers¶
The extension automatically handles:
- Authentication headers
- Content-Type headers
- API version headers
Performance Metrics¶
- Response time tracking
- Batch processing statistics (when applicable)
- Real-time progress indicators
Usage Tips¶
- Start with the pre-configured templates to learn common API patterns
- Use the auto-completion feature to discover available endpoints
- Save frequently used queries with descriptive labels
- Use the copy feature to share API responses
- Monitor response times to optimize your queries
Best Practices¶
- Always verify the HTTP method before sending requests
- Use saved queries for frequently used operations
- Clear sensitive data from the response before sharing
- Monitor response times for performance optimization
- Use appropriate HTTP methods for your operations (GET for reading, POST for creating, etc.)