CiscoCloud/shipped-demo-cart

Name: shipped-demo-cart

Owner: CiscoCloud

Description: Cart microservice for shopping site.

Created: 2016-04-01 18:03:31.0

Updated: 2018-05-08 09:52:19.0

Pushed: 2016-09-01 20:18:53.0

Homepage: null

Size: 471

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Cart API

Overview

This is a small Microservice example of simple Shopping Cart API endpoint to be used with Shipped.

Getting Started
  1. Simple clone the repo or download the repo and cd into the repo and do go run cart.go to start the server on localhost.
  2. Then run this simple curl command to make sure the service is up and running curl -i http://localhost:8000 or view it on your web browser
cted Result

/1.1 200 OK
: Tue, 19 Jan 2016 15:52:02 GMT
ent-Length: 160
ent-Type: text/html; charset=utf-8

l>
ead>
<title>An example layout</title>
head>
ody>

art is up and running.</p>
ry This command</p>
/p>

body>
ml>

or

Endpoints

|URL | HTTP Verb | Functionality | |:—:|:—:|:—:| |/v1/cart/| POST | Adds Item to cart | |/v1/cart/| DELETE | Deletes Item to cart | |/v1/cart/| POST | List cart items | |/v1/order/| GET | Send Order | |/v1/order/| POST | Send Info |


Requirements
Credits

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.