# Hubs

## This retrieves list of all hubs information

> This retrieves list of all hubs information

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GEThubsResponse200":{"type":"object","properties":{"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["id","city","country","capacity","region"]}}},"required":["page","limit","total","results"]}}},"paths":{"/hubs":{"get":{"summary":"This retrieves list of all hubs information","description":"This retrieves list of all hubs information","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GEThubsResponse200"}}}}}}}}}
```

## POST /hubs

> POST /hubs

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"POSThubsRequest":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["city","country","capacity","region"]},"POSThubsResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/hubs":{"post":{"summary":"POST /hubs","tags":["Hubs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSThubsRequest"}}}},"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSThubsResponse200"}}}}}}}}}
```

## This retrieves just a particular hubs information

> This retrieves just a particular hub's information

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GEThubs%7Bid%7DResponse200":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["id","city","country","capacity","region"]}}},"paths":{"/hubs/%7Bid%7D":{"get":{"summary":"This retrieves just a particular hubs information","description":"This retrieves just a particular hub's information","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GEThubs%7Bid%7DResponse200"}}}}}}}}}
```

## DELETE /hubs/%7Bid%7D

> DELETE /hubs/%7Bid%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"DELETEhubs%7Bid%7DResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/hubs/%7Bid%7D":{"delete":{"summary":"DELETE /hubs/%7Bid%7D","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DELETEhubs%7Bid%7DResponse200"}}}}}}}}}
```

## PATCH /hubs/%7Bid%7D

> PATCH /hubs/%7Bid%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PATCHhubs%7Bid%7DRequest":{"type":"object","properties":{"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["city","country","capacity","region"]},"PATCHhubs%7Bid%7DResponse200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}},"paths":{"/hubs/%7Bid%7D":{"patch":{"summary":"PATCH /hubs/%7Bid%7D","tags":["Hubs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PATCHhubs%7Bid%7DRequest"}}}},"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PATCHhubs%7Bid%7DResponse200"}}}}}}}}}
```

## GET /hubs/city/%7Bcity%7D

> GET /hubs/city/%7Bcity%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GEThubscity%7Bcity%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["id","city","country","capacity","region"]}}}},"paths":{"/hubs/city/%7Bcity%7D":{"get":{"summary":"GET /hubs/city/%7Bcity%7D","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GEThubscity%7Bcity%7DResponse200"}}}}}}}}}
```

## GET /hubs/country/%7Bcountry%7D

> GET /hubs/country/%7Bcountry%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GEThubscountry%7Bcountry%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["id","city","country","capacity","region"]}}}},"paths":{"/hubs/country/%7Bcountry%7D":{"get":{"summary":"GET /hubs/country/%7Bcountry%7D","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GEThubscountry%7Bcountry%7DResponse200"}}}}}}}}}
```

## GET /hubs/capacity/min/%7Bmin%7D/max/%7Bmax%7D

> GET /hubs/capacity/min/%7Bmin%7D/max/%7Bmax%7D

```json
{"openapi":"3.1.0","info":{"title":"Generated API Specification","version":"1.0.0"},"servers":[{"url":"http://localhost:4000","description":"API Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"GEThubscapacitymin%7Bmin%7Dmax%7Bmax%7DResponse200":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"city":{"type":"string"},"country":{"type":"string"},"capacity":{"type":"number"},"region":{"type":"string"}},"required":["id","city","country","capacity","region"]}}}},"paths":{"/hubs/capacity/min/%7Bmin%7D/max/%7Bmax%7D":{"get":{"summary":"GET /hubs/capacity/min/%7Bmin%7D/max/%7Bmax%7D","tags":["Hubs"],"responses":{"200":{"description":"Response with status 200","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GEThubscapacitymin%7Bmin%7Dmax%7Bmax%7DResponse200"}}}}}}}}}
```


---

# 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://samuel-8.gitbook.io/samuel-docs/hubs.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.
