Documenting, restructure and expand API

This commit is contained in:
2024-09-13 12:07:33 +02:00
parent 39ce77ea63
commit 2847bd940f
13 changed files with 877 additions and 74 deletions

View File

@@ -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 = ""
}

View File

@@ -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

View File

@@ -22,7 +22,7 @@
"product": {
"product": "Produkt",
"products": "Produkte",
"productName": "Product Name",
"productName": "Produkt Name",
"brand": "Marke",
"productPrice": "Einzelpreis",
"category": "Kategorie"

View File

@@ -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>