Akcje
Task #600
otwarteUser story #594: Board live search
Javascript method for Ajax POST request
Task #600:
Javascript method for Ajax POST request
Data rozpoczęcia:
2025-11-16
Data oddania:
2025-11-24 (Termin za 5 dni)
% Wykonania:
0%
Szacowany czas:
14:00 h
Company custom field:
Deals:
Contacts:
Checklist custom field:
- Define function signature and validate input
- Implement fetch with JSON and CSRF
- Add error handling and retry logic
- Write unit tests for all cases
- Document usage, examples, and types
Sprint:
Sprint #1 (04 lis - 18 lis)
Tags:
Opis
Build a reusable JavaScript method to perform an AJAX POST request using fetch, sending JSON payloads and handling CSRF tokens when required. The method should validate inputs, set correct headers, and serialize/deserialize JSON safely. It must implement robust error handling for non-2xx responses, network failures, and timeouts, returning a clear, Promise-based result. Include concise documentation and examples so it can be dropped into any project with minimal setup.
Akcje