# This is an OpenAPI Specification (https://swagger.io/specification/) # for the Hello World API # owned by NHS Digital (https://digital.nhs.uk/) openapi: "3.0.0" info: version: "0.0.1" title: Hello World API description: | ## Overview Use this API alongside our [tutorials](https://digital.nhs.uk/developer/api-tutorials) to learn how to connect to our APIs. ## Endpoints To see details for specific endpoints, select from the list on the left hand side of the page: - `GET /hello/world` - an example of an open-access endpoint - `GET /hello/application` - an example of an application-restricted endpoint - `GET /hello/user` - an example of a user-restricted endpoint contact: name: API Management Support email: api.management@nhs.net servers: - url: 'https://sandbox.api.service.nhs.uk/hello-world' description: Sandbox environment. paths: /hello/world: get: summary: Say hello world. operationId: getHello description: | Get a "Hello world!" response from an open-access endpoint. Use this API alongside our [open-access REST API tutorial](https://digital.nhs.uk/developer/api-tutorials#open-access-rest-api-tutorial) to learn how to connect to our APIs. responses: '200': description: Successful response. content: application/json: schema: type: object properties: message: type: string example: "Hello world!" example: message: "Hello world!" tags: - hello components: securitySchemes: api_key: type: apiKey name: apikey in: header oAuth2AuthCode: type: oauth2 flows: authorizationCode: authorizationUrl: https://sandbox.api.service.nhs.uk/oauth2/authorize tokenUrl: https://sandbox.api.service.nhs.uk/oauth2/token scopes: {} tags: - name: hello