# System.Web.Http.Owin

**Kind:** Service

**Source:** `Pams/API/Pams.API/Pams.API.csproj` (line 1)

**Part of:** [Pams](subsystem-pams)

NuGet package dependency

`System.Web.Http.Owin` is a NuGet package dependency declared in the legacy project file for the Pams API. It connects ASP.NET Web API components with the OWIN hosting pipeline so HTTP requests can be handled by API controllers.

## Diagram

```mermaid
flowchart TD
    Client[JavaScript client] --> Request[HTTP request]
    Request --> Owin[OWIN pipeline]
    Owin --> WebApi[ASP.NET Web API]
    WebApi --> Controller[API controller]
    Controller --> Response[HTTP response]
    Response --> Client
```

## Usage

```ts
async function getPamsData() {
  const response = await fetch("/api/pams");

  if (!response.ok) {
    throw new Error(`API request failed: ${response.status}`);
  }

  return response.json();
}

getPamsData().then((data) => {
  console.log(data);
});
```

## AI Coding Instructions

- Treat `System.Web.Http.Owin` as a project dependency that supports Web API requests running through OWIN.
- Keep OWIN middleware and Web API configuration compatible with the legacy project format in `Pams.API.csproj`.
- Verify package references restore correctly before changing OWIN or Web API startup configuration.
- Test API routes through the hosted OWIN pipeline after updating controllers or middleware.

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Injected or called by (1)

- `Pams.API` — `Pams/API/Pams.API/Pams.API.csproj`:1
