🚀 How to Run This Web App
📦 Path:
static/description/web.zip
🌐 Download URL (after installing module):
/odoo_swagger_res_partner/static/description/web.zip
💻 Local run steps:
- Extract the ZIP file
- Open terminal in the extracted folder
- macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ --disable-web-security \ --user-data-dir="/tmp/chrome-no-security-$$" \ --allow-insecure-localhost \ "http://localhost:8080" - Linux:
google-chrome \ --disable-web-security \ --user-data-dir="/tmp/chrome-no-security-$$" \ --allow-insecure-localhost \ "http://localhost:8080" - Windows (CMD):
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:\chrome-no-security" --allow-insecure-localhost "http://localhost:8080" - Run:
python3 -m http.server 8080 - Open in browser:
http://localhost:8080
📖 How It Works
1
Enter Server URL & Available APIs
View the main interface with all available API operations (GET, CREATE, DELETE, UPDATE)
Main Interface
2
Execute CREATE Operation
Click on CREATE section, modify JSON body, execute and see response with ID
API Execution
3
Edit Request Body
View and edit the complete JSON request body before execution
JSON Editor
4
Authorize with Cookie
Click "Authorize" button, enter server URL and paste session cookie from browser
Authentication
📝 Note:
Enter your Odoo server URL in the input field. You can see all available API operations like GET, CREATE, DELETE, and UPDATE.
📝 Note:
Click the "Authorize" button at the top. A dialog will open where you need to enter your Database & Email and paste the Password from your browser developer tools.
📝 Note:
Click on the CREATE section to expand it. Modify the JSON body as needed and click Execute to create a new record. The response will show the created record ID.
📝 Note:
View and edit the complete JSON request body before execution. You can customize all parameters like name, email, phone, etc.
✨ Features
- Complete REST API testing interface
- JSON request body editing
- Real-time response display
- Session-based authentication
- Support for all CRUD operations
- Developer-friendly UI
Please log in to comment on this module