Good afternoon, in the project, the backend developer wants to receive requests that will be sent from the front and a response from the backend. but what he really needs to explain is apparently not capable, or does not want to. Please tell me if there are any standard practices how best to document these things and how to do this is the only thing that managed to get out while this is an example request
form_data = $("#your_form").serialize(); $.post("/_ajax.php", {token: $('#f_token').attr("content"), file: 'constructor', data: { items: ['CO037EWIRW04IN', 'CO037EWILA28IN'] tags: {id:1; id:2; } sex:1 type_body:1 color: 4 category:6 } }, function(r) { try { result = jQuery.parseJSON(r); } catch(err){ alert(err); } if (result.status == "success") { alert(result.mes); } else { alert(result.mes); } });