added bruno files and corrected found issues

This commit is contained in:
Joe Arndt 2026-02-08 17:55:41 -06:00
parent 7599080106
commit c211a8a199
31 changed files with 292 additions and 14 deletions

View file

@ -0,0 +1,15 @@
meta {
name: LOC DELETE Category
type: http
seq: 5
}
delete {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: cbf30070-9ff7-419f-a567-f7d145be445b
}

View file

@ -0,0 +1,11 @@
meta {
name: LOC GET Categories
type: http
seq: 1
}
get {
url: {{localBaseUrl}}/{{resourcePath}}
body: none
auth: inherit
}

View file

@ -0,0 +1,15 @@
meta {
name: LOC GET Category By ID
type: http
seq: 2
}
get {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: 1d6d2842-b271-489b-bd93-e3ceaee5a139
}

View file

@ -0,0 +1,17 @@
meta {
name: LOC POST Category
type: http
seq: 3
}
post {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"name": "Category Three"
}
}

View file

@ -0,0 +1,18 @@
meta {
name: LOC PUT Category
type: http
seq: 4
}
put {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"id": "1d6d2842-b271-489b-bd93-e3ceaee5a139",
"name": "Merchant One"
}
}

View file

@ -0,0 +1,11 @@
meta {
name: Categories
}
auth {
mode: inherit
}
vars:pre-request {
resourcePath: categories
}

View file

@ -1,3 +1,4 @@
meta { meta {
name: Expenses name: Expenses
seq: 2
} }

View file

@ -5,7 +5,11 @@ meta {
} }
delete { delete {
url: {{localBaseUrl}}/merchants/cbf30070-9ff7-419f-a567-f7d145be445b url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none body: none
auth: inherit auth: inherit
} }
vars:pre-request {
resourceId: cbf30070-9ff7-419f-a567-f7d145be445b
}

View file

@ -5,11 +5,11 @@ meta {
} }
get { get {
url: {{localBaseUrl}}/merchants/{{merchantId}} url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none body: none
auth: inherit auth: inherit
} }
vars:pre-request { vars:pre-request {
merchantId: 1d6d2842-b271-489b-bd93-e3ceaee5a139 resourceId: 1d6d2842-b271-489b-bd93-e3ceaee5a139
} }

View file

@ -5,7 +5,7 @@ meta {
} }
get { get {
url: {{localBaseUrl}}/merchants url: {{localBaseUrl}}/{{resourcePath}}
body: none body: none
auth: inherit auth: inherit
} }

View file

@ -5,13 +5,13 @@ meta {
} }
post { post {
url: {{localBaseUrl}}/merchants url: {{localBaseUrl}}/{{resourcePath}}
body: json body: json
auth: inherit auth: inherit
} }
body:json { body:json {
{ {
"name": "Walmart" "name": "Merchant Three"
} }
} }

View file

@ -5,7 +5,7 @@ meta {
} }
put { put {
url: {{localBaseUrl}}/merchants url: {{localBaseUrl}}/{{resourcePath}}
body: json body: json
auth: inherit auth: inherit
} }
@ -13,6 +13,6 @@ put {
body:json { body:json {
{ {
"id": "1d6d2842-b271-489b-bd93-e3ceaee5a139", "id": "1d6d2842-b271-489b-bd93-e3ceaee5a139",
"name": "Walmart" "name": "Merchant One"
} }
} }

View file

@ -1,8 +1,11 @@
meta { meta {
name: Merchants name: Merchants
seq: 3
} }
auth { auth {
mode: inherit mode: inherit
} }
vars:pre-request {
resourcePath: merchants
}

View file

@ -0,0 +1,15 @@
meta {
name: LOC DELETE Sub-category
type: http
seq: 5
}
delete {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: cbf30070-9ff7-419f-a567-f7d145be445b
}

View file

@ -0,0 +1,11 @@
meta {
name: LOC GET Sub-categories
type: http
seq: 1
}
get {
url: {{localBaseUrl}}/{{resourcePath}}
body: none
auth: inherit
}

View file

@ -0,0 +1,15 @@
meta {
name: LOC GET Sub-category By ID
type: http
seq: 2
}
get {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: 1d6d2842-b271-489b-bd93-e3ceaee5a139
}

View file

@ -0,0 +1,17 @@
meta {
name: LOC POST Sub-category
type: http
seq: 3
}
post {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"name": "Sub-category Three"
}
}

View file

@ -0,0 +1,18 @@
meta {
name: LOC PUT Sub-category
type: http
seq: 4
}
put {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"id": "1d6d2842-b271-489b-bd93-e3ceaee5a139",
"name": "Merchant One"
}
}

View file

@ -0,0 +1,11 @@
meta {
name: Sub-categories
}
auth {
mode: inherit
}
vars:pre-request {
resourcePath: sub-categories
}

View file

@ -0,0 +1,15 @@
meta {
name: LOC DELETE Tag
type: http
seq: 5
}
delete {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: cbf30070-9ff7-419f-a567-f7d145be445b
}

View file

@ -0,0 +1,15 @@
meta {
name: LOC GET Tag By ID
type: http
seq: 2
}
get {
url: {{localBaseUrl}}/{{resourcePath}}/{{resourceId}}
body: none
auth: inherit
}
vars:pre-request {
resourceId: 1d6d2842-b271-489b-bd93-e3ceaee5a139
}

View file

@ -0,0 +1,11 @@
meta {
name: LOC GET Tags
type: http
seq: 1
}
get {
url: {{localBaseUrl}}/{{resourcePath}}
body: none
auth: inherit
}

View file

@ -0,0 +1,17 @@
meta {
name: LOC POST Tag
type: http
seq: 3
}
post {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"name": "Tag Three"
}
}

View file

@ -0,0 +1,18 @@
meta {
name: LOC PUT Tag
type: http
seq: 4
}
put {
url: {{localBaseUrl}}/{{resourcePath}}
body: json
auth: inherit
}
body:json {
{
"id": "1d6d2842-b271-489b-bd93-e3ceaee5a139",
"name": "Merchant One"
}
}

View file

@ -0,0 +1,11 @@
meta {
name: Tags
}
auth {
mode: inherit
}
vars:pre-request {
resourcePath: tags
}

Binary file not shown.

View file

@ -50,7 +50,7 @@ export class CategoriesController {
} }
try { try {
return this.categoriesService.create(category); return await this.categoriesService.create(category);
} }
catch (error) { catch (error) {
throw new InternalServerErrorException(error); throw new InternalServerErrorException(error);

View file

@ -1 +1,10 @@
export class Category {} import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Category {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
name: string;
}

View file

@ -2,7 +2,7 @@ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity() @Entity()
export class SubCategory { export class SubCategory {
@PrimaryGeneratedColumn() @PrimaryGeneratedColumn('uuid')
id: string; id: string;
@Column() @Column()

View file

@ -50,7 +50,7 @@ export class SubCategoriesController {
} }
try { try {
return this.subCategoriesService.create(subCategory); return await this.subCategoriesService.create(subCategory);
} }
catch (error) { catch (error) {
throw new InternalServerErrorException(error); throw new InternalServerErrorException(error);

View file

@ -50,7 +50,7 @@ export class TagsController {
} }
try { try {
return this.tagsService.create(tag); return await this.tagsService.create(tag);
} }
catch (error) { catch (error) {
throw new InternalServerErrorException(error); throw new InternalServerErrorException(error);