Documenting, restructure and expand API
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export class CategoryModel {
|
||||
id: number = -1
|
||||
name: string = "All"
|
||||
icon: string = "mdi-all-inclusive"
|
||||
name: string
|
||||
icon: string
|
||||
createdAt: string = ""
|
||||
updatedAt: string = ""
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
export class ProductModel {
|
||||
id: number = -1
|
||||
brand: string = ""
|
||||
name: string = ""
|
||||
brand: string
|
||||
name: string
|
||||
description: string = ""
|
||||
categoryId: number = 0
|
||||
categoryId: number
|
||||
price: number = 0
|
||||
discount: number = 0
|
||||
rating: number = 1
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"product": {
|
||||
"product": "Produkt",
|
||||
"products": "Produkte",
|
||||
"productName": "Product Name",
|
||||
"productName": "Produkt Name",
|
||||
"brand": "Marke",
|
||||
"productPrice": "Einzelpreis",
|
||||
"category": "Kategorie"
|
||||
|
||||
@@ -1,6 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import axios from 'axios';
|
||||
|
||||
|
||||
axios.get("http://127.0.0.1:3000/")
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Account Page
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-card>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-text-field :label="$t('account.username')" disabled />
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-text-field />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
Reference in New Issue
Block a user