diff --git a/api/v1/assets/read.php b/api/v1/assets/read.php new file mode 100644 index 00000000..ae064519 --- /dev/null +++ b/api/v1/assets/read.php @@ -0,0 +1,66 @@ + 0){ + $return_arr['success'] = "True"; + $return_arr['count'] = mysqli_num_rows($sql); + + $row = array(); + while($row = mysqli_fetch_array($sql)){ + $return_arr['data'][] = $row; + } + + echo json_encode($return_arr); + exit(); +} +else{ + $return_arr['success'] = "False"; + $return_arr['message'] = "No asset(s) (with that ID) for this company"; + echo json_encode($return_arr); + exit(); +} \ No newline at end of file diff --git a/api/v1/validate_api_key.php b/api/v1/validate_api_key.php new file mode 100644 index 00000000..1eea0fb6 --- /dev/null +++ b/api/v1/validate_api_key.php @@ -0,0 +1,100 @@ +