openapi: 3.0.3
info:
title: 'ViraBackEnd API Documentation'
description: ''
version: 1.0.0
servers:
-
url: 'https://viratest2.ir'
tags:
-
name: Endpoints
description: ''
paths:
/api/v1/repairshops/shops:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
shops:
data:
-
id: 119996
name: sdr99995
code: sbr99995
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119995
name: sdr99994
code: sbr99994
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119994
name: sdr99993
code: sbr99993
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119993
name: sdr99992
code: sbr99992
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119992
name: sdr99991
code: sbr99991
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119991
name: sdr99990
code: sbr99990
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119990
name: sdr99989
code: sbr99989
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119989
name: sdr99988
code: sbr99988
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119988
name: sdr99987
code: sbr99987
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119987
name: sdr99986
code: sbr99986
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119986
name: sdr99985
code: sbr99985
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119985
name: sdr99984
code: sbr99984
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119984
name: sdr99983
code: sbr99983
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119983
name: sdr99982
code: sbr99982
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119982
name: sdr99981
code: sbr99981
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
path: 'https://viratest2.ir/api/v1/repairshops/shops'
per_page: 15
next_cursor: eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9
next_page_url: 'https://viratest2.ir/api/v1/repairshops/shops?cursor=eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9'
prev_cursor: null
prev_page_url: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
shops:
type: object
properties:
data:
type: array
example:
-
id: 119996
name: sdr99995
code: sbr99995
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119995
name: sdr99994
code: sbr99994
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119994
name: sdr99993
code: sbr99993
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119993
name: sdr99992
code: sbr99992
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119992
name: sdr99991
code: sbr99991
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119991
name: sdr99990
code: sbr99990
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119990
name: sdr99989
code: sbr99989
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119989
name: sdr99988
code: sbr99988
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119988
name: sdr99987
code: sbr99987
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119987
name: sdr99986
code: sbr99986
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119986
name: sdr99985
code: sbr99985
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119985
name: sdr99984
code: sbr99984
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119984
name: sdr99983
code: sbr99983
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119983
name: sdr99982
code: sbr99982
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
-
id: 119982
name: sdr99981
code: sbr99981
is_active: active
type: inside
fee: null
description: null
created_at: '2026-02-10T09:54:29.000000Z'
updated_at: '2026-02-10T09:54:29.000000Z'
deleted_at: null
items:
type: object
properties:
id:
type: integer
example: 119996
name:
type: string
example: sdr99995
code:
type: string
example: sbr99995
is_active:
type: string
example: active
type:
type: string
example: inside
fee:
type: string
example: null
nullable: true
description:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-02-10T09:54:29.000000Z'
updated_at:
type: string
example: '2026-02-10T09:54:29.000000Z'
deleted_at:
type: string
example: null
nullable: true
path:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/shops'
per_page:
type: integer
example: 15
next_cursor:
type: string
example: eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9
next_page_url:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/shops?cursor=eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9'
prev_cursor:
type: string
example: null
nullable: true
prev_page_url:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: ''
example: architecto
code:
type: string
description: ''
example: architecto
type:
type: string
description: ''
example: inside
enum:
- inside
- outside
nullable: true
fee:
type: number
description: ''
example: 4326.41688
nullable: true
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
nullable: true
required:
- name
- code
security: []
'/api/v1/repairshops/shops/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
shop:
id: 3
name: architecto
code: architecto
is_active: active
type: inside
fee: '4326.41688'
description: 'Eius et animi quos velit et.'
created_at: '2026-02-10T09:44:07.000000Z'
updated_at: '2026-02-15T13:02:25.000000Z'
deleted_at: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
shop:
type: object
properties:
id:
type: integer
example: 3
name:
type: string
example: architecto
code:
type: string
example: architecto
is_active:
type: string
example: active
type:
type: string
example: inside
fee:
type: string
example: '4326.41688'
description:
type: string
example: 'Eius et animi quos velit et.'
created_at:
type: string
example: '2026-02-10T09:44:07.000000Z'
updated_at:
type: string
example: '2026-02-15T13:02:25.000000Z'
deleted_at:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: ''
example: architecto
nullable: true
code:
type: string
description: ''
example: architecto
nullable: true
type:
type: string
description: ''
example: outside
enum:
- inside
- outside
nullable: true
fee:
type: number
description: ''
example: 4326.41688
nullable: true
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
nullable: true
is_active:
type: string
description: ''
example: inactive
enum:
- active
- inactive
nullable: true
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the shop.'
example: 3
required: true
schema:
type: integer
/api/v1/repairshops/tmCodes:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
tmCodes:
data: []
path: 'https://viratest2.ir/api/v1/repairshops/tmCodes'
per_page: 15
next_cursor: null
next_page_url: null
prev_cursor: null
prev_page_url: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
tmCodes:
type: object
properties:
data:
type: array
example: []
path:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/tmCodes'
per_page:
type: integer
example: 15
next_cursor:
type: string
example: null
nullable: true
next_page_url:
type: string
example: null
nullable: true
prev_cursor:
type: string
example: null
nullable: true
prev_page_url:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: ''
example: architecto
title:
type: string
description: ''
example: architecto
hours:
type: integer
description: ''
example: 16
amount_per_hours:
type: integer
description: ''
example: 16
max_cost:
type: integer
description: ''
example: 16
base_amount:
type: integer
description: ''
example: 16
shop_id:
type: integer
description: ''
example: 16
mechanism_group_id:
type: integer
description: ''
example: 16
is_active:
type: string
description: ''
example: 'N'
enum:
- 'Y'
- 'N'
type:
type: string
description: ''
example: CM
enum:
- CM
- EM
- PM
required:
- code
- title
- hours
- amount_per_hours
- max_cost
- base_amount
- shop_id
- mechanism_group_id
- is_active
- type
security: []
'/api/v1/repairshops/tmCodes/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'No query results for model [Modules\RepairShop\Models\TmCode] 16'
properties:
message:
type: string
example: 'No query results for model [Modules\RepairShop\Models\TmCode] 16'
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: ''
example: architecto
nullable: true
title:
type: string
description: ''
example: architecto
nullable: true
hours:
type: integer
description: ''
example: 16
nullable: true
amount_per_hours:
type: integer
description: ''
example: 16
nullable: true
max_cost:
type: integer
description: ''
example: 16
nullable: true
base_amount:
type: integer
description: ''
example: 16
nullable: true
shop_id:
type: integer
description: ''
example: 16
nullable: true
mechanism_group_id:
type: integer
description: ''
example: 16
nullable: true
is_active:
type: string
description: ''
example: 'Y'
enum:
- 'Y'
- 'N'
nullable: true
type:
type: string
description: ''
example: EM
enum:
- CM
- EM
- PM
nullable: true
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the tmCode.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/finalStatements:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
finalStatements:
data: []
path: 'https://viratest2.ir/api/v1/repairshops/finalStatements'
per_page: 15
next_cursor: null
next_page_url: null
prev_cursor: null
prev_page_url: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
finalStatements:
type: object
properties:
data:
type: array
example: []
path:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/finalStatements'
per_page:
type: integer
example: 15
next_cursor:
type: string
example: null
nullable: true
next_page_url:
type: string
example: null
nullable: true
prev_cursor:
type: string
example: null
nullable: true
prev_page_url:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
number:
type: integer
description: ''
example: 16
date:
type: string
description: 'فیلد value باید یک تاریخ معتبر باشد.'
example: '2026-02-21T07:15:17'
creator_id:
type: integer
description: ''
example: 16
shop_id:
type: integer
description: ''
example: 16
shop_name:
type: string
description: ''
example: architecto
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
required:
- title
- number
- date
- creator_id
- shop_id
- shop_name
- description
security: []
'/api/v1/repairshops/finalStatements/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'No query results for model [Modules\RepairShop\Models\FinalStatement] 16'
properties:
message:
type: string
example: 'No query results for model [Modules\RepairShop\Models\FinalStatement] 16'
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
nullable: true
number:
type: integer
description: ''
example: 16
nullable: true
date:
type: string
description: 'فیلد value باید یک تاریخ معتبر باشد.'
example: '2026-02-21T07:15:18'
nullable: true
creator_id:
type: integer
description: ''
example: 16
nullable: true
shop_id:
type: integer
description: ''
example: 16
nullable: true
shop_name:
type: string
description: ''
example: architecto
nullable: true
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
nullable: true
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the finalStatement.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/finalStatementsFactors:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
finalStatementsFactors:
data: []
path: 'https://viratest2.ir/api/v1/repairshops/finalStatementsFactors'
per_page: 15
next_cursor: null
next_page_url: null
prev_cursor: null
prev_page_url: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
finalStatementsFactors:
type: object
properties:
data:
type: array
example: []
path:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/finalStatementsFactors'
per_page:
type: integer
example: 15
next_cursor:
type: string
example: null
nullable: true
next_page_url:
type: string
example: null
nullable: true
prev_cursor:
type: string
example: null
nullable: true
prev_page_url:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد.'
example: bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn
nullable: true
number:
type: integer
description: ''
example: 16
nullable: true
date:
type: string
description: 'فیلد value باید یک تاریخ معتبر باشد.'
example: '2026-02-21T07:15:18'
nullable: true
final_statement_id:
type: string
description: 'The id of an existing record in the final_statements table.'
example: null
nullable: true
security: []
'/api/v1/repairshops/finalStatementsFactors/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
finalStatementFactor:
final: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
finalStatementFactor:
type: object
properties:
final:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد.'
example: bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn
number:
type: integer
description: ''
example: 16
date:
type: string
description: 'فیلد value باید یک تاریخ معتبر باشد.'
example: '2026-02-21T07:15:18'
final_statement_id:
type: string
description: 'The id of an existing record in the final_statements table.'
example: architecto
required:
- name
- number
- date
- final_statement_id
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the finalStatementsFactor.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/pmGroups:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
pmGroups:
data: []
path: 'https://viratest2.ir/api/v1/repairshops/pmGroups'
per_page: 15
next_cursor: null
next_page_url: null
prev_cursor: null
prev_page_url: null
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
pmGroups:
type: object
properties:
data:
type: array
example: []
path:
type: string
example: 'https://viratest2.ir/api/v1/repairshops/pmGroups'
per_page:
type: integer
example: 15
next_cursor:
type: string
example: null
nullable: true
next_page_url:
type: string
example: null
nullable: true
prev_cursor:
type: string
example: null
nullable: true
prev_page_url:
type: string
example: null
nullable: true
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tm_code_id:
type: string
description: 'The id of an existing record in the tm_codes table.'
example: architecto
mechanism_group_code:
type: string
description: ''
example: architecto
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
nullable: true
minutes:
type: integer
description: ''
example: 16
km:
type: integer
description: ''
example: 16
required:
- tm_code_id
- mechanism_group_code
- minutes
- km
security: []
'/api/v1/repairshops/pmGroups/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'No query results for model [Modules\RepairShop\Models\PmGroup] 16'
properties:
message:
type: string
example: 'No query results for model [Modules\RepairShop\Models\PmGroup] 16'
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
tm_code_id:
type: string
description: 'The id of an existing record in the tm_codes table.'
example: null
nullable: true
mechanism_group_code:
type: string
description: ''
example: architecto
nullable: true
description:
type: string
description: ''
example: 'Eius et animi quos velit et.'
nullable: true
minutes:
type: integer
description: ''
example: 16
nullable: true
km:
type: integer
description: ''
example: 16
nullable: true
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the pmGroup.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/repairmen:
get:
summary: 'Display a listing of the resource.'
operationId: displayAListingOfTheResource
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: 'Store a newly created resource in storage.'
operationId: storeANewlyCreatedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: b
family:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: 'n'
phone:
type: string
description: ''
example: null
nullable: true
national_code:
type: string
description: ''
example: null
nullable: true
personal_code:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 7 کاراکتر باشد.'
example: gzmiyvd
nullable: true
workplace:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: l
nullable: true
contract_status:
type: string
description: ''
example: completion
enum:
- have
- completion
- no_need
nullable: true
required:
- name
- family
security: []
'/api/v1/repairshops/repairmen/{id}':
get:
summary: 'Show the specified resource.'
operationId: showTheSpecifiedResource
description: ''
parameters: []
responses:
404:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'No query results for model [Modules\RepairShop\Models\Repairman] 16'
properties:
message:
type: string
example: 'No query results for model [Modules\RepairShop\Models\Repairman] 16'
tags:
- Endpoints
security: []
put:
summary: 'Update the specified resource in storage.'
operationId: updateTheSpecifiedResourceInStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: b
nullable: true
family:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: 'n'
nullable: true
phone:
type: string
description: ''
example: null
nullable: true
national_code:
type: string
description: ''
example: null
nullable: true
personal_code:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 7 کاراکتر باشد.'
example: gzmiyvd
nullable: true
workplace:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: l
nullable: true
contract_status:
type: string
description: ''
example: have
enum:
- have
- completion
- no_need
nullable: true
security: []
delete:
summary: 'Remove the specified resource from storage.'
operationId: removeTheSpecifiedResourceFromStorage
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the repairman.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/tmRequests:
post:
summary: ''
operationId: postApiV1RepairshopsTmRequests
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
mechanism_id:
type: integer
description: ''
example: 16
driver_id:
type: integer
description: ''
example: 16
description:
type: string
description: 'فیلد value نباید بیشتر از 255 کاراکتر باشد.'
example: 'Et animi quos velit et fugiat.'
nullable: true
type:
type: string
description: ''
example: CM
enum:
- PM
- CM
- EM
nullable: true
required:
- mechanism_id
- driver_id
security: []
'/api/v1/repairshops/tmRequests/{id}':
get:
summary: ''
operationId: getApiV1RepairshopsTmRequestsId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1RepairshopsTmRequestsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
infos:
type: array
description: ''
example: null
items:
type: object
properties:
id:
type: integer
description: 'The id of an existing record in the repairshop.tm_requests_info table.'
example: 16
nullable: true
tm_code_id:
type: integer
description: 'The id of an existing record in the repairshop.tm_codes table.'
example: 16
shop_id:
type: integer
description: 'The id of an existing record in the repairshop.shops table.'
example: 16
nullable: true
mechanism_id:
type: integer
description: 'The id of an existing record in the repairshop.mechanisms table.'
example: 16
driver_id:
type: integer
description: 'The id of an existing record in the repairshop.drivers table.'
example: 16
nullable: true
status:
type: string
description: ''
example: architecto
nullable: true
required:
- tm_code_id
- mechanism_id
security: []
delete:
summary: ''
operationId: deleteApiV1RepairshopsTmRequestsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the tmRequest.'
example: 16
required: true
schema:
type: integer
/api/v1/repairshops/tmRequests/storeFromWorkshop:
post:
summary: ''
operationId: postApiV1RepairshopsTmRequestsStoreFromWorkshop
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
mechanism_id:
type: integer
description: ''
example: 16
driver_id:
type: integer
description: ''
example: 16
type:
type: string
description: ''
example: EM
enum:
- PM
- CM
- EM
nullable: true
infos:
type: array
description: 'فیلد value نباید کمتر از 1 آیتم داشته باشد.'
example:
- []
items:
type: object
properties:
tm_code_id:
type: string
description: 'The id of an existing record in the repairshop.tm_codes table.'
example: architecto
shop_id:
type: string
description: 'The id of an existing record in the repairshop.shops table.'
example: architecto
description:
type: string
description: 'فیلد value نباید بیشتر از 255 کاراکتر باشد.'
example: 'Et animi quos velit et fugiat.'
nullable: true
cost:
type: integer
description: ''
example: 16
nullable: true
tm_code_count:
type: integer
description: 'فیلد value نباید کوچکتر از 1 باشد.'
example: 22
nullable: true
type_code:
type: string
description: ''
example: not_accepted
enum:
- all
- accepted
- not_accepted
nullable: true
required:
- tm_code_id
- shop_id
required:
- mechanism_id
- driver_id
- infos
security: []
/api/v1/repairshops/tmRequests/setTmRequestFinalStatement:
post:
summary: ''
operationId: postApiV1RepairshopsTmRequestsSetTmRequestFinalStatement
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
final_statement_id:
type: string
description: 'The id of an existing record in the final_statements table.'
example: architecto
work_order_numbers:
type: array
description: 'The work_order_number of an existing record in the tm_requests table.'
example:
- architecto
items:
type: string
required:
- final_statement_id
- work_order_numbers
security: []
'/api/v1/repairshops/tmRequests/{tmrequest_id}/reject':
patch:
summary: ''
operationId: patchApiV1RepairshopsTmRequestsTmrequest_idReject
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: tmrequest_id
description: 'The ID of the tmrequest.'
example: 16
required: true
schema:
type: integer
'/api/v1/repairshops/tmRequests/{tmrequest_id}/toWaiting':
patch:
summary: ''
operationId: patchApiV1RepairshopsTmRequestsTmrequest_idToWaiting
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: tmrequest_id
description: 'The ID of the tmrequest.'
example: 16
required: true
schema:
type: integer
'/api/v1/repairshops/tmRequests/{tmrequest_id}/toDeparture':
patch:
summary: ''
operationId: patchApiV1RepairshopsTmRequestsTmrequest_idToDeparture
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: tmrequest_id
description: 'The ID of the tmrequest.'
example: 16
required: true
schema:
type: integer
'/api/v1/repairshops/tmRequests/{tmrequest_id}/rollbackToAccepted':
patch:
summary: ''
operationId: patchApiV1RepairshopsTmRequestsTmrequest_idRollbackToAccepted
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: tmrequest_id
description: 'The ID of the tmrequest.'
example: 16
required: true
schema:
type: integer
'/api/v1/repairshops/tmRequests/info/{tmrequestInfo}/deleteInfo':
delete:
summary: ''
operationId: deleteApiV1RepairshopsTmRequestsInfoTmrequestInfoDeleteInfo
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: tmrequestInfo
description: ''
example: architecto
required: true
schema:
type: string
/api/v1/warehouse/units:
get:
summary: ''
operationId: getApiV1WarehouseUnits
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseUnits
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
required:
- name
security: []
'/api/v1/warehouse/units/{id}':
get:
summary: ''
operationId: getApiV1WarehouseUnitsId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseUnitsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
nullable: true
security: []
delete:
summary: ''
operationId: deleteApiV1WarehouseUnitsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the unit.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/storehouses:
get:
summary: ''
operationId: getApiV1WarehouseStorehouses
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseStorehouses
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: ''
example: architecto
name:
type: string
description: ''
example: architecto
address:
type: string
description: ''
example: architecto
phone:
type: string
description: ''
example: architecto
required:
- code
- name
- address
- phone
security: []
'/api/v1/warehouse/storehouses/{id}':
get:
summary: ''
operationId: getApiV1WarehouseStorehousesId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseStorehousesId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: ''
example: architecto
nullable: true
name:
type: string
description: ''
example: architecto
nullable: true
address:
type: string
description: ''
example: architecto
nullable: true
phone:
type: string
description: ''
example: architecto
nullable: true
security: []
delete:
summary: ''
operationId: deleteApiV1WarehouseStorehousesId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the storehouse.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/products:
get:
summary: ''
operationId: getApiV1WarehouseProducts
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseProducts
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
storehouse_id:
type: string
description: 'The id of an existing record in the storehouses table.'
example: architecto
unit_id:
type: string
description: 'The id of an existing record in the units table.'
example: architecto
code:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: 'n'
name:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: g
technical_description:
type: string
description: 'فیلد value نباید کمتر از 3 کاراکتر باشد. فیلد value نباید بیشتر از 100 کاراکتر باشد.'
example: z
nullable: true
length:
type: number
description: ''
example: 4326.41688
nullable: true
width:
type: number
description: ''
example: 4326.41688
nullable: true
height:
type: number
description: ''
example: 4326.41688
nullable: true
weight:
type: number
description: ''
example: 4326.41688
nullable: true
color:
type: string
description: ''
example: architecto
nullable: true
count:
type: number
description: ''
example: 4326.41688
single_amount:
type: integer
description: ''
example: 16
purchase_date:
type: string
description: 'Must be a valid date in the format Y-m-d H:i:s.'
example: '2026-02-21 07:15:20'
order_threshold:
type: number
description: ''
example: 4326.41688
en_description:
type: string
description: ''
example: architecto
nullable: true
fa_description:
type: string
description: ''
example: architecto
nullable: true
required:
- storehouse_id
- unit_id
- code
- name
- count
- single_amount
- purchase_date
- order_threshold
security: []
'/api/v1/warehouse/products/{id}':
get:
summary: ''
operationId: getApiV1WarehouseProductsId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseProductsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
storehouse_id:
type: string
description: ''
example: null
nullable: true
unit_id:
type: string
description: ''
example: null
nullable: true
code:
type: string
description: ''
example: architecto
nullable: true
name:
type: string
description: ''
example: architecto
nullable: true
technical_description:
type: string
description: ''
example: architecto
nullable: true
length:
type: string
description: ''
example: null
nullable: true
width:
type: string
description: ''
example: null
nullable: true
height:
type: string
description: ''
example: null
nullable: true
weight:
type: string
description: ''
example: null
nullable: true
color:
type: string
description: ''
example: architecto
nullable: true
count:
type: string
description: ''
example: null
nullable: true
single_amount:
type: integer
description: ''
example: 11
nullable: true
purchase_date:
type: string
description: 'Must be a valid date in the format Y-m-d H:i:s.'
example: '2026-02-21 07:15:20'
nullable: true
order_threshold:
type: string
description: ''
example: null
nullable: true
en_description:
type: string
description: ''
example: architecto
nullable: true
fa_description:
type: string
description: ''
example: architecto
nullable: true
security: []
delete:
summary: ''
operationId: deleteApiV1WarehouseProductsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the product.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/requests/importOrExportAll:
put:
summary: ''
operationId: putApiV1WarehouseRequestsImportOrExportAll
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
request_ids:
type: array
description: ''
example:
- 16
items:
type: integer
security: []
/api/v1/warehouse/requests/importOrExportOne:
put:
summary: ''
operationId: putApiV1WarehouseRequestsImportOrExportOne
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
request_id:
type: integer
description: ''
example: 16
number_complited:
type: integer
description: ''
example: 16
required:
- request_id
- number_complited
security: []
/api/v1/warehouse/requests:
get:
summary: ''
operationId: getApiV1WarehouseRequests
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseRequests
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
request_number:
type: integer
description: ''
example: 16
applicant_id:
type: string
description: ''
example: architecto
approver_id:
type: string
description: ''
example: architecto
performer_id:
type: string
description: ''
example: architecto
receiver_id:
type: string
description: ''
example: architecto
product_id:
type: string
description: 'The id of an existing record in the products table.'
example: architecto
count:
type: string
description: ''
example: architecto
type:
type: string
description: ''
example: request
enum:
- request
- buy
number_completed:
type: string
description: ''
example: architecto
work_order_number:
type: string
description: ''
example: architecto
comment:
type: string
description: ''
example: architecto
status:
type: string
description: ''
example: exported
enum:
- pending
- approved
- rejected
- imported
- exported
required:
- request_number
- applicant_id
- approver_id
- performer_id
- receiver_id
- product_id
- count
- type
- number_completed
- work_order_number
- comment
- status
security: []
'/api/v1/warehouse/requests/{id}':
get:
summary: ''
operationId: getApiV1WarehouseRequestsId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseRequestsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
request_number:
type: integer
description: ''
example: 16
nullable: true
applicant_id:
type: string
description: ''
example: null
nullable: true
approver_id:
type: string
description: ''
example: null
nullable: true
performer_id:
type: string
description: ''
example: null
nullable: true
receiver_id:
type: string
description: ''
example: null
nullable: true
product_id:
type: string
description: ''
example: null
nullable: true
count:
type: string
description: ''
example: null
nullable: true
type:
type: string
description: ''
example: buy
enum:
- request
- buy
nullable: true
number_completed:
type: string
description: ''
example: null
nullable: true
work_order_number:
type: string
description: ''
example: null
nullable: true
comment:
type: string
description: ''
example: architecto
nullable: true
status:
type: string
description: ''
example: exported
enum:
- pending
- approved
- rejected
- imported
- exported
nullable: true
security: []
parameters:
-
in: path
name: id
description: 'The ID of the request.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/imports_and_exports:
get:
summary: ''
operationId: getApiV1WarehouseImports_and_exports
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
/api/v1/warehouse/transfer_between_storehouses:
get:
summary: ''
operationId: getApiV1WarehouseTransfer_between_storehouses
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseTransfer_between_storehouses
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
request_number:
type: integer
description: ''
example: 16
applicant_id:
type: string
description: ''
example: architecto
approver_id:
type: string
description: ''
example: architecto
performer_id:
type: string
description: ''
example: architecto
receiver_id:
type: string
description: ''
example: architecto
product_id:
type: string
description: 'The id of an existing record in the products table.'
example: architecto
count:
type: string
description: ''
example: architecto
type:
type: string
description: ''
example: buy
enum:
- request
- buy
number_completed:
type: string
description: ''
example: architecto
work_order_number:
type: string
description: ''
example: architecto
comment:
type: string
description: ''
example: architecto
status:
type: string
description: ''
example: exported
enum:
- pending
- approved
- rejected
- imported
- exported
required:
- request_number
- applicant_id
- approver_id
- performer_id
- receiver_id
- product_id
- count
- type
- number_completed
- work_order_number
- comment
- status
security: []
'/api/v1/warehouse/transfer_between_storehouses/{id}':
get:
summary: ''
operationId: getApiV1WarehouseTransfer_between_storehousesId
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message:
- messages.success
data:
request: []
properties:
message:
type: array
example:
- messages.success
items:
type: string
data:
type: object
properties:
request:
type: array
example: []
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseTransfer_between_storehousesId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
request_number:
type: integer
description: ''
example: 16
nullable: true
applicant_id:
type: string
description: ''
example: null
nullable: true
approver_id:
type: string
description: ''
example: null
nullable: true
performer_id:
type: string
description: ''
example: null
nullable: true
receiver_id:
type: string
description: ''
example: null
nullable: true
product_id:
type: string
description: ''
example: null
nullable: true
count:
type: string
description: ''
example: null
nullable: true
type:
type: string
description: ''
example: buy
enum:
- request
- buy
nullable: true
number_completed:
type: string
description: ''
example: null
nullable: true
work_order_number:
type: string
description: ''
example: null
nullable: true
comment:
type: string
description: ''
example: architecto
nullable: true
status:
type: string
description: ''
example: pending
enum:
- pending
- approved
- rejected
- imported
- exported
nullable: true
security: []
parameters:
-
in: path
name: id
description: 'The ID of the transfer between storehouse.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/storehouse_users:
get:
summary: ''
operationId: getApiV1WarehouseStorehouse_users
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseStorehouse_users
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
user_id:
type: integer
description: ''
example: 16
storehouse_id:
type: integer
description: 'The id of an existing record in the storehouses table.'
example: 16
required:
- user_id
- storehouse_id
security: []
'/api/v1/warehouse/storehouse_users/{id}':
delete:
summary: ''
operationId: deleteApiV1WarehouseStorehouse_usersId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the storehouse user.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/customers:
get:
summary: ''
operationId: getApiV1WarehouseCustomers
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseCustomers
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
family:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: 'n'
nullable: true
type:
type: string
description: ''
example: person
enum:
- person
- company
nullable: true
national_code:
type: string
description: 'فیلد value نباید کمتر از 10 کاراکتر باشد. فیلد value نباید بیشتر از 20 کاراکتر باشد.'
example: gzmiyvdljnikhway
nullable: true
phone:
type: string
description: ''
example: architecto
nullable: true
zip_code:
type: string
description: ''
example: architecto
nullable: true
address:
type: string
description: ''
example: architecto
nullable: true
required:
- name
security: []
'/api/v1/warehouse/customers/{id}':
get:
summary: ''
operationId: getApiV1WarehouseCustomersId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseCustomersId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
nullable: true
family:
type: string
description: 'فیلد value نباید کمتر از 2 کاراکتر باشد. فیلد value نباید بیشتر از 30 کاراکتر باشد.'
example: 'n'
nullable: true
type:
type: string
description: ''
example: person
enum:
- person
- company
nullable: true
national_code:
type: string
description: 'فیلد value نباید کمتر از 10 کاراکتر باشد. فیلد value نباید بیشتر از 20 کاراکتر باشد.'
example: gzmiyvdljnikhway
nullable: true
phone:
type: string
description: ''
example: architecto
nullable: true
zip_code:
type: string
description: ''
example: architecto
nullable: true
address:
type: string
description: ''
example: architecto
nullable: true
security: []
delete:
summary: ''
operationId: deleteApiV1WarehouseCustomersId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: id
description: 'The ID of the customer.'
example: 16
required: true
schema:
type: integer
/api/v1/warehouse/factors:
get:
summary: ''
operationId: getApiV1WarehouseFactors
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
post:
summary: ''
operationId: postApiV1WarehouseFactors
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
customer_id:
type: string
description: 'The id of an existing record in the customers table.'
example: architecto
factor_number:
type: string
description: 'فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: 'n'
nullable: true
items:
type: array
description: 'فیلد value نباید کمتر از 1 آیتم داشته باشد.'
example: null
items:
type: object
properties:
product_id:
type: string
description: 'The id of an existing record in the products table.'
example: architecto
storehouse_id:
type: string
description: 'The id of an existing record in the storehouses table.'
example: null
nullable: true
single_amount:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 39
count:
type: integer
description: 'فیلد value نباید کوچکتر از 1 باشد.'
example: 67
discount:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 12
nullable: true
required:
- product_id
- single_amount
- count
required:
- customer_id
security: []
'/api/v1/warehouse/factors/{id}':
get:
summary: ''
operationId: getApiV1WarehouseFactorsId
description: ''
parameters: []
responses:
500:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Server Error'
properties:
message:
type: string
example: 'Server Error'
tags:
- Endpoints
security: []
put:
summary: ''
operationId: putApiV1WarehouseFactorsId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
customer_id:
type: string
description: 'The id of an existing record in the customers table.'
example: null
factor_number:
type: string
description: 'فیلد value نباید بیشتر از 50 کاراکتر باشد.'
example: b
items:
type: array
description: ''
example: null
items:
type: object
properties:
id:
type: integer
description: 'The id of an existing record in the factor_items table.'
example: 16
product_id:
type: string
description: 'This field is required when items.*.count is present. The id of an existing record in the products table.'
example: null
storehouse_id:
type: string
description: 'The id of an existing record in the storehouses table.'
example: null
nullable: true
single_amount:
type: number
description: 'This field is required when items.*.count is present. فیلد value نباید کوچکتر از 0 باشد.'
example: 39
count:
type: integer
description: 'This field is required when items.*.single_amount is present. فیلد value نباید کوچکتر از 1 باشد.'
example: 67
discount:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 12
nullable: true
_delete:
type: boolean
description: ''
example: false
security: []
parameters:
-
in: path
name: id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer
'/api/v1/warehouse/factors/{factor_id}/items/{itemId}':
delete:
summary: ''
operationId: deleteApiV1WarehouseFactorsFactor_idItemsItemId
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: factor_id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer
-
in: path
name: itemId
description: ''
example: architecto
required: true
schema:
type: string
'/api/v1/warehouse/factors/{factor_id}/items/{itemId}/return':
post:
summary: ''
operationId: postApiV1WarehouseFactorsFactor_idItemsItemIdReturn
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: factor_id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer
-
in: path
name: itemId
description: ''
example: architecto
required: true
schema:
type: string
'/api/v1/warehouse/factors/{factor_id}/confirm':
post:
summary: ''
operationId: postApiV1WarehouseFactorsFactor_idConfirm
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: factor_id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer
'/api/v1/warehouse/factors/{factor_id}/cancel':
post:
summary: ''
operationId: postApiV1WarehouseFactorsFactor_idCancel
description: ''
parameters: []
responses: { }
tags:
- Endpoints
security: []
parameters:
-
in: path
name: factor_id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer
'/api/v1/warehouse/factors/{factor_id}/payments':
post:
summary: ''
operationId: postApiV1WarehouseFactorsFactor_idPayments
description: ''
parameters: []
responses: { }
tags:
- Endpoints
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
amount_paid_by_card:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 27
nullable: true
amount_paid_by_cash:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 39
nullable: true
amount_paid_by_check:
type: number
description: 'فیلد value نباید کوچکتر از 0 باشد.'
example: 84
nullable: true
description:
type: string
description: 'فیلد value نباید بیشتر از 500 کاراکتر باشد.'
example: 'Quos velit et fugiat sunt nihil accusantium harum.'
nullable: true
security: []
parameters:
-
in: path
name: factor_id
description: 'The ID of the factor.'
example: 16
required: true
schema:
type: integer