POST
/api/api-token-auth/
{
"username": "foo",
"password": "bar"
| var registration = ['Tashi', 'Peter', 'Weye', 'Pacheco', 'Diego', 'Javier', 'Wamemi']; | |
| console.log(registration); | |
| // arrays que contendran el pareamiento de los jugadores | |
| var pairing_1 = []; | |
| var pairing_2 = []; | |
| // variable que verifica si registration esta vacio | |
| var is_registration_empty = false; |
| $scope.$on('eventGetPatsPagosDeHoy', function(event, data) { | |
| var patentes = []; | |
| var total_recaudado = 0; | |
| var t = 0; | |
| var fecha_p = ''; | |
| var results = data.results; | |
| var patents = results.map(function(item) { | |
| return item.patente; | |
| }); |
| results = [{ | |
| "pk": 10, | |
| "cliente": 437, | |
| "factura": 13592, | |
| "monto_pagado": 1000, | |
| "tipo_pago": "1", | |
| "comentario": "wea", | |
| "create_date": "2016-01-20T21:36:03.743930Z", | |
| "fecha_pago": null, | |
| "patente": "abcd14" |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <form action="http://localhost:8000/api/carga/" method="post" id="uploadForm" name="form" enctype="multipart/form-data"> | |
| <input id="fileInput" class="input-file" name="file" type="file"> | |
| <input type="submit" value="Post Images/Files" /> | |
| </form> | |
| <script> |
| trucks = [ | |
| { | |
| "pk": 1, | |
| "numero_patente": "hcdd26", | |
| "estado_camion": 0, | |
| "factura_set": [ | |
| { | |
| "pk": 17471, | |
| "patente": "hcdd26", | |
| "chofer": "Felipe Fuentes", |
| { | |
| "range_attack": "1", | |
| "code": "B01-010N", | |
| "cost": "1", | |
| "name": "Abel", | |
| "title": "Verdant Knight", | |
| "skills": "Skill 1: \u201cBonds of Green & Red\u201d / \u221e / While having \"Cain\" as a support, this unit\u2019s attack power is increased by 30. /// Support Skill: \"Emblem of Strength\" / ATK\u2665 / Until the end of this attack, your attacking unit\u2019s attack power is increased by 20.", | |
| "support": "10", | |
| "affinities": "Male/Sword/Beast", | |
| "attack": "40", |
| Rinkah 1 x4 | 1 | |
| Rinkah 3(2) x4 | | |
| Kamui(F) 1 x4 | | |
| Kamui(M) 1 x4 | 1 | |
| Takumi 1 x4 | 1 | |
| Hinoka 1 x4 | 1 | |
| Setsuna 1 x4 | 1 | |
| Oboro 1 x4 | | |
| Ryoma 1 x4 | 1 |
| (function () { | |
| angular.module('MyApp').config(['$httpProvider', function () { | |
| // set up CRSF handshake with Django Rest Framework | |
| $httpProvider.defaults.xsrfCookieName = 'csrftoken'; | |
| $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken'; | |
| // we will use credentials | |
| // https://developer.mozilla.org/es/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials | |
| $httpProvider.defaults.withCredentials = true; | |
| }]); |