Animal Management API

Bu API hayvonlarni boshqarish tizimini yaratish uchun ishlatiladi. Quyida mavjud endpointlar va ularning tavsifi keltirilgan.

Bazaviy URL

Animal Types

POST Create Animal Type

  • URL: /animal-type
  • Method: POST
  • Description: Yangi hayvon turini yaratish.

GET Get Animal Type

  • URL: /animal-type/get
  • Method: GET
  • Description: Berilgan ID bo'yicha hayvon turini olish.

GET List Animal Types

  • URL: /animal-type
  • Method: GET
  • Description: Barcha hayvon turlarini ro'yxatini olish.

PUT Update Animal Type

  • URL: /animal-type
  • Method: PUT
  • Description: Hayvon turini yangilash.

DELETE Delete Animal Type

  • URL: /animal-type
  • Method: DELETE
  • Description: Hayvon turini o'chirish.

Animals

POST Create Animal

  • URL: /animals
  • Method: POST
  • Description: Yangi hayvon yaratish.

GET Get Animal

  • URL: /animals/get
  • Method: GET
  • Description: Berilgan ID bo'yicha hayvonni olish.

GET List Animals

  • URL: /animals
  • Method: GET
  • Description: Barcha hayvonlarni ro'yxatini olish.

PUT Update Animal

  • URL: /animals
  • Method: PUT
  • Description: Hayvonni malumotlarini yangilash.

DELETE Delete Animal

  • URL: /animals
  • Method: DELETE
  • Description: Hayvonni o'chirish.

Food Warehouse

POST Create Food Warehouse

  • URL: /food
  • Method: POST
  • Description: Yangi oziq-ovqat ombori yaratish.

GET Get Food Warehouse

  • URL: /food/get
  • Method: GET
  • Description: Berilgan ID bo'yicha oziq-ovqat omborini olish.

GET List Food Warehouse

  • URL: /food
  • Method: GET
  • Description: Barcha oziq-ovqat omborlarini ro'yxatini olish.

PUT Update Food Warehouse

  • URL: /food
  • Method: PUT
  • Description: Oziq-ovqat omborini yangilash.

DELETE Delete Food Warehouse

  • URL: /food
  • Method: DELETE
  • Description: Oziq-ovqat omborini o'chirish.

Medicine Warehouse

POST Create Medicine Warehouse

  • URL: /medicine
  • Method: POST
  • Description: Yangi dori ombori yaratish.

GET Get Medicine Warehouse

  • URL: /medicine/get
  • Method: GET
  • Description: Berilgan ID bo'yicha dori omborini olish.

GET List Medicine Warehouse

  • URL: /medicine
  • Method: GET
  • Description: Barcha dori omborlarini ro'yxatini olish.

PUT Update Medicine Warehouse

  • URL: /medicine
  • Method: PUT
  • Description: Dori omborini yangilash.

DELETE Delete Medicine Warehouse

  • URL: /medicine
  • Method: DELETE
  • Description: Dori omborini o'chirish.

Feeding

POST Create Feeding

  • URL: /feeding
  • Method: POST
  • Description: Bir hayvonni ovqatlantirish.

GET Get Feeding

  • URL: /feeding/get
  • Method: GET
  • Description: Berilgan ID bo'yicha ovqatlantirilganligi haqida malumot olish.

GET List Feeding

  • URL: /feeding
  • Method: GET
  • Description: Barcha ovqatlantirish yozuvlarini ro'yxatini olish.

GET Not Feeding

  • URL: /feeding/not-feeding
  • Method: GET
  • Description: Ovqatlantirilmagan hayvonlarni olish.

GET List Feeding by Animal ID

  • URL: /feeding/animal-id
  • Method: GET
  • Description: Hayvon ID bo'yicha ovqatlantirilganligi haqida malumot olish.

Watering

POST Create Watering

  • URL: /watering
  • Method: POST
  • Description: Bir hayvonni ID boyicha sug'orish.

GET Get Watering

  • URL: /watering/get
  • Method: GET
  • Description: Berilgan ID bo'yicha sug'orishlarni olish.

GET Not Watering

  • URL: /watering/not-watering
  • Method: GET
  • Description: Sug'orilmagan hayvonlarni olish.

Treatment

POST Create Treatment

  • URL: /treatment
  • Method: POST
  • Description: Bir hayvonni IDsi boyicha davolash yaratish.

GET Get Treatment

  • URL: /treatment/get
  • Method: GET
  • Description: Berilgan ID bo'yicha davolash royhatini olish.

GET List Treatment

  • URL: /treatment/
  • Method: GET
  • Description: Barcha davolash ro'yxatini olish.

GET List Treatment by Animal ID

  • URL: /treatment/animal-id
  • Method: GET
  • Description: Hayvon ID bo'yicha davolash royhatini olish.

GET List Treatment by Medicine ID

  • URL: /treatment/medicine-id
  • Method: GET
  • Description: Dori ID bo'yicha davolash malumotlarini olish.

API dan foydalanish bo'yicha qo'shimcha ma'lumotlar

database nomi -> farmish

parol -> 20030505

Project

host = localhost
port = 9050