Skip to content

Commit ce1adb4

Browse files
Merge pull request #312 from webreinvent/feature/updated-vaahstore-docs
Feature->Develop | Updated: VaahStore Docs
2 parents 7ea2034 + 0cd0d41 commit ce1adb4

File tree

19 files changed

+4016
-661
lines changed

19 files changed

+4016
-661
lines changed

content/8.vaahstore/1.index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22
toc: true
33
title: VaahStore
44
---
5+
<p align="center">
6+
<img src="/images/vaahcms-two/banner/banner.png">
7+
</p>
8+
## Quick Start
59

10+
Install VaahStore using the CLI:
611

12+
```bash
13+
npx vaah store:install
14+
```
15+
This command sets up the project with all required configurations, database migrations, and sample data.
16+
17+
---
718
## Introduction
819

920
VaahStore is an E-commerce module for `VaahCMS` build on top of latest opensource technologies such as [Laravel](https://laravel.com/docs/10.x), [PrimeVue](https://primevue.org/) and [Vue.js](https://vuejs.org/guide/introduction.html).

content/8.vaahstore/3.basics/1.getting-started.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,22 @@ Support
1010
- VaahStore is made on top of latest opensource technologies `Laravel` ,`Vue.js`, `PrimeVue` and `VaahCMS`.
1111
::
1212

13+
## Quick Start
1314

15+
Install VaahStore using the [VaahCLI](https://vaah.dev/cli):
16+
17+
```bash
18+
npx vaah store:install
19+
```
20+
This command sets up the project with all required configurations, database migrations, and sample data.
21+
22+
---
1423

1524
## How to run the VaahStore
1625

17-
### Step 1. Install VaahStore
26+
### Step 1. Activate VaahStore Module
1827

19-
To install Vaahstore go into `VaahCMS > Extends > Modules` click on `install` button on top right corner.
28+
To Activate Vaahstore go into `VaahCMS > Extends > Modules` click on `install` button on top right corner.
2029

2130
Then a `Install Modules` sidebar will open, inside that search `Store` and click on `Install` button.
2231

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
post:
2+
summary: Refresh API Token
3+
description: >
4+
Refreshes the user's API token.
5+
- If the provided token is still valid, the same token is returned.
6+
- If expired, a new token is generated and returned.
7+
- Requires a valid Bearer token in the `Authorization` header.
8+
operationId: refreshToken
9+
security:
10+
- bearerAuth: [ ]
11+
tags:
12+
- Authentication
13+
requestBody:
14+
required: false
15+
content:
16+
application/json:
17+
schema:
18+
type: object
19+
properties:
20+
remember_me:
21+
type: boolean
22+
description: >
23+
Whether to extend the token validity for 7 days.
24+
Default is 2 days if not provided or false.
25+
example: true
26+
responses:
27+
"200":
28+
description: Token refreshed successfully or still valid
29+
content:
30+
application/json:
31+
schema:
32+
type: object
33+
properties:
34+
success:
35+
type: boolean
36+
example: true
37+
messages:
38+
type: array
39+
items:
40+
type: string
41+
example: [ "Token refreshed successfully." ]
42+
data:
43+
type: object
44+
properties:
45+
api_token:
46+
type: string
47+
example: "1|XyZAbc123NewTokenValue"
48+
expires_at:
49+
type: string
50+
format: date-time
51+
example: "2025-09-03 15:30:00"
52+
"401":
53+
description: Invalid or expired token or session exceed from the limit
54+
content:
55+
application/json:
56+
schema:
57+
type: object
58+
properties:
59+
success:
60+
type: boolean
61+
example: false
62+
errors:
63+
type: array
64+
items:
65+
type: string
66+
example: [ "Your session has expired because you logged in on another device." ]
67+
"400":
68+
description: No token provided
69+
content:
70+
application/json:
71+
schema:
72+
type: object
73+
properties:
74+
success:
75+
type: boolean
76+
example: false
77+
errors:
78+
type: array
79+
items:
80+
type: string
81+
example: [ "No token provided." ]

public/vaahstore-api/brands/update.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
get:
22
tags:
33
- Brands
4-
summary: Get record by brand ID
5-
description: Retrieve a brand by its unique identifier.
4+
summary: Get record by brand identifies
5+
description: |
6+
Retrieve a brand by its unique identifier (**id** or **slug**).
7+
8+
- Use **slug** when fetching the brand for SEO purposes (typically for web pages).
9+
- Use **id** in all other cases where a direct reference to the brand is sufficient.
610
operationId: getBrandById
711
parameters:
812
- '$ref': '../vaahstore.yaml#/components/parameters/id'

0 commit comments

Comments
 (0)