---
title: "List Locations"
method: GET
path: "/api/locations/{loc_id}"
---

# List Locations

`GET /api/locations/{loc_id}`

يعرض كل المواقع مع current_capacity = مجموع quantities من inventory_locations لكل loc_id

## Path parameters

- `loc_id` string, required

## Response `200`

Successful Response

- LocationOut
  - `id` string, required
  - `loc_name` string, required
  - `max_capacity` integer, required
  - `current_capacity` integer, required
  - `type` string, required
  - `color` string
  - `description` string, nullable
  - `accepted_pages` string[], nullable
  - `accepted_categories` string[], nullable
  - `accepted_attrs` string[], nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/liposta/apis/fastapi.md) · [All operations](https://skmtc.dev/liposta/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liposta/fastapi/revisions/583b8b6acecd/schema)
