Integrates Spreadshirt API features into your Grails application.
Version
0.4
Installation
Spreadshirt API Plugin is part of the Grails Plugin Repository . To install, just type
grails install-plugin spreadshirt
Dependencies
- Grails Version 1.3.4
- springcache plugin 1.2.1 for caching
- Apache commons httpclient 3.1 (included) for HTTP access
Usage
The plugin provides two Grails Services that you might want to inject into your own Controllers or Services. Please notice that it's not possible to type your service references statically with Grails 1.3.4. Injection just won't happen.
class MyController {
def spreadshirtInventoryService
def spreadshirtShopService
def spreadshirtCommonService
def spreadshirtImageService
// not:
// SpreadshirtAPIService spreadshirtAPIService
// SpreadshirtImageService spreadshirtImageService
}
Feature List
Retrieval of objects
- Appearance
- Article
- Baskets
- BasketItems
- Configuration (Text/Design)
- Country
- Currency
- Design
- FontFamily
- Language
- PrintArea
- PrintType
- Product
- ProductType
- ProductTypeDepartment
- Shop
- Size
- StockState
- User
- View
Create, Delete and Update of objects
- Basket
- BasketItem
- Design (including Design upload)
Image URLs for objects
- Product
- Configuration
- Design
- ProductType
- Compositions
Provided Artifacts
- SpreadshirtAPIService (deprecated)
- SpreadshirtInventoryService
- SpreadshirtShopService
- SpreadshirtCommonService
- SpreadshirtImageService
- Domain Model POGOs