Skip to content

Commit 04954d0

Browse files
committed
upload
1 parent af42353 commit 04954d0

17 files changed

Lines changed: 1039 additions & 0 deletions

docs/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Documentation
2+
3+
### General
4+
* Getting Started
5+
- [with GitHub](./getting-started.md)
6+
- [with Docker](./getting-started-docker.md)
7+
* [How to deploy a Cezerin on Ubuntu 16.04 (from Docker)](./how-to-deploy-a-cezerin-on-ubuntu-16-04.md)
8+
* [How to deploy a Cezerin on Ubuntu 18.04.1 (from GitHub)](./how-to-deploy-a-cezerin-on-ubuntu-18-04-1-github.md)
9+
* [Application Structure](./structure.md)
10+
* [Initialize MongoDB](./initialize-mongodb.md)
11+
* [API Reference](./api)
12+
* [API Client](https://github.com/cezerin/client)
13+
* Theme customization
14+
* Localization
15+
* Payment Gateway
16+
* Web Service
17+
18+
### Questions
19+
20+
* How to change language
21+
22+
### Recipes
23+
24+
* How to Integrate Disqus
25+
<!-- * [How to Integrate Disqus](./recipes/how-to-integrate-disqus.md) -->
26+
27+
### NPM Scripts
28+
29+
|`npm run <script>`|Description|
30+
|------------------|-----------|
31+
|`clean:admin`|Delete admin asset bundles.|
32+
|`clean:store`|Delete store asset bundles.|
33+
|`compile:dev`|Compiles the application to disk **and watch** (`~/dist` by default).|
34+
|`compile`|Compiles the application to disk (`~/dist` by default).|
35+
|`webpack:admin:dev`|Assemble admin bundles **and watch**.|
36+
|`webpack:store:dev`|Assemble store bundles **and watch**.|
37+
|`webpack:admin:prod`|Assemble admin bundles.|
38+
|`webpack:store:prod`|Assemble store bundles.|
39+
|`theme:install`|Install theme from /public/<file>.zip|
40+
|`theme:export`|Zip current theme to /public/<file>.zip|
41+
|`theme:copy`|Compile theme and copy assets to /public/|
42+
|`theme:build:dev`|Refresh theme after modification **and watch**.|
43+
|`theme:build:prod`|Refresh theme after modification.|
44+
|`build:dev`|Compile and assemble bundles **and watch**.|
45+
|`build`|Compile and assemble bundles.|
46+
|`start`|Start node server.|

docs/api/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# API Reference
2+
3+
* [Apps](./apps.md)
4+
* [Products](./products.md)
5+
* [Product Categories](./product-categories.md)
6+
* Orders
7+
* Order Statuses
8+
* Customers
9+
* Customer Groups
10+
* Pages
11+
* Shipping Methods
12+
* Payment Methods
13+
* Payment Gateways
14+
* Payment Notifications
15+
* Files
16+
* Security
17+
* Settings
18+
* Site Map
19+
* Theme
20+
* Redirects
21+
* [Webhooks](./webhooks.md)
22+
23+
## Overview
24+
25+
### Authentication
26+
Authenticate your account when using the API by including your Access Token in the request. You can manage your Access Tokens in the Dashboard. Your Access Tokens carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such GitHub, client-side code, and so forth.
27+
28+
Authentication to the API is performed via bearer auth (e.g., for a cross-origin request), use
29+
30+
```
31+
-H "Authorization: Bearer <token>"
32+
```

docs/api/apps.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Apps
2+
3+
Client-side apps on the dashboard.
4+
5+
* [Retrieve settings](#retrieve-settings)
6+
* [Update settings](#update-settings)
7+
8+
## Retrieve settings
9+
10+
```
11+
GET /api/v1/apps/{app_key}/settings
12+
```
13+
14+
#### Response body
15+
16+
```js
17+
{
18+
"_id": "5a2fafb31aaff82bc574b4ad",
19+
"key": "{app_key}",
20+
"property-1": "String data",
21+
"property-2": "String data"
22+
}
23+
```
24+
25+
## Update settings
26+
27+
```
28+
PUT /api/v1/apps/{app_key}/settings
29+
```
30+
31+
#### Request body
32+
33+
```js
34+
{
35+
"property-1": "String data",
36+
"property-2": "String data"
37+
}
38+
```

docs/api/product-categories.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Product Categories
2+
3+
* [List all categories](#list-all-categories)
4+
* [Retrieve a category](#retrieve-a-category)
5+
* [Create a category](#create-a-category)
6+
* [Update a category](#update-a-category)
7+
* [Delete a category](#delete-a-category)
8+
* [Upload a category image](#upload-a-category-image)
9+
* [Delete a category image](#delete-a-category-image)
10+
11+
## List all categories
12+
13+
```
14+
GET /api/v1/product_categories
15+
```
16+
17+
#### Query parameters
18+
19+
| Name | Type | Description |
20+
| --- | --- | --- |
21+
| `fields` | `string` | Comma-separated list of fields. Example `id,parent_id,name` |
22+
| `enabled` | `boolean` | Only enabled categories |
23+
24+
## Retrieve a category
25+
26+
```
27+
GET /api/v1/product_categories/{category_id}
28+
```
29+
30+
## Create a category
31+
32+
```
33+
POST /api/v1/product_categories
34+
```
35+
36+
#### Request body
37+
38+
| Name | Type | Description |
39+
| --- | --- | --- |
40+
| `name` | `string` | - |
41+
| `description` | `string` | - |
42+
| `meta_description` | `string` | - |
43+
| `meta_title` | `string` | - |
44+
| `enabled` | `boolean` | - |
45+
| `sort` | `string` | - |
46+
| `parent_id` | `string` | - |
47+
| `position` | `integer` | - |
48+
| `slug` | `string` | - |
49+
50+
## Update a category
51+
52+
```
53+
PUT /api/v1/product_categories/{category_id}
54+
```
55+
56+
#### Request body
57+
58+
| Name | Type | Description |
59+
| --- | --- | --- |
60+
| `name` | `string` | - |
61+
| `description` | `string` | - |
62+
| `meta_description` | `string` | - |
63+
| `meta_title` | `string` | - |
64+
| `enabled` | `boolean` | - |
65+
| `sort` | `string` | - |
66+
| `parent_id` | `string` | - |
67+
| `position` | `integer` | - |
68+
| `slug` | `string` | - |
69+
70+
## Delete a category
71+
72+
```
73+
DELETE /api/v1/product_categories/{category_id}
74+
```
75+
76+
## Upload a category image
77+
78+
```
79+
POST /api/v1/product_categories/{category_id}/image
80+
```
81+
82+
## Delete a category image
83+
84+
```
85+
DELETE /api/v1/product_categories/{category_id}/image
86+
```

0 commit comments

Comments
 (0)