PHP Classes

PHP API Service: Implements a project API using the Mind framework

Recommend this page to a friend!

  Author Author  
Picture of Ali YILMAZ
Name: Ali YILMAZ <contact>
Classes: 13 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 6x


  Detailed description   Download Download .zip .tar.gz  
This package implements a project API using the Mind framework.

It provides scripts to handle API requests to different endpoints.

Currently, the package implements API endpoints to:

- Create project partners

- Create project branches

- Create project products

- Take a backup of the project data

Details

apiservice

It helps to provide API support to projects. It is Simple, Safe and Fast.

Setup

After downloading the project, update your database username and password in the index.php file. Make sure you don't have a database named apiservice before.

If you want to change your database name, update apiservice with the new database name in the files in the directory below. app/migration/backups.

Get started

1) Partners, Branches and Products are listed in the main directory / . You can get the Token and Partner name here. 2) Clients should send parameters named "partner_name" and "partner_token" to api via "POST" method. csrf must be turned off in the firewall for external access. For more information, you can review the Mind documentation. 3) To help you, some rules have been defined on the firewall, know that you don't have to use it like that. 4) You can use apiservice/test/api for an example client scenario.

Creating a new partner

Type apiservice/new_partner in the address line and enter, fill out the form.

Creating a new branch

Type apiservice/new_branch in the address line and enter, fill out the form.

Creating a new product

Type apiservice/new_product in the address line and enter, fill out the form.

Take backup

Type apiservice/backup in the address line and download the file.

Restoring the backup

Accessing the Home Directory already restores the backup. This route is to show you how you can restore the backup externally. Type apiservice/restore in the address line and restore the file.

install

You can use it to create database and tables without demo content. Type apiservice/install in the address line and create the database requirements for the project. Remember to remove the app/migration/restore parameter defined to the / (home directory) route before using this option.

Disclaimer

All responsibility belongs to you when using this application. It is recommended not to commission the codes without examining and testing the codes.

License

The project files in this directory are shared under the GPL3 license.

>Copyright (C) 2021, Ali Y?lmaz and contributors > >This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. > >This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. > >You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.`


  Classes of Ali YILMAZ  >  PHP API Service  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP API Service
Base name: apiservice
Description: Implements a project API using the Mind framework
Version: -
PHP version: 5
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageapp (1 file, 5 directories)
Files folder imagepublic (1 file, 1 directory)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Plain text file Mind.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  app  
File Role Description
Files folder imageapi (1 file)
Files folder imagemiddleware (1 file)
Files folder imagemigration (3 files, 2 directories)
Files folder imagerequest (3 files)
Files folder imageviews (7 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data

  Files folder image Files  /  app  /  api  
File Role Description
  Accessible without login Plain text file partner.php Example Example script

  Files folder image Files  /  app  /  middleware  
File Role Description
  Accessible without login Plain text file auth.php Example Example script

  Files folder image Files  /  app  /  migration  
File Role Description
Files folder imagebackups (2 files)
Files folder imagetables (3 files)
  Accessible without login Plain text file backup.php Example Example script
  Accessible without login Plain text file install.php Example Example script
  Accessible without login Plain text file restore.php Example Example script

  Files folder image Files  /  app  /  migration  /  backups  
File Role Description
  Accessible without login Plain text file mysql_backup_2022_03_28_22_21_02.json Data Auxiliary data
  Accessible without login Plain text file sqlite_backup_2022_03_28_22_21_29.json Data Auxiliary data

  Files folder image Files  /  app  /  migration  /  tables  
File Role Description
  Accessible without login Plain text file branches.php Example Example script
  Accessible without login Plain text file partners.php Example Example script
  Accessible without login Plain text file products.php Example Example script

  Files folder image Files  /  app  /  request  
File Role Description
  Accessible without login Plain text file new_branch.php Example Example script
  Accessible without login Plain text file new_partner.php Example Example script
  Accessible without login Plain text file new_product.php Example Example script

  Files folder image Files  /  app  /  views  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Accessible without login Plain text file branches.php Example Example script
  Accessible without login Plain text file new_branch.php Example Example script
  Accessible without login Plain text file new_partner.php Example Example script
  Accessible without login Plain text file new_product.php Example Example script
  Accessible without login Plain text file partners.php Example Example script
  Accessible without login Plain text file products.php Example Example script

  Files folder image Files  /  public  
File Role Description
Files folder imagepng (2 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data

  Files folder image Files  /  public  /  png  
File Role Description
  Accessible without login Image file error.png Data Auxiliary data
  Accessible without login Image file main.png Data Auxiliary data

Download Download all files: apiservice.tar.gz apiservice.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
For more information send a message to info at phpclasses dot org.