Below is the Array I need
[
{
"id":1,
"nome":"LESPAUL",
"validade":1525568400000,
"dataGerada":1525914000000,
"status":true,
"itens":[
{
"cliente":{
"id":1,...
This is the put I am giving, (below will have the Json that is coming from the body):
put(endpoint: string, body: any) {
return new Promise((resolve, reject) => {
return this.http.put(this.url + '/' + endpoint, body)
.subscribe(...
Good afternoon, I'm trying to limit the display of database results to 200, but when I use the "LIMIT 200" command nothing happens:
Follow the code below the connection:
<?php
if(!defined('_VALID_MOS')){
define('_VALID_MOS', 1);
}
if...
I have a virtual column named '_cpf' which is extracted from the '_document' column in json. Here is the following query:
CREATE TABLE 'user' (
'_document' json DEFAULT NULL,
'_id' varbinary(32) GENERATED ALWAYS AS (json_unquote(json_extract...
I would like to know how to send the query data in json through the controller and how the view should receive them.
Controller:
$dados = $req->all();
$query = "";
if($dados['filter'] == 1)
{
$query = User::where('id','LIKE','%'.$da...
My problem is that depending on the size of the JSON sent, the CUrl request does not work, that is, if I send 2 photos in JSON , of course, 4 is already reason for TimeOut .
The problem is not in API because i...
I created a method to perform a Insert through Ajax , like this:
function SalvarHorario()
{
//NomeHorario
var nome = $("#Nome").val();
var token = $('input[name="__RequestVerificationToken"]').val();
var tokenad...
I'm developing a project and to avoid creating screens with similar functions, I've created a generic query display screen. Basically, the user chooses a brand and sets it to the screen with a listview that shows all the brands available, so he...
Let's say I have an object like this:
{
"parametros": {
"carteira": "RG",
"taxaboleto": "0.00",
"multa": "0.00",
"juros": "0.00"
}
}
Is it possible that I can extract the item's name from the object? For example, the...
Well, I have an enum for the days of the week, being:
Segunda = 2,
[Display(Name="Terça")]
Terca = 3,
Quarta = 4,
Quinta = 5,
Sexta = 6,
[Display(Name = "Sábado")]
Sabado = 7
So I build an object that has a da...