Git Product home page Git Product logo

bsale_'s Introduction

Bsale_ Backend Doc

La implementación de esta API-REST fue mediante Django-rest y conectada una base de datos MySQL. Heroku Deploy

Endpoints

{
    "list": "https://testapibsale.herokuapp.com/list/?format=api",
    "products": "https://testapibsale.herokuapp.com/products/?format=api",
    "groups": "https://testapibsale.herokuapp.com/groups/?format=api",
    "categories": "https://testapibsale.herokuapp.com/categories/?format=api"
    
}

/list/

{
            "id": 53,
            "name": "Mani Sin Sal",
            "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/manisinsalmp6988.jpg",
            "price": 500.0,
            "discount": 0,
            "category": {
                "id": 5,
                "name": "snack"
            
}
  • Link donde visualizar:

Productos y Categorias

/product/

{
    "count": 3,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 37,
            "name": "COCA COLA ZERO DESECHABLE",
            "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/cocazero9766.jpg",
            "price": 1490.0,
            "discount": 0,
            "category": {
                "id": 4,
                "name": "bebida"
            }
        },
        {
            "id": 57,
            "name": "COCA COLA NORMAL DESECHABLE 1500cc",
            "url_image": null,
            "price": 1500.0,
            "discount": 0,
            "category": {
                "id": 4,
                "name": "bebida"
            }
        },
        {
            "id": 58,
            "name": "COCA COLA LIGHT DESECHABLE",
            "url_image": null,
            "price": 1500.0,
            "discount": 0,
            "category": {
                "id": 4,
                "name": "bebida"
            }

/groups/

{
            "pisco": [
                {
                    "id": 8,
                    "name": "PISCO ALTO DEL CARMEN 35º",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/alto8532.jpg",
                    "price": 7990.0,
                    "discount": 10,
                    "category_id": 2
                },
                {
                    "id": 9,
                    "name": "PISCO ALTO DEL CARMEN 40º ",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/alto408581.jpg",
                    "price": 5990.0,
                    "discount": 0,
                    "category_id": 2
                },
                {
                    "id": 10,
                    "name": "PISCO ARTESANOS 35º ",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/artesanos8818.jpg",
                    "price": 3990.0,
                    "discount": 0,
                    "category_id": 2
                },
                {
                    "id": 11,
                    "name": "PISCO BAUZA 40º ",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/bauza408831.jpg",
                    "price": 4990.0,
                    "discount": 0,
                    "category_id": 2
                },
                {
                    "id": 12,
                    "name": "PISCO CAMPANARIO 35º",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/campanario8845.jpg",
                    "price": 2990.0,
                    "discount": 20,
                    "category_id": 2
                },
                {
                    "id": 13,
                    "name": "PISCO CAMPANARIO 40º",
                    "url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/campanario408881.jpg",
                    "price": 3990.0,
                    "discount": 20,
                    "category_id": 2
                },
            
  • Se filtra por category_id de categoria
  • link donde visualizar:

Category List

/categories/

{
    "id": 2,
    "name": "pisco"
}
  • Se filtra por categoría
  • Link donde visualizar:

Category List

Instalación en LOCAL

Crear y activar entorno virtual

Instalar las dependencias

🖥️ `pip install -r requirements.txt`

Se ejecuta el server

🖥️ `python manage.py runserver`

Ve al navegador y entra en

🖥️ http://127.0.0.1:8000/

bsale_'s People

Contributors

omivalera avatar

Stargazers

 avatar

Watchers

 avatar

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.