basePath: /api/v1 definitions: domain.CreateEmployeeRequest: properties: city: maxLength: 100 type: string full_name: maxLength: 255 type: string phone: type: string required: - city - full_name - phone type: object domain.Employee: properties: city: type: string full_name: type: string id: type: integer phone: type: string type: object domain.UpdateEmployeeRequest: properties: city: maxLength: 100 type: string full_name: maxLength: 255 type: string phone: type: string type: object host: localhost info: contact: {} description: This is a sample server for managing employees. title: AiPlus Employee API version: "1.0" paths: /api/v1/employees: get: description: Get a list of all employees produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/domain.Employee' type: array "500": description: Internal Server Error schema: additionalProperties: type: string type: object summary: Get all employees tags: - employees post: consumes: - application/json description: Add a new employee to the database parameters: - description: Employee to create in: body name: employee required: true schema: $ref: '#/definitions/domain.CreateEmployeeRequest' produces: - application/json responses: "201": description: Created schema: additionalProperties: format: int64 type: integer type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object summary: Create a new employee tags: - employees /api/v1/employees/{id}: delete: description: Delete an employee by their ID parameters: - description: Employee ID in: path name: id required: true type: integer produces: - application/json responses: "204": description: No Content "400": description: Bad Request schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object summary: Delete an employee tags: - employees get: description: Get a single employee by their ID parameters: - description: Employee ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/domain.Employee' "400": description: Bad Request schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object summary: Get an employee by ID tags: - employees put: consumes: - application/json description: Update an existing employee's data parameters: - description: Employee ID in: path name: id required: true type: integer - description: Employee data to update in: body name: employee required: true schema: $ref: '#/definitions/domain.UpdateEmployeeRequest' produces: - application/json responses: "200": description: OK schema: additionalProperties: type: string type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "404": description: Not Found schema: additionalProperties: type: string type: object "500": description: Internal Server Error schema: additionalProperties: type: string type: object summary: Update an employee tags: - employees swagger: "2.0"