> For the complete documentation index, see [llms.txt](https://kyaws-organization-2.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kyaws-organization-2.gitbook.io/untitled/product-fetch.md).

# Product fetch

## Products

### GetProduct

<mark style="color:blue;">`GET`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/product`

#### Query Parameters

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| search     | String |             |
| categories | String |             |

### CreateProduct&#x20;

<mark style="color:green;">`POST`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/product`

#### Request Body

| Name                                         | Type   | Description |
| -------------------------------------------- | ------ | ----------- |
| title<mark style="color:red;">\*</mark>      | String |             |
| desc<mark style="color:red;">\*</mark>       | String |             |
| img<mark style="color:red;">\*</mark>        | String |             |
| categories<mark style="color:red;">\*</mark> | Array  |             |
| size                                         | String |             |
| color                                        | String |             |
| price<mark style="color:red;">\*</mark>      | String |             |

### UpdateProduct

<mark style="color:orange;">`PUT`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/product/:id`

#### Path Parameters

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String |             |

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| eg.title<mark style="color:red;">\*</mark> | String |             |

### DeleteProduct

<mark style="color:red;">`DELETE`</mark> `https://eco-api-ogdf.onrender.com/fod/api/v1/product/:id`

#### Path Parameters

| Name                               | Type   | Description |
| ---------------------------------- | ------ | ----------- |
| <mark style="color:red;">\*</mark> | String |             |
