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

JSON-API #53

Open
ADoebeling opened this issue Jun 4, 2016 · 1 comment
Open

JSON-API #53

ADoebeling opened this issue Jun 4, 2016 · 1 comment

Comments

@ADoebeling
Copy link
Owner

ADoebeling commented Jun 4, 2016

$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

@LBeckX
Copy link
Contributor

LBeckX commented Jul 12, 2017

Reminder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants