# `PgRest.Registry`
[🔗](https://github.com/agoodway/pgrest/blob/v0.1.0/lib/pg_rest/registry.ex#L1)

GenServer that discovers and indexes PgRest resources at startup.

Uses ETS for concurrent read access — lookups don't serialize through the GenServer.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `get_resource`

```elixir
@spec get_resource(String.t() | module()) :: {:ok, map()} | {:error, :not_found}
```

Looks up a resource by table name (string) or module (atom).

# `list_resources`

```elixir
@spec list_resources() :: [map()]
```

Returns all registered resource configs.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

Starts the registry GenServer.

## Options

  * `:otp_app` - application to scan for PgRest resources (auto-discovery)
  * `:modules` - explicit list of modules to register (skips discovery)
  * `:name` - GenServer name (default: `PgRest.Registry`)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
