Comments (7)
route.php
'api', 'namespace' => 'Api', 'middleware' => 'auth.api' ], function () { Route::get('example', 'ExampleController@get'); Route::post('example', 'ExampleController@post'); //route for team6 Route::get('/inventory/{tag}/history','CheckInController@getHistory'); Route::get('/inventory/{tag}/history/latest','CheckInController@getHistoryLatest'); Route::get('/inventory/{tag}/history/{num}','CheckInController@getHistoryByNum'); Route::post('/inventory/{tag}/history','CheckInController@postHistory'); }); Route::controllers([ 'auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController', ]);from inventory616.
Is there a branch I can use to try out the code?
from inventory616.
team6api i guess
On Sun, Apr 5, 2015 at 7:28 PM, Zachary May [email protected]
wrote:
Is there a branch I can use to try out the code?
—
Reply to this email directly or view it on GitHub
#16 (comment).
from inventory616.
@akm-sabbir What routes are giving your problems? What is the error message you're getting?
from inventory616.
Route::group([
'prefix' => 'api',
'namespace' => 'Api',
'middleware' => 'auth.api'
], function () {
//route for team6
Route::get('inventory/{tag}/history','CheckInController@getHistory');
Route::get('/inventory/{tag}/history/latest','CheckInController@getHistoryLatest');
Route::get('/inventory/{tag}/history/{num}','CheckInController@getHistoryByNum');
Route::post('/inventory/{tag}/history','CheckInController@postHistory');
});
when i tried with 192.168.33.99/inventory/abc123/history
the following error message showed up:
Sorry, the page you are looking for could not be found.
1/1 NotFoundHttpException in RouteCollection.php line 145:
my database contain the following data
| 1 | ABC123 | MacBook Pro | Grant 1234A | 1 | MacBook Pro 2015 | 2.2 GHz Quad-core | 16GB | 512GB | Mac OS X 10.10 | 1| 0 | 0 | 0 | 2015-04-05 18:43:18 | 2015-04-05 18:43:18 |
| 2 | abc1234 | MacBook Pro | Grant 1234A | 1 | MacBook Pro 2015 | 2.2 GHz Quad-core | 16GB | 512GB | Mac OS X 10.10 | 1| 0 | 0 | 0 | 2015-04-05 18:43:18 | 2015-04-05 18:43:18 |
| 3 | XYZ789 | Projector | Grant 1234B | 3 | ViewSonic PJD5132 | | | | | 0| 1 | 0 | 0 | 2015-04-05 18:43:18 | 2015-04-05 18:43:18 |
in online i found a solution about reinstalling everything. i may try to reinstall everything
thanks
from inventory616.
You're accessing /inventory/abc123/history
, but the API endpoints all start with api/
.
The call to Route::group(...)
creates a group of routes that share common details for organizational purposes. In this case, we define a set of routes that all share the common URL prefix api/
(among other details).
from inventory616.
got that.
thannks and BR
Sabbir
On Mon, Apr 6, 2015 at 3:44 PM, Zachary May [email protected]
wrote:
—
Reply to this email directly or view it on GitHub
#16 (comment).
from inventory616.
Related Issues (17)
- Organization and Outline HOT 37
- API - Inventory management
- API - Inventory Check-ins HOT 9
- API - Report - Inventory By Type
- API - Report - Reconciliation
- API - Facilities Management
- Front-End: HTML Mock-ups HOT 3
- Front-End: Foundations for JavaScript HOT 10
- Test Suite - Documentation HOT 2
- Disable Laravel CSRF protection for API HOT 5
- db seeder for checkin history HOT 1
- Need to check the raised exception due to integrity violation HOT 5
- body content resolution HOT 8
- Not able to check the api endpoint for inventory HOT 3
- query about room resource creation HOT 4
- Api Endpoints - Facilities Managements questions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inventory616.