---
title: "Get config file"
method: GET
path: "/api/v2/namespaces/{namespace}/gateway/info"
tags: ["gateway"]
---

# Get config file

`GET /api/v2/namespaces/{namespace}/gateway/info`

A basic OpenAPI config file is not required but can add context to the API provided by the gateway.
If none is provided Direktiv generates a virtual one with a basic configuration. The paths section
is autogenerated based on the route files provided in the namespace.

## Path parameters

- `namespace` string, required

## Query parameters

- `expand` string
- `server` string

## Response `200`

Basic configuration file for gateway in the namespace

- object
  - `errors` string[]
  - `warnings` string[]
  - `file_path` string — path to file in file tree
  - `spec` object — contains an OpenAPI spec object. The paths section is replaced based on the routes in the namespace.

---

[API](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference.md) · [All operations](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/direktiv/direktiv-apiv2-reference/revisions/ad935afb0f54/schema)
