Dynamic Forums (1, 2, 4, 6)
POST /guardar_foro
Save responses for forums 1, 2, 4, or 6. Implementation: main.py:195-230Forum identifier:
1, 2, 4, or 6Student email address (unique identifier)
Response to question 1
Response to question 2
Response to question 3
Response to question 4
Response to question 5
Response to question 6 (forums 1, 2)
Response to question 7 (forum 4, 6)
Response to question 8 (forum 6 only)
Request Body Schema
RespuestasForo Model (main.py:42-51):The system dynamically validates field count based on forum configuration. Forum 1 accepts r1-r6, Forum 4 accepts r1-r7, Forum 6 accepts r1-r8.
Response
Success or error message
Operation success status
Forum 3 - Table Responses
POST /guardar_en_foro_3
Save responses for Forum 3 with complex table structure. Implementation: main.py:277-305Student email address
Response to question 1
Response to question 2
Response to question 3
Response to question 4
Response to question 5
Table cells for question 6 (7 rows × 3 columns)
- Rows: 1-7
- Columns: 1-3
- Example:
t6_r1_c1,t6_r3_c2,t6_r7_c3
Response to question 7
Response to question 8
Request Body Schema
RespuestaForo_3 Model (main.py:54-64):Response
Same format as dynamic forums:Forum 5 - Image Uploads
POST /guardar_foro5/
Save Forum 5 responses with image uploads (multipart/form-data). Implementation: main.py:534-574Student email address (URL parameter)
Response to question 2 (form field)
Response to question 3 (form field)
Response to question 4 (form field)
Response to question 5 (form field)
Response to question 6 (form field)
Image file for question 3 sketch (binary data)
Array of 3 image files for table questions (binary data)
- imagenes[0] → imagen_1
- imagenes[1] → imagen_2
- imagenes[2] → imagen_3
Content Type
Unlike other forums, Forum 5 uses FormData with file uploads. Text responses are sent as form fields, and images are uploaded as binary files.
Image Storage
Images are stored as binary data (BYTEA) in PostgreSQL:- imagen_pregunta_3: Single sketch/drawing for question 3
- imagen_1, imagen_2, imagen_3: Three table images from the
imagenesarray
Response
Error Handling
HTTP Status Codes
Forum ID not found in configuration (dynamic forums only)
Database connection error
Database Errors
All submission endpoints use transactions with automatic rollback on failure:Next Steps
Retrieve Responses
Learn how to fetch and verify forum participation