{"id":28376644,"url":"https://github.com/apiaryio/language-templates","last_synced_at":"2025-06-26T10:31:08.429Z","repository":{"id":2872687,"uuid":"3878483","full_name":"apiaryio/language-templates","owner":"apiaryio","description":"Language templates used to render example HTTP calls in different languages","archived":true,"fork":false,"pushed_at":"2015-06-09T08:16:58.000Z","size":917,"stargazers_count":35,"open_issues_count":7,"forks_count":18,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-30T00:07:30.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://apiaryio.github.io/language-templates","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apiaryio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-30T16:27:23.000Z","updated_at":"2024-11-08T09:04:04.000Z","dependencies_parsed_at":"2022-08-31T03:41:34.799Z","dependency_job_id":null,"html_url":"https://github.com/apiaryio/language-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apiaryio/language-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiaryio%2Flanguage-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiaryio%2Flanguage-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiaryio%2Flanguage-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiaryio%2Flanguage-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apiaryio","download_url":"https://codeload.github.com/apiaryio/language-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiaryio%2Flanguage-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262047831,"owners_count":23250425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T00:07:29.486Z","updated_at":"2025-06-26T10:31:08.417Z","avatar_url":"https://github.com/apiaryio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository lists language templates used to power code samples in Apiary's API Documentations. Please feel free to contribute your own languages or improve the existing ones.\n\nYou can try-out your code at [Language Templates Playground](http://apiaryio.github.io/language-templates).\n\n## Interface\n\nThe HTML templates are written in [ECT](http://ectjs.com/), which places data between `\u003c%=` and `%\u003e` tags and control structures between `\u003c%` and `%\u003e`. The following are variables and helper methods you can use when rendering the code for a request:\n\n- **@headers** - HTTP headers to be sent\n- **@body** - HTTP body to be sent\n- **@method** - HTTP method used in the request\n- **@url** - URL of the request, relative to the root of the server (starting with '/')\n- **@apiUrl** - Hostname of the API mock/proxy server (including http/https, not including trailing '/')\n- **@contentType** - A shorthand for `@headers['content-type']`\n- **@helpers.escape** - escape `\"` (double-quote) characters\n- **@helpers.rubyKey** - helper that produces `content_type` out of `Content-Type`\n- **@helpers.getContentType(headers)** - same as `@contentType` but in form of a function you can pass any array of headers\n- **@helpers.getContentTypeBrush(headers)** - produces a CSS class that enabled syntax-highlighting for this language\n- **@helpers.isNotEmpty** (obj) - same like `[].length != 0` for objects (hash maps)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiaryio%2Flanguage-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapiaryio%2Flanguage-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiaryio%2Flanguage-templates/lists"}