# Example project

To help you get familiar with both new and existing functionality in Struct PIM, we provide an example project that demonstrates how different features can be used in practice.

## API demo project

A demo project for getting started with the Struct Web API. It shows how to work with products, variants, and categories, including creating, updating, and searching data. The project uses the Struct.App.Api.Client NuGet package and includes a T4 template for generating strongly typed C# models based on your PIM.

## About the demo project

Use this demo project to get familiar with the Web API. This project shows examples of getting product-, variant and category data as well as how to create and update these.

Furthermore, examples are shown on how to search products and work with global lists through the API.

To see the full reference of all API endpoints, [click here](/api-reference/endpoints.md).

## Getting started

The project is a complete Visual Studio solution, using the Struct.App.Api.Client, available in Nuget, to fetch data from a Struct PIM instance.

All you need to do, is unzip the downloaded project and set up the Url for your Struct PIM instance as well as an API key for that instance and you are good to go.&#x20;

{% embed url="<https://github.com/StructPim/Struct.ExampleProjects/tree/master/structpimapiv4demo>" %}
See project on GitHub
{% endembed %}

## Autogenerate C# classes

We provide a T4Template which, using the API, can autogenerate C# classes for you matching the models in Struct PIM, yielding strongly typed models for you to use with the API.

{% file src="/files/tdgHjuPFoQk9fm3WC8eC" %}
Download model generator here
{% endfile %}


---

# 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://docs.struct.com/developer/api-integration/example-project.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.
