diff --git a/lnbits/extensions/subdomains/README.md b/lnbits/extensions/subdomains/README.md index ca3fce5a..49ee0dc7 100644 --- a/lnbits/extensions/subdomains/README.md +++ b/lnbits/extensions/subdomains/README.md @@ -1,34 +1,27 @@
curl -H "Content-type: application/json" -X POST https://YOUR-LNBITS/YOUR-EXTENSION/api/v1/EXAMPLE -d '{"amount":"100","memo":"subdomains"}' -H "X-Api-Key: YOUR_WALLET-ADMIN/INVOICE-KEY"
-
-## cloudflare
+## Useful
+### Cloudflare
- Cloudflare offers programmatic subdomain registration... (create new A record)
- you can keep your existing domain's registrar, you just have to transfer dns records to the cloudflare (free service)
- more information:
@@ -40,26 +33,4 @@ and maybe an option to blacklist certain subdomains that i don't want to sell
- https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record
- api can be used by providing authorization token OR authorization key
- check API Tokens and API Keys : https://api.cloudflare.com/#getting-started-requests
-
-
-
-example curls:
-List dns records
-```bash
-curl --location --request GET 'https://api.cloudflare.com/client/v4/zones/bf3c1e516b35878c9f6532db2f2705ee/dns_records?type=A' \
---header 'Content-Type: application/json' \
---header 'Authorization: Bearer mS3gGFC3ySLqBe2ERtRTlh7H2YiGbFp2KLDK62uu'
-```
-
-```bash
-curl --location --request POST 'https://api.cloudflare.com/client/v4/zones/bf3c1e516b35878c9f6532db2f2705ee/dns_records' \
---header 'Content-Type: application/json' \
---header 'Authorization: Bearer mS3gGFC3ySLqBe2ERtRTlh7H2YiGbFp2KLDK62uu' \
---data-raw '{
- "type":"A",
- "name":"subdomain1.grmkris.com",
- "content":"31.15.150.237",
- "ttl":0,
- "proxied":true
-}'
-```
\ No newline at end of file
+- Cloudflare API postman collection: https://support.cloudflare.com/hc/en-us/articles/115002323852-Using-Cloudflare-API-with-Postman-Collections
\ No newline at end of file
diff --git a/lnbits/extensions/subdomains/templates/subdomains/_api_docs.html b/lnbits/extensions/subdomains/templates/subdomains/_api_docs.html
new file mode 100644
index 00000000..61b79947
--- /dev/null
+++ b/lnbits/extensions/subdomains/templates/subdomains/_api_docs.html
@@ -0,0 +1,16 @@
+
+ Charge people for using your subdomain name...
+ Are you the owner of cool-domain.com and want to sell cool-subdomain.cool-domain.com
+
+
+ Created by, Kris
+