5. Source Documentation - Gluzberg/cart-client GitHub Wiki
Content
Projects
Interfaces Projects
CartClient.Models
- Defines interfaces of the data models for the client parameters and results:
ICredentialsInof
- Login parameterIAuthorizartionInfo
- Token resultICartInfo
- Cart ID and a collection ofIProductInfo
IProductInfo
- Product ID and and its amount
CartClient.Services
- Defines interfaces of the main services of the client:
ICartService
- the main service of the client library for managing of the cart which is described in 2. API Client Library.ITokenService
- Token issuingIConfigurationService
- Configuration retrieving service, shall be implemented according to application type.
Implementation Projects
CartClient.Models.Imp
- Simple implementation of the data models from CartClient.Models.
CartClient.Services.Imp
- Implementation of the services in CartClient.Services:
CartService
- managing of the cart using theapi/cart
API calls and takes care of the token retrieval usingITokenService
.TokenService
- Token issuing using thePOST api/token
API call.
- The
IConfigurationService
service is not implemented here as it shall be implemented according to application type.
Utilities Projects
CartClient.Request
- Simple library for handling of web requests and the direct deserialization of their responses.
Demo Projects
CartClient.Demo
- Simple console demo application which is described here: 3. Console Demo.
CartClient.Demo.Web
-
Simple console demo application which is described here: 4. Web-Application Demo.
CartClient.Demo.Web.Models
- Defines interfaces of the data models for the demo catalog:
IProduct
- Catalog Products details including name and price.
CartClient.Demo.Web.Services
-
Defines interfaces of the demo catalog service:
-
ICatalogService
- Defines interfaces of the data models for the demo catalog: