---
title: "Retrieve code examples for typical use cases of the WS"
method: GET
path: "/codeExamples"
---

# Retrieve code examples for typical use cases of the WS

`GET /codeExamples`

## Request

- Base URL: `https://researchdata.tuwien.at` (the document declares no server; this is the origin it was published from)
- URL: `https://researchdata.tuwien.at/codeExamples`
- Auth: none declared
- TypeScript: <https://skmtc.dev/tuwien/apis/resilient-web-service-api/docs/codeExamples/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns code examples in plain text

## Query parameters

- `language` string

## Response `200`

Successful code example retrieval

- CodeExample: A code example with details about the programming language and its functionality.
  - `language` string, required: The programming language in which the code example is written.
  - `description` string, required: A description of the functionality implemented in the code example.
  - `codeExample` string, required: The actual code example.

## Other responses

- `400`: Bad request - Invalid language
- `404`: Code example not found

---

[API](https://skmtc.dev/tuwien/apis/resilient-web-service-api.md) - [All operations](https://skmtc.dev/tuwien/apis/resilient-web-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tuwien/apis/resilient-web-service-api/revisions/95d2c4a31179?raw)
