Coder Social home page Coder Social logo

appgini-api's Introduction

👨‍💻 Rafael Carneiro de Moraes

Linkedin Badge Outlook Badge Instagram Badge Twitch Status


Seja bem vindo ao meu GitHub! 👋 Aqui ficam meus projetos de estudo e trabalho. Atualmente sou Analista de Innteligência Artificial JR na Unimed Curitiba.

Quer saber mais sobre mim? (Clique aqui para expandir)

📖 Sobre mim

Sou um desenvolvedor fullstack, tecnólogo formado pela UniCesumar em Análise e Desenvolvimento de Sistemas em junho de 2019. Meu primeiro contato com programação foi em 2014, quando estava cogitando trancar minha faculdade de Química para começar algum curso em TI. Decidi aprender a programar ainda cursando Química para tirar minhas dúvidas quanto a troca, e bem, aqui estamos 😄

Hoje estou estudando para evoluir minhas habilidades e me desafiar à sempre melhorar. Estou sempre experimentando outras áreas da programação, principalmente inteligência artificial na qual planejo realizar uma pós.

Além disso, meus hobbies são: jogar, tocar bateria e acompanhar vários animes/mangás.


💼 Trabalho com

PHP Python JavaScript MySQL Git HTML5 CSS3 Power BI API REST Wordpress Robot Framework Jenkins

💻 Estudando atualmente

Django Vue.JS IA

👀 Estou interessado em

Python PHP

appgini-api's People

Contributors

rafinhacarneiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appgini-api's Issues

Also for me internal error

I Will to use It on localhost/alumniattendance
Copied api folder into www/alumniattendance
But i font reach to configure It
Call api return internal error
Please can provider step by step installation and configuration tutorial? Thanks in advance

Path to AppGini's returning an error

I just reconfigured a new website as a subdomain so the URL is no longer www.mysite.com/demo where demo is my AppGini folder. The URL is now demo.mysite.com and AppGini is in the ROOT of this site.

I am still having to add the ../ as I get 500 errors when trying to run this by putting the API folder in the root, like this... demo.mysite.com/api.

failed to open stream: No such file or directory in /home/mysite/domains/demo.mysite.com/public_html/api/v3/api-config.php on line 20

where public_html is my ROOT folder. if this were not a subdomain it would look like this /home/mysite/public_html/api/v3/api-config.php

anyways same Nonexistent/Inexistent table error after adding ../ to make the 500 error disappear.

Originally posted by @dtsoden in #1 (comment)

Not working for the current AppGini version

The output in v2 is:

`

( ! ) Warning: array_merge(): Argument #1 is not an array in C:\wamp64\www\apitest\lib.php on line 39
Call Stack
#TimeMemoryFunctionLocation
10.0014356576{main}( )...\index.php:0
20.20662119480include( 'C:\wamp64\www\apitest\lib.php' )...\index.php:510
30.20722119960array_merge ( )...\lib.php:39
{"report":{"tabelas":[]},"meta":{"ip":"::1","timestamp":"2020-12-15 21:22:30"}}`

API's not returning JSON DATA, just an HTML webpage.

table names are now found and the path is corrected in the latest fix, but the API seams broke as no data is being returned, what is being returned is the full webpage

`

<title>Base-application | </title>
<link id="browser_favicon" rel="shortcut icon" href="resources/images/appgini-icon.png">

<link rel="stylesheet" href="resources/initializr/css/bootstrap.css">
<link rel="stylesheet" href="resources/lightbox/css/lightbox.css" media="screen">
<link rel="stylesheet" href="resources/select2/select2.css" media="screen">
<link rel="stylesheet" href="resources/timepicker/bootstrap-timepicker.min.css" media="screen">
<link rel="stylesheet" href="resources/datepicker/css/datepicker.css" media="screen">
<link rel="stylesheet" href="resources/bootstrap-datetimepicker/bootstrap-datetimepicker.css" media="screen">
<link rel="stylesheet" href="dynamic.css.php">

<!--[if lt IE 9]>
		<script src="resources/initializr/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	<![endif]-->
<script src="resources/jquery/js/jquery-1.12.4.min.js"></script>
<script>
	var $j = jQuery.noConflict();
</script>
<script src="resources/moment/moment-with-locales.min.js"></script>
<script src="resources/jquery/js/jquery.mark.min.js"></script>
<script src="resources/initializr/js/vendor/bootstrap.min.js"></script>
<script src="resources/lightbox/js/prototype.js"></script>
<script src="resources/lightbox/js/scriptaculous.js?load=effects"></script>
<script src="resources/select2/select2.min.js"></script>
<script src="resources/timepicker/bootstrap-timepicker.min.js"></script>
<script src="resources/datepicker/js/datepicker.packed.js"></script>
<script src="resources/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="common.js.php"></script>
	<nav class="navbar navbar-default navbar-fixed-top hidden-print" role="navigation">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<!-- application title is obtained from the name besides the yellow database icon in AppGini, use underscores for spaces -->
			<a class="navbar-brand" href="index.php"><i class="glyphicon glyphicon-home"></i> Base-Application</a>
		</div>
		<div class="collapse navbar-collapse">
			<ul class="nav navbar-nav">
			</ul>


			<ul class="nav navbar-nav navbar-right hidden-xs" style="min-width: 330px;">
				<a class="btn navbar-btn btn-default"
					href="index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> </a>
				<p class="navbar-text">
					<strong><a href="membership_profile.php" class="navbar-link">guest</a></strong>
				</p>
			</ul>
			<ul class="nav navbar-nav visible-xs">
				<a class="btn navbar-btn btn-default btn-lg visible-xs"
					href="index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> </a>
				<p class="navbar-text text-center">
					<strong><a href="membership_profile.php" class="navbar-link">guest</a></strong>
				</p>
			</ul>
			<script>
				/* periodically check if user is still signed in */
						setInterval(function() {
							$j.ajax({
								url: 'ajax_check_login.php',
								success: function(username) {
									if(!username.length) window.location = 'index.php?signIn=1';
								}
							});
						}, 60000);
			</script>
		</div>
	</nav>
	<div style="height: 70px;" class="hidden-print"></div>


	<div class="notifcation-placeholder" id="notifcation-placeholder-22239645"></div>
	<script>
		$j(function() {
				if(window.show_notification != undefined) return;

				window.show_notification = function(options) {
					var dismiss_class = '';
					var dismiss_icon = '';
					var cookie_name = 'hide_notification_' + options.id;
					var notif_id = 'notifcation-' + Math.ceil(Math.random() * 1000000);

					/* apply provided notficiation id if unique in page */
					if(options.id != undefined) {
						if(!$j('#' + options.id).length) notif_id = options.id;
					}

					/* notifcation should be hidden? */
					if(localStorage.getItem(cookie_name) != undefined) return;

					/* notification should be dismissable? */
					if(options.dismiss_seconds > 0 || options.dismiss_days > 0) {
						dismiss_class = ' alert-dismissible';
						dismiss_icon = '<button type="button" class="close" data-dismiss="alert">&times;</button>';
					}

					/* remove old dismissed notficiations */
					$j('.alert-dismissible.invisible').remove();

					/* append notification to notifications container */
					$j(
						'<div class="alert alert-' + options['class'] + dismiss_class + '" id="' + notif_id + '">' + 
							dismiss_icon +
							options.message + 
						'</div>'
					).appendTo('#notifcation-placeholder-22239645');

					var this_notif = $j('#' + notif_id);

					/* dismiss after x seconds if requested */
					if(options.dismiss_seconds > 0) {
						setTimeout(function() { /* */ this_notif.addClass('invisible'); }, options.dismiss_seconds * 1000);
					}

					/* dismiss for x days if requested and user dismisses it */
					if(options.dismiss_days > 0) {
						var ex_days = options.dismiss_days;
						this_notif.on('closed.bs.alert', function() {
							/* set a cookie not to show this alert for ex_days */
							localStorage.setItem(cookie_name, '1');
						});
					}
				}
			})
	</script>


	<!-- process notifications -->
	<div style="height: 60px; margin: -15px 0 -45px;">
	</div>

	<!-- Add header template below here .. -->

	<script>
		$j(function() {
				show_notification({"message":"Table 'demo.accounts' doesn't exist","class":"danger","dismiss_seconds":7200,"dismiss_days":0,"id":0});
			})
	</script>
	<!-- Add footer template above here -->
	<div class="clearfix"></div>
	<div style="height: 70px;" class="hidden-print"></div>

</div> <!-- /div class="container" -->
<div class="navbar-fixed-bottom hidden-print alert-info">
	Wed, 30 Sep 2020 09:09:08 am EDT &nbsp; &nbsp; &nbsp; &nbsp;
	v 1.1.2</div>
<script src="resources/lightbox/js/lightbox.min.js"></script>
{"report":[],"meta":{"ip":"40.138.175.74","timestamp":"2020-09-30 09:09:08"}}`

Nonexistent/Inexistent table

using v2 of the API with postman
/api/v2/index.php?tb=Accounts

Returns the same for any db table

{
    "report": {
        "error": {
            "table-failed": "Nonexistent table"
        }
    },
    "meta": {
        "ip": "71.28.181.154",
        "timestamp": "2020-09-26 12:29:28"
    }
}

I also have AppGini installed in a folder off the root in a folder called "demo"
in the index.php for v2 on line 27 I added an extra ../ to the lib path and it all works and authenticates in postman, but always tells me "Nonexistent table" in the body

  • is there a bug?
  • because I have this in a folder called demo?
  • something wrong with how I configured postman?

Even v3 produces a similar error (Inexistent vs Nonexistent)
and also changed api-config.php path to add an extra ../ on line 20

{
    "report": {
        "error": "Inexistent table.",
        "type": "table-failed"
    },
    "meta": {
        "remote-ip": "71.28.181.154",
        "timestamp": 1601138260
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.