Git Product home page Git Product logo

golang_e-commerce_api's Introduction

E-Commerce API

i make this api using golang with gin

How to use this

Please create database go-ecommerce, or if u not it will error. For table, it will auto add(auto migrate) automatic.

And after that, download this repo, and copy this text, and run in terminal. and its done.

go run main.go

Implementation in android

https://github.com/achmadrizkin/kotlin_e-commerce_MVVM

API

please change the localhost:3000 to 10.0.2.2:3000 if u want to use emulator

API Response Products

All data have same response, the difference is just All Products have GET DATA BY UserEmail, and Category. i make this so u can use it more easy. but, if use use GET DATA BY ID, it just return data by what u are search.

{
    "data": [
        {
            "id": 10,
            "name_product": "Hoodie Overpriced",
            "image_url": "https://s1.bukalapak.com/img/19067587152/large/data.jpeg",
            "description": "this Hoodie was ...",
            "price": 23000,
            "name_user": "rizki",
            "email_user": "[email protected]"
        },
        {
            "id": 11,
            "name_products": "Sherlock Holmes",
            "image_url": "https://s1.bukalapak.com/img/19067587152/large/data.jpeg",
            "description": "Best book in the world",
            "price": 12000,
            "name_user": "kevin",
            "email_user": "[email protected]"
        }
    ]
}   

API POST

this is how to post. Just add category if u use All Products

{
    "name_product": "Hoodie Overpriced",
    "image_url": "https://s1.bukalapak.com/img/19067587152/large/data.jpeg",
    "description": "this Hoodie was ...",
    "price": 23000,
    "name_user": "rizki",
    "email_user": "[email protected]"
}

golang_e-commerce_api's People

Contributors

achmadrizkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

golang_e-commerce_api's Issues

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.