Bu API hayvonlarni boshqarish tizimini yaratish uchun ishlatiladi. Quyida mavjud endpointlar va ularning tavsifi keltirilgan.
- URL:
/animal-type
- Method:
POST
- Description: Yangi hayvon turini yaratish.
- URL:
/animal-type/get
- Method:
GET
- Description: Berilgan ID bo'yicha hayvon turini olish.
- URL:
/animal-type
- Method:
GET
- Description: Barcha hayvon turlarini ro'yxatini olish.
- URL:
/animal-type
- Method:
PUT
- Description: Hayvon turini yangilash.
- URL:
/animal-type
- Method:
DELETE
- Description: Hayvon turini o'chirish.
- URL:
/animals
- Method:
POST
- Description: Yangi hayvon yaratish.
- URL:
/animals/get
- Method:
GET
- Description: Berilgan ID bo'yicha hayvonni olish.
- URL:
/animals
- Method:
GET
- Description: Barcha hayvonlarni ro'yxatini olish.
- URL:
/animals
- Method:
PUT
- Description: Hayvonni malumotlarini yangilash.
- URL:
/animals
- Method:
DELETE
- Description: Hayvonni o'chirish.
- URL:
/food
- Method:
POST
- Description: Yangi oziq-ovqat ombori yaratish.
- URL:
/food/get
- Method:
GET
- Description: Berilgan ID bo'yicha oziq-ovqat omborini olish.
- URL:
/food
- Method:
GET
- Description: Barcha oziq-ovqat omborlarini ro'yxatini olish.
- URL:
/food
- Method:
PUT
- Description: Oziq-ovqat omborini yangilash.
- URL:
/food
- Method:
DELETE
- Description: Oziq-ovqat omborini o'chirish.
- URL:
/medicine
- Method:
POST
- Description: Yangi dori ombori yaratish.
- URL:
/medicine/get
- Method:
GET
- Description: Berilgan ID bo'yicha dori omborini olish.
- URL:
/medicine
- Method:
GET
- Description: Barcha dori omborlarini ro'yxatini olish.
- URL:
/medicine
- Method:
PUT
- Description: Dori omborini yangilash.
- URL:
/medicine
- Method:
DELETE
- Description: Dori omborini o'chirish.
- URL:
/feeding
- Method:
POST
- Description: Bir hayvonni ovqatlantirish.
- URL:
/feeding/get
- Method:
GET
- Description: Berilgan ID bo'yicha ovqatlantirilganligi haqida malumot olish.
- URL:
/feeding
- Method:
GET
- Description: Barcha ovqatlantirish yozuvlarini ro'yxatini olish.
- URL:
/feeding/not-feeding
- Method:
GET
- Description: Ovqatlantirilmagan hayvonlarni olish.
- URL:
/feeding/animal-id
- Method:
GET
- Description: Hayvon ID bo'yicha ovqatlantirilganligi haqida malumot olish.
- URL:
/watering
- Method:
POST
- Description: Bir hayvonni ID boyicha sug'orish.
- URL:
/watering/get
- Method:
GET
- Description: Berilgan ID bo'yicha sug'orishlarni olish.
- URL:
/watering/not-watering
- Method:
GET
- Description: Sug'orilmagan hayvonlarni olish.
- URL:
/treatment
- Method:
POST
- Description: Bir hayvonni IDsi boyicha davolash yaratish.
- URL:
/treatment/get
- Method:
GET
- Description: Berilgan ID bo'yicha davolash royhatini olish.
- URL:
/treatment/
- Method:
GET
- Description: Barcha davolash ro'yxatini olish.
- URL:
/treatment/animal-id
- Method:
GET
- Description: Hayvon ID bo'yicha davolash royhatini olish.
- URL:
/treatment/medicine-id
- Method:
GET
- Description: Dori ID bo'yicha davolash malumotlarini olish.
database nomi -> farmish
parol -> 20030505
Project
host = localhost
port = 9050