Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shivam-880/globalmart-java-spring-resteasy

This repository demonstrates restful webservices using Java, Spring and Resteasy.
https://github.com/shivam-880/globalmart-java-spring-resteasy

Last synced: 7 days ago
JSON representation

This repository demonstrates restful webservices using Java, Spring and Resteasy.

Awesome Lists containing this project

README

        

# globalmart-java-spring-resteasy
This repository demonstrates restful webservices using Java, Spring and Resteasy in it's simplest form.

# Build
```
$ cd globalmart-product-common-entity
$ mvn install

$ cd globalmart-product-catalog-service
$ mvn install
```
# Deploy
Deploy WARs on JBoss or Tomcat.

# Restful
```
GET api/products/1
{
"id": 1,
"name": "A",
"price": 1200,
"type": "alpha"
}

POST api/products
{"product":{"id":3,"name":"D","price":1200,"type":"gamma"}}
```