Discussions

Ask a Question
Back to All

How to replace example.com from the code snippets, in the language examples?

(edited)

For example on the api reference page, when looking at the curl example

Request

curl --request GET \
  --url https://example.com/api/v0.0.1/schema/ \
  --header 'Accept: application/vnd.oai.openapi'

Or, the python version:

Installation
Request

import requests
url = "https://example.com/api/v0.0.1/schema/"
headers = {"Accept": "application/vnd.oai.openapi"}
response = requests.request("GET", url, headers=headers)
print(response.text)

How to replace example.com?

I saw : https://docs.readme.com/docs/url-paths-in-readme#url-element-descriptions

But it didn't really go into any sort of details.

I also tried: https://docs.readme.com/docs/passing-data-to-jwt#setting-default-variables-in-the-ui