David Transport

This template should be used to describe the workings of the index.lc handler of the David Transport. This first paragraph should be used to summarise the function of this route, including keywords to make is easy to find.

# Transporter

The active roster below uses this transport.

David's sites ROSTER rest.livecode.world/david

# Meta

Type: transport Project: lcw_Controllers Github: stacks/david.livecodescript

# Handler

Below we sketch in pseudocode the outline of the handler. You can view the source here - github

on index put federation_FetchAuthorDomains ("David... put roster_ConstructPageArray (domainNames) ... fedwiki_ReturnPageArray pageArray end index

# Routes

There are no additional routes for this transport.

# Description

Here you would describe how you use the transport - a sort of mini-user Journey if you like. below ideally you will drop a screencast of how you use it.

digraph "dot_FromArray" { graph [ size="31.2500,31.2500" ]; subgraph "F" { node [fillcolor="GreenYellow", style="filled", color="Green4"]; fedwiki_ConstructCreateArray [label="fedwiki_ConstructCreateArray" URL="F+fedwiki_ConstructCreateArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructFactoryArray [label="fedwiki_ConstructFactoryArray" URL="F+fedwiki_ConstructFactoryArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructErrorJSON [label="fedwiki_ConstructErrorJSON" URL="F+fedwiki_ConstructErrorJSON+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructErrorArray [label="fedwiki_ConstructErrorArray" URL="F+fedwiki_ConstructErrorArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructPluginJsonUrl [label="fedwiki_ConstructPluginJsonUrl" URL="F+fedwiki_ConstructPluginJsonUrl+of+stack+%27lib_Fedwiki%27"]; json_ToArray [label="json_ToArray" URL="F+json_ToArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_lastStoryItemNum [label="fedwiki_lastStoryItemNum" URL="F+fedwiki_lastStoryItemNum+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructStoryParagraphArray [label="fedwiki_ConstructStoryParagraphArray" URL="F+fedwiki_ConstructStoryParagraphArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_FetchPluginJSON [label="fedwiki_FetchPluginJSON" URL="F+fedwiki_FetchPluginJSON+of+stack+%27lib_Fedwiki%27"]; roster_ConstructPageArray [label="roster_ConstructPageArray" URL="F+roster_ConstructPageArray+of+stack+%27lib_FedwikiRoster%27"]; federation_FetchAuthorArray [label="federation_FetchAuthorArray" URL="F+federation_FetchAuthorArray+of+stack+%27lib_Federation%27"]; fedwiki_ConstructNewPageArray [label="fedwiki_ConstructNewPageArray" URL="F+fedwiki_ConstructNewPageArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructStoryItemArray [label="fedwiki_ConstructStoryItemArray" URL="F+fedwiki_ConstructStoryItemArray+of+stack+%27lib_Fedwiki%27"]; json_FromArray [label="json_FromArray" URL="F+json_FromArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ConstructJournalArray [label="fedwiki_ConstructJournalArray" URL="F+fedwiki_ConstructJournalArray+of+stack+%27lib_Fedwiki%27"]; federation_FetchAuthorDomains [label="federation_FetchAuthorDomains" URL="F+federation_FetchAuthorDomains+of+stack+%27lib_Federation%27"]; } subgraph "c" { node [fillcolor="LightBlue", style="filled", color="Blue"]; index [label="index" URL="index%2Cc%2Cstack+%27david.lc%27%2C1"]; } subgraph "M" { node [fillcolor="Orange", style="filled", color="Red"]; fedwiki_AddToEndOfIndexArray [label="fedwiki_AddToEndOfIndexArray" URL="M+fedwiki_AddToEndOfIndexArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_AddParagraphToPageArray [label="fedwiki_AddParagraphToPageArray" URL="M+fedwiki_AddParagraphToPageArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_StripJournal [label="fedwiki_StripJournal" URL="M+fedwiki_StripJournal+of+stack+%27lib_Fedwiki%27"]; fedwiki_AddItemArrayToStoryEnd [label="fedwiki_AddItemArrayToStoryEnd" URL="M+fedwiki_AddItemArrayToStoryEnd+of+stack+%27lib_Fedwiki%27"]; fedwiki_AddToJournalArray [label="fedwiki_AddToJournalArray" URL="M+fedwiki_AddToJournalArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_ReturnJSON [label="fedwiki_ReturnJSON" URL="M+fedwiki_ReturnJSON+of+stack+%27lib_Fedwiki%27"]; fedwiki_AddFactoryToPageArray [label="fedwiki_AddFactoryToPageArray" URL="M+fedwiki_AddFactoryToPageArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_AddRosterToPageArray [label="fedwiki_AddRosterToPageArray" URL="M+fedwiki_AddRosterToPageArray+of+stack+%27lib_Fedwiki%27"]; url_SortDomainIndex [label="url_SortDomainIndex" URL="M+url_SortDomainIndex+of+stack+%27lib_Fedwiki%27"]; fedwiki_ReturnPageArray [label="fedwiki_ReturnPageArray" URL="M+fedwiki_ReturnPageArray+of+stack+%27lib_Fedwiki%27"]; fedwiki_SetID [label="fedwiki_SetID" URL="M+fedwiki_SetID+of+stack+%27lib_Fedwiki%27"]; } subgraph cluster1 { label="stack \"david.lc\""; style=filled; color=grey60; fillcolor=grey60; index } subgraph cluster2 { label="stack \"lib_Federation\""; style=filled; color=grey60; fillcolor=grey60; federation_FetchAuthorArray; federation_FetchAuthorDomains } subgraph cluster3 { label="stack \"lib_Fedwiki\""; style=filled; color=grey60; fillcolor=grey60; fedwiki_ConstructCreateArray; fedwiki_ConstructFactoryArray; fedwiki_AddToEndOfIndexArray; fedwiki_ConstructErrorJSON; fedwiki_ConstructErrorArray; fedwiki_AddParagraphToPageArray; fedwiki_StripJournal; fedwiki_AddItemArrayToStoryEnd; fedwiki_ConstructPluginJsonUrl; fedwiki_AddToJournalArray; json_ToArray; fedwiki_ReturnJSON; fedwiki_lastStoryItemNum; fedwiki_ConstructStoryParagraphArray; fedwiki_FetchPluginJSON; fedwiki_AddFactoryToPageArray; fedwiki_AddRosterToPageArray; fedwiki_ConstructNewPageArray; url_SortDomainIndex; fedwiki_ConstructStoryItemArray; json_FromArray; fedwiki_ConstructJournalArray; fedwiki_ReturnPageArray; fedwiki_SetID } subgraph cluster4 { label="stack \"lib_FedwikiRoster\""; style=filled; color=grey60; fillcolor=grey60; roster_ConstructPageArray } federation_FetchAuthorDomains -> federation_FetchAuthorArray; federation_FetchAuthorDomains -> url_SortDomainIndex; fedwiki_ConstructJournalArray -> fedwiki_ConstructCreateArray; fedwiki_AddRosterToPageArray -> fedwiki_AddItemArrayToStoryEnd; fedwiki_AddRosterToPageArray -> fedwiki_ConstructStoryItemArray; fedwiki_ConstructErrorJSON -> fedwiki_ConstructErrorArray; fedwiki_ConstructErrorJSON -> json_FromArray; fedwiki_AddToJournalArray -> fedwiki_AddToEndOfIndexArray; fedwiki_ConstructStoryItemArray -> fedwiki_SetID; fedwiki_FetchPluginJSON -> fedwiki_ConstructPluginJsonUrl; fedwiki_ConstructFactoryArray -> fedwiki_SetID; fedwiki_ConstructErrorArray -> fedwiki_ConstructNewPageArray; fedwiki_ReturnPageArray -> fedwiki_ConstructErrorJSON; fedwiki_ReturnPageArray -> fedwiki_ReturnJSON; fedwiki_AddItemArrayToStoryEnd -> fedwiki_ConstructFactoryArray; fedwiki_AddItemArrayToStoryEnd -> fedwiki_lastStoryItemNum; fedwiki_AddItemArrayToStoryEnd -> fedwiki_AddToJournalArray; fedwiki_AddItemArrayToStoryEnd -> fedwiki_AddToEndOfIndexArray; fedwiki_ConstructNewPageArray -> fedwiki_AddFactoryToPageArray; fedwiki_ConstructNewPageArray -> fedwiki_ConstructJournalArray; fedwiki_ConstructNewPageArray -> fedwiki_AddParagraphToPageArray; fedwiki_AddParagraphToPageArray -> fedwiki_ConstructStoryParagraphArray; index -> roster_ConstructPageArray; index -> fedwiki_ReturnPageArray; index -> federation_FetchAuthorDomains; roster_ConstructPageArray -> fedwiki_StripJournal; roster_ConstructPageArray -> fedwiki_AddRosterToPageArray; fedwiki_StripJournal -> fedwiki_ConstructCreateArray; json_FromArray -> json_FromArray; federation_FetchAuthorArray -> json_ToArray; federation_FetchAuthorArray -> fedwiki_FetchPluginJSON; json_ToArray -> json_ToArray; }

# Calls

# Tests There are no tests for this handler yet. Would you like to Create Handler Tests for this command? This handler has been: - [ ] Checked By Hand - [ ] Good Test Coverage

You can test this transporter with the HTML Form below:

Test: https:/rest.livecode.world/david

url: 

# Tags

# To Do

It should be enhanced to: - Use xxx - Do something else

# See also

This section is called "Reference" or "Associations" in the Livecode Dictionary. It's a place for useful links: - Handlers - Naming Convention