Giter VIP home page Giter VIP logo

checkout-shopping-cart's Introduction

Checkout.Cart

Shopping Cart Rest API

Usage examples

Create a new basket
POST /api/cart/new HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Cache-Control: no-cache
Postman-Token: a643daca-539e-7434-2265-76e962fc2403
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Get full content of basket
GET /api/cart/035c3a6b-cbbb-44c3-9394-2cf374120c32 HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Cache-Control: no-cache
Postman-Token: 9a5c9d2a-1bb8-49d5-c994-432973402c7b
Add item to basket
POST /api/cart/035c3a6b-cbbb-44c3-9394-2cf374120c32 HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: b6c65cf8-7a8b-ee5c-9fea-cad1680c2efc

{ Name: "Sprite", Quantity: 3}
Update basket item
PUT /api/cart/035c3a6b-cbbb-44c3-9394-2cf374120c32 HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: bd0da7cf-ac09-fdd3-12fb-ec6ea3109e2c

{ Name: "Sprite", Quantity: 1}
Get single basket item
GET /api/cart/035c3a6b-cbbb-44c3-9394-2cf374120c32/Sprite HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 9808c713-6a07-22d6-ef94-290a5f526eba
Delete basket item
DELETE /api/cart/035c3a6b-cbbb-44c3-9394-2cf374120c32/Sprite HTTP/1.1
Host: localhost:5000
Authorization: sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 900c2e5d-5a4f-e6fc-0201-dac1ae3e6610

checkout-shopping-cart's People

Contributors

gromag avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.