Coder Social home page Coder Social logo

Comments (7)

akm-sabbir avatar akm-sabbir commented on July 29, 2024

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.

zachmay avatar zachmay commented on July 29, 2024

Is there a branch I can use to try out the code?

from inventory616.

akm-sabbir avatar akm-sabbir commented on July 29, 2024

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.

zachmay avatar zachmay commented on July 29, 2024

@akm-sabbir What routes are giving your problems? What is the error message you're getting?

from inventory616.

akm-sabbir avatar akm-sabbir commented on July 29, 2024

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.

zachmay avatar zachmay commented on July 29, 2024

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.

akm-sabbir avatar akm-sabbir commented on July 29, 2024

got that.
thannks and BR
Sabbir

On Mon, Apr 6, 2015 at 3:44 PM, Zachary May [email protected]
wrote:

Closed #16 #16.


Reply to this email directly or view it on GitHub
#16 (comment).

from inventory616.

Related Issues (17)

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.