src/Apib.php
private function buildParsedRequests(ApiParseResult $parseResult) : array
    {
        $requests = [];

        foreach ($parseResult->getApi()->getResourceGroups() as $apiResourceGroup) {
            foreach ($apiResourceGroup->getResources() as $apiResource) {
                foreach ($apiResource->getTransitions() as $apiStateTransition) {
                    foreach ($apiStateTransition->getHttpTransactions() as $apiHttpTransaction) {
                        $this->processApiHttpTransactions(
                            $apiHttpTransaction,
                            $apiResourceGroup,
                            $apiResource,
                            $apiStateTransition,
                            $requests
                        );
                    }
                }
            }
        }

        return $requests;
    }
private function buildParsedRequests(ApiParseResult $parseResult) : array
    {
        $requests = [];

        foreach ($parseResult->getApi()->getResourceGroups() as $apiResourceGroup) {
            foreach ($apiResourceGroup->getResources() as $apiResource) {
                foreach ($apiResource->getTransitions() as $apiStateTransition) {
                    foreach ($apiStateTransition->getHttpTransactions() as $apiHttpTransaction) {
                        $this->processApiHttpTransactions(
                            $apiHttpTransaction,
                            $apiResourceGroup,
                            $apiResource,
                            $apiStateTransition,
                            $requests
                        );
                    }
                }
            }
        }

        return $requests;
    }
Traverse the document and build parsed requests for spas

@param ApiParseResult $parseResult
@return ParsedRequest[]