https://github.com/wrannaman/corvalissustainabilityweb
https://github.com/wrannaman/corvalissustainabilityweb
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wrannaman/corvalissustainabilityweb
- Owner: wrannaman
- License: other
- Created: 2016-01-27T03:09:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-13T23:39:29.000Z (over 9 years ago)
- Last Synced: 2025-10-25T15:01:57.498Z (25 days ago)
- Language: PHP
- Size: 7.18 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
trying to access folder outside of wordpress:
http://wordpress.stackexchange.com/questions/20152/cannot-access-non-wordpress-subdirectories-as-wordpress-overrides-them-with-a-40
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/subdirectoryname1/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/subdirectoryname2/(.*)$ [OR]
RewriteRule ^.*$ - [L]
Authentication
username: test@gmail.com
password: 123
JSON API:
routes:
get (/app/api/businesses.php) => all businesses
get (/app/api/repairCategories.php) => returns cat_id and a cat_name, cat_name is the category
name you can display, and use the cat_id to post to the server when the user selects the category.
post (/app/api/repairBusinesses.php) @param : {"cat_id": 1} => Post to this url with parameter 'cat_id' and it returns business names for that category where the business type is 'repair'
get (/app/api/reuseCategories.php) => returns cat_id and a cat_name, cat_name is the category
name you can display, and use the cat_id to post to the server when the user selects the category.
post (/app/api/reuseBusinesses.php) @param : {"cat_id": 1} => Post to this url with parameter 'cat_id' and it returns business names for that category where the business type is 'reuse'
post (/app/api/business.php) @param: {"bus_id"" 1} => Post to this url with parameter 'bus_id' and it returns that businesses.