Giter Club home page Giter Club logo

f-zoobro's Introduction

GB f-ZooBro

Project setup

npm install

Compiles and hot-reloads for development

npm run serve | dev

Compiles and minifies for production

npm run build

f-zoobro's People

Contributors

dabronskikh avatar dependabot[bot] avatar ilyamalyukov avatar mnick91311 avatar rinatgaynullin avatar widetrace avatar yuliaanikeeva avatar

Watchers

 avatar  avatar

f-zoobro's Issues

Frontend. Inputs autocomplete

Следует проверить все input'ы на возможность добавления к ним атрибута autocomplete.

Fronend. Онбординг

После добавления информации под точкой прогресс-бара, у нас осталась информация и над ним, правда блок этот удалили в финальной версии, оставив только краткую информацию под баром.

Backend. При заказе добавляется питомец с null полями

При заказе добавляется питомец с null полями

  • birthday_date
  • birthday_years
  • food_exceptions

POST /v1/order/create

ЗапросОтвет
{
	"price_id": "1",
	"pet_name": "Dog",
	"gender": "m",
	"size": "1",
	"breed": "Dog",
	"birthday_date": "2000-12-01",
	"birthday_years": "0-1",
	"food_exceptions": "Fish",
	"user_name": "Ivan",
	"email": "[email protected]",
	"phone": 9153134300,
	"address": "Moscow",
	"date_delivery": "2020-01-01",
	"time_delivery": "21:45"
}
{
  "status": 1,
  "data": {
    "id": 161
  }
}

GET /v1/orders

Ответ
{
  "status": 1,
  "data": {
    "orders": [
      {
        "id": 161,
        "pet_id": 130,
        ...
      }
    ]
  }
}

GET /v1/pets

Ответ
{
  "status": 1,
  "data": {
    "pets": [
      {
        "id": 130,
        "name": "Dog",
        "gender": "m",
        "size": "1",
        "breed": "Dog",
        "birthday_date": null,
        "birthday_years": null,
        "food_exceptions": null
      }
    ]
  }
}

Backend. Не работает обновление данных питомца

Не обновляются поля у питомца

  • size
  • birthday_date

POST /v1/pets/update

ЗапросОтвет
{
	"id": 139,
	"name": "Белка",
	"gender": "w",
	"size": "2",
	"breed": "Метис",
	"birthday_date": "2008-12-01",
	"birthday_years": "0-1",
	"food_exceptions": "Курица"
}
{
  "status": 1,
  "data": true
}

GET /v1/pets

Было Стало
{
  "status": 1,
  "data": {
    "pets": [
      {
        "id": 139,
        "name": "Пушок",
        "gender": "m",
        "size": "1",
        "breed": "Дворняга",
        "birthday_date": "2000-12-01",
        "birthday_years": "1-5",
        "food_exceptions": "Рыба"
      }
    ]
  }
}
{
  "status": 1,
  "data": {
    "pets": [
      {
        "id": 139,
        "name": "Белка",
        "gender": "w",
        "size": "1",
        "breed": "Метис",
        "birthday_date": "2000-12-01",
        "birthday_years": "0-1",
        "food_exceptions": "Курица"
      }
    ]
  }
}

Backend. При заказе добавляется пользователь с не правильными данными

При заказе добавляется пользователь с не правильными данными в полях

  • phone
  • address

POST /v1/order/create

ЗапросОтвет
{
	"price_id": "1",
	"pet_name": "Dog",
	"gender": "m",
	"size": "1",
	"breed": "Dog",
	"birthday_date": "2000-12-01",
	"birthday_years": "0-1",
	"food_exceptions": "Fish",
	"user_name": "Ivan",
	"email": "[email protected]",
	"phone": 9153134300,
	"address": "Moscow",
	"date_delivery": "2020-01-01",
	"time_delivery": "21:45"
}
{
  "status": 1,
  "data": {
    "id": 161
  }
}

GET /v1/user

Ответ
{
  "status": 1,
  "data": {
    "email": "[email protected]",
    "name": "Ivan",
    "phone": 2147483647,
    "address": null,
    "is_admin": 0
  }
}

Backend. Питомец добавляется без даты рождения (birthday_date == null)

POST /v1/pets

Запрос Ответ
{
	"name": "Пушок",
	"gender": "m",
	"size": "2",
	"breed": "Боксер",
	"birthday_date": "2020-02-02",
	"birthday_years": "0-1",
	"food_exceptions": "Курица"
}
{
  "status": 1,
  "data": {
    "id": 160
  }
}

GET /v1/pets

Ответ
{
  "status": 1,
  "data": {
    "pets": [
      ...
      {
        "id": 160,
        "name": "Пушок",
        "gender": "m",
        "size": "2",
        "breed": "Боксер",
        "birthday_date": null,
        "birthday_years": "0-1",
        "food_exceptions": "Курица"
      }
    ]
  }
}

Backend. Неправильные данные в заказе

Заказ сохраняется с не правильными данными в поле

  • phone

POST /v1/orders/create

ЗапросОтвет
{
	"price_id": "1",
	"pet_name": "Dog",
	"gender": "m",
	"size": "1",
	"breed": "Dog",
	"birthday_date": "2000-12-01",
	"birthday_years": "0-1",
	"food_exceptions": "Fish",
	"user_name": "Ivan",
	"email": "[email protected]",
	"phone": 9153134300,
	"address": "Moscow",
	"date_delivery": "2020-01-01",
	"time_delivery": "21:45"
}
{
  "status": 1,
  "data": {
    "id": 161
  }
}

GET /v1/orders

Ответ
{
  "status": 1,
  "data": {
    "orders": [
      {
        "id": 161,
        "phone": 2147483647,
        ...
      }
    ]
  }
}

Backend. Не работает обновление данных пользователя

Не обновляются поля phone и address

POST /v1/user/update

Запрос Ответ
{
    "email": "[email protected]",
    "name": "Vova",
    "phone": 9123000123,
    "address": "London"
}
{
  "status": 1,
  "data": true
}

GET /v1/user

Было Стало
{
  "status": 1,
  "data": {
    "email": "[email protected]",
    "name": "Ivan",
    "phone": 2147483647,
    "address": null,
    "is_admin": 0
  }
}
{
  "status": 1,
  "data": {
    "email": "[email protected]",
    "name": "Vova",
    "phone": 2147483647,
    "address": null,
    "is_admin": 0
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.