CausewayModuleExtLayoutLoadersGithub

Adds the Menu with its auto-configured menu entries.

API

CausewayModuleExtLayoutLoadersGithub.java
class CausewayModuleExtLayoutLoadersGithub {
  public static final String NAMESPACE;
  RestTemplate restTemplateForGithubSearch(CausewayConfiguration causewayConfiguration)     (1)
  RestTemplate restTemplateForGithubContent(CausewayConfiguration causewayConfiguration)     (2)
}
1 restTemplateForGithubSearch(CausewayConfiguration)

Returns a template configured to search for a file in the git repo.

2 restTemplateForGithubContent(CausewayConfiguration)

Returns a template configured to obtain the content of a file in a repo (from the default branch).

Members

restTemplateForGithubSearch(CausewayConfiguration)

Returns a template configured to search for a file in the git repo.

Append for example:

/search/code?q=SimpleObject.layout.xml+in:path+repo:apache/causeway-app-simpleapp

Returns for example:

{
  "total_count": 1,
  "incomplete_results": false,
  "items": [
    {
      "name": "SimpleObject.layout.xml",
      "path": "module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.layout.xml",
      ...
    },
     ...
   ]
   ...
}

restTemplateForGithubContent(CausewayConfiguration)

Returns a template configured to obtain the content of a file in a repo (from the default branch).

Append for example:

/contents/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.layout.xml