src/Http/Controllers/MicroServiceController.php
public function info()
    {
        // Build the response object.
        $serviceInfo = (object) MicroServiceHelper::getServiceInfo();
        $serviceInfo->endpoints = [];

        // Add the endpoints.
        foreach (app()->getRoutes() as $appRoute) {
            $endpoint = new \stdClass();
            $endpoint->uri = $appRoute['uri'];
            $endpoint->method = $appRoute['method'];

            $serviceInfo->endpoints[] = $endpoint;
        }

        return response()->json($serviceInfo);
    }
public function info()
    {
        // Build the response object.
        $serviceInfo = (object) MicroServiceHelper::getServiceInfo();
        $serviceInfo->endpoints = [];

        // Add the endpoints.
        foreach (app()->getRoutes() as $appRoute) {
            $endpoint = new \stdClass();
            $endpoint->uri = $appRoute['uri'];
            $endpoint->method = $appRoute['method'];

            $serviceInfo->endpoints[] = $endpoint;
        }

        return response()->json($serviceInfo);
    }
public function info ( ) { // Build the response object. $ serviceInfo = ( object ) MicroServiceHelper :: getServiceInfo ( ) ; $ serviceInfo -> endpoints = [ ] ; // Add the endpoints. foreach ( app ( ) -> getRoutes ( ) as $ appRoute ) { $ endpoint = new \ stdClass ( ) ; $ endpoint -> uri = $ appRoute [ 'uri' ] ; $ endpoint -> method = $ appRoute [ 'method' ] ; $ serviceInfo -> endpoints [ ] = $ endpoint ; } return response ( ) -> json ( $ serviceInfo ) ; }
Retrieve information about this microservice.

Required by the service registry.

@return Response
Retrieve information about this microservice .