# 18.0: Swagger Setup

## Install and Setup Swagger

In this section, we set up **Swagger**, a tool that allows us to visualize all the endpoints of our API and easily test them.

1. In Visual Studio, go to **Tools -> NuGet Package Manager -> Package Manager Console**
2. Make sure **ElevenNote.WebAPI** is set as the default project
3. Type `install-package swashbuckle`
   * Triple check that your default project is **ElevenNote.WebAPI** before you hit enter, my selection kept jumping to **Models**
   * Hit *Enter*

     ![Swashbuckle](/files/-LAxsh04EhfryP_fekFY)
4. When it's finished installing, close the **Package Manager Console**
5. Go to **ElevenNote.WebAPI -> App\_Start -> SwaggerConfig.cs**
6. Replace the entire contents of the file with this [code](/dotnet-201-elevennote/elevennote-api-parts-13-19/part-18-swagger/18.0-swaggersetup/18.0a-swaggerconfig.md).
7. ![Git](/files/-LAwyxUd0dcYSLXYb-5s)

[Next,](/dotnet-201-elevennote/elevennote-api-parts-13-19/part-18-swagger/18.1-testwithswagger.md) we'll test endpoints in Swagger.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eleven-fifty-academy.gitbook.io/dotnet-201-elevennote/elevennote-api-parts-13-19/part-18-swagger/18.0-swaggersetup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
