Skip to content

Commit 412ea68

Browse files
committed
fix: missing examples
1 parent 8e17635 commit 412ea68

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/dotnet/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using {{ spec.title | caseUcfirst }}.Services;
1111

1212
Client client = new Client()
1313
{% if method.auth|length > 0 %}
14-
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
14+
.SetEndPoint("{{ spec.endpointDocs | raw }}") // Your API Endpoint
1515
{% for node in method.auth %}
1616
{% for key,header in node|keys %}
1717
.Set{{header | caseUcfirst}}("{{node[header]['x-appwrite']['demo'] | raw }}"){% if loop.last %};{% endif %} // {{node[header].description}}

templates/go/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
client := client.NewClient()
2020

2121
{% if method.auth|length > 0 %}
22-
client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
22+
client.SetEndpoint("{{ spec.endpointDocs | raw }}") // Your API Endpoint
2323
{% for node in method.auth %}
2424
{% for key,header in node|keys %}
2525
client.Set{{header}}("{{node[header]['x-appwrite']['demo'] | raw }}") // {{node[header].description}}

templates/python/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ from {{ spec.title | caseSnake }}.enums import {{parameter.enumName | caseUcfirs
2222

2323
client = Client()
2424
{% if method.auth|length > 0 %}
25-
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
25+
client.set_endpoint('{{ spec.endpointDocs | raw }}') # Your API Endpoint
2626
{% for node in method.auth %}
2727
{% for key,header in node|keys %}
2828
client.set_{{header | caseSnake}}('{{node[header]['x-appwrite']['demo'] | raw }}') # {{node[header].description}}

templates/ruby/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include {{ spec.title | caseUcfirst }}::Enums
1414
{% endfor %}
1515

1616
client = Client.new
17-
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
17+
.set_endpoint('{{ spec.endpointDocs | raw }}') # Your API Endpoint
1818
{%~ for node in method.auth %}
1919
{%~ for key,header in node|keys %}
2020
.set_{{header|caseSnake}}('{{node[header]['x-appwrite']['demo'] | raw }}') # {{node[header].description}}

0 commit comments

Comments
 (0)