Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.
This repository was archived by the owner on May 11, 2023. It is now read-only.

JSON-API #53

Description

@ADoebeling
$rpf
    ->getApi()                                  // Load the API
    ->getDomainReadEntry()                      // Load the API-module domainReadEntry (bbDomain::readEntry)
    ->setOeid('ZY')                             // Optional: Get domains by hidden rp2-order-id
    ->addNameserver()                           // Optional: Add dns-records
    ->get();                                    // Return result as array, primary-key set to domain

as json-api:

  • $domain.tld/json.v1/getApi/getDomainEntry/setOeid=ZY/addNameserver[=1][/getArray]
  • $domain.tld/json.v1/getApi()->getDomainEntry()->setOeid(XY)->addNameserver()[/getArray]
  • Add help-urls like api.github.com

\/(json\.v1|get\w*|add\w*|set\w*)\=?(\w*)(\,\w*)*

$re = "/\\/(json\\.v1|get\\w*|add\\w*|set\\w*)\\=?(\\w*)?\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)/s"; 
$str = "\$domain.tld/json.v1=true/getApi=true/getDomainEntry/setOeid=ZY/addNameserver=1,2,test,4/getArray\n\njhkhjk\n\nlkjlj\n\n"; 

preg_match_all($re, $str,  #$matches);
  • getJson
  • getXml
  • getYaml

getDebug()

Gibt json als als debug-ansicht im Browser aus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions