{"size": 479, "ext": "js", "max_stars_repo_path": "public/js/apiAngular.js", "max_stars_repo_name": "Themlgpro/apiRestCosumer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/apiAngular.js", "max_issues_repo_name": "Themlgpro/apiRestCosumer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/apiAngular.js", "max_forks_repo_name": "Themlgpro/apiRestCosumer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.95, "max_line_length": 104, "alphanum_fraction": 0.6137787056}
var app = angular.module('peticion',[])

app.controller('posting',function($scope, $http){
	console.log('Hola');
	$scope.postear = function(){
		console.log('into');
		var data =
		{
			'nombre': $scope.nombre,
			'edad': $scope.edad,
			'id': $scope.codigo,
			'materias': ['WWW','CALCULO'],
			'estado': true
		}

		$http.post('http://localhost/apirestMongo/public/restMongo.php/crear', data).then(function(response) {
          console.log(response.status);
        });
	}
});