2 <h3>BrAPI Study POST</h3>
8 url: 'http://127.0.0.1:3000/brapi/v1/token?username=janedoe&password=secretpw&grant_type=password',
9 success: function(response) {
10 console.log(response);
11 var url = jQuery('#brapi_home_url_select').val()+'/brapi/v1/studies?session_token='+response.session_token;
16 beforeSend: function() {
17 jQuery('#working_modal').modal("show");
20 studyName: "Test_study_01",
24 optionalInfo: JSON.stringify({
26 studyObjective: "Test POST Study",
29 success: function(response) {
30 console.log(response);
31 jQuery('#working_modal').modal("hide");
34 error: function(response) {
35 jQuery('#working_modal').modal("hide");
36 alert("An error occurred.");