added bruno files and corrected found issues
This commit is contained in:
parent
7599080106
commit
c211a8a199
31 changed files with 292 additions and 14 deletions
15
bruno/Common Cents/Categories/LOC DELETE Category.bru
Normal file
15
bruno/Common Cents/Categories/LOC DELETE Category.bru
Normal 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
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Categories/LOC GET Categories.bru
Normal file
11
bruno/Common Cents/Categories/LOC GET Categories.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: LOC GET Categories
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{localBaseUrl}}/{{resourcePath}}
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
15
bruno/Common Cents/Categories/LOC GET Category By ID.bru
Normal file
15
bruno/Common Cents/Categories/LOC GET Category By ID.bru
Normal 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
|
||||||
|
}
|
||||||
17
bruno/Common Cents/Categories/LOC POST Category.bru
Normal file
17
bruno/Common Cents/Categories/LOC POST Category.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
bruno/Common Cents/Categories/LOC PUT Category.bru
Normal file
18
bruno/Common Cents/Categories/LOC PUT Category.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Categories/folder.bru
Normal file
11
bruno/Common Cents/Categories/folder.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: Categories
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:pre-request {
|
||||||
|
resourcePath: categories
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
meta {
|
meta {
|
||||||
name: Expenses
|
name: Expenses
|
||||||
|
seq: 2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ meta {
|
||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{localBaseUrl}}/merchants
|
url: {{localBaseUrl}}/{{resourcePath}}
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
meta {
|
meta {
|
||||||
name: Merchants
|
name: Merchants
|
||||||
seq: 3
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auth {
|
auth {
|
||||||
mode: inherit
|
mode: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vars:pre-request {
|
||||||
|
resourcePath: merchants
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Sub-categories/LOC GET Sub-categories.bru
Normal file
11
bruno/Common Cents/Sub-categories/LOC GET Sub-categories.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: LOC GET Sub-categories
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{localBaseUrl}}/{{resourcePath}}
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
17
bruno/Common Cents/Sub-categories/LOC POST Sub-category.bru
Normal file
17
bruno/Common Cents/Sub-categories/LOC POST Sub-category.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
bruno/Common Cents/Sub-categories/LOC PUT Sub-category.bru
Normal file
18
bruno/Common Cents/Sub-categories/LOC PUT Sub-category.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Sub-categories/folder.bru
Normal file
11
bruno/Common Cents/Sub-categories/folder.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: Sub-categories
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:pre-request {
|
||||||
|
resourcePath: sub-categories
|
||||||
|
}
|
||||||
15
bruno/Common Cents/Tags/LOC DELETE Tag.bru
Normal file
15
bruno/Common Cents/Tags/LOC DELETE Tag.bru
Normal 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
|
||||||
|
}
|
||||||
15
bruno/Common Cents/Tags/LOC GET Tag By ID.bru
Normal file
15
bruno/Common Cents/Tags/LOC GET Tag By ID.bru
Normal 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
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Tags/LOC GET Tags.bru
Normal file
11
bruno/Common Cents/Tags/LOC GET Tags.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: LOC GET Tags
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{localBaseUrl}}/{{resourcePath}}
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
17
bruno/Common Cents/Tags/LOC POST Tag.bru
Normal file
17
bruno/Common Cents/Tags/LOC POST Tag.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
bruno/Common Cents/Tags/LOC PUT Tag.bru
Normal file
18
bruno/Common Cents/Tags/LOC PUT Tag.bru
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
11
bruno/Common Cents/Tags/folder.bru
Normal file
11
bruno/Common Cents/Tags/folder.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
meta {
|
||||||
|
name: Tags
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:pre-request {
|
||||||
|
resourcePath: tags
|
||||||
|
}
|
||||||
BIN
common-cents.db
BIN
common-cents.db
Binary file not shown.
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -1 +1,10 @@
|
||||||
export class Category {}
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
|
|
||||||
|
@Entity()
|
||||||
|
export class Category {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue