PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (30)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-03-29 (10 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 50 This week: 1All time: 10,396 This week: 291Up
Version License PHP version Categories
apiservice 1.0GNU General Publi...5PHP 5, Web services
Description Author

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

Picture of Ali YILMAZ
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 15 packages by
Country: Turkey Turkey
Age: ???
All time rank: 256742 in Turkey Turkey
Week rank: 146 Up3 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 7x

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/.`

  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:50
This week:1
All time:10,396
This week:291Up