Fix search publication mechanism.

This commit is contained in:
Florian THIERRY
2024-03-15 17:39:04 +01:00
parent 6e2b86153e
commit da1937cb31
18 changed files with 258 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
meta {
name: Create a new category
type: http
seq: 1
}
post {
url: {{url}}/api/categories
body: json
auth: bearer
}
auth:bearer {
token: {{bearerToken}}
}
body:json {
{
"name": "New category with sub-category",
"subCategoryIds": [
"2d19d037-57a1-44a1-9a20-766b4e3628b6"
]
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Delete an existing category
type: http
seq: 3
}
delete {
url: {{url}}/api/categories/{{categoryId}}
body: none
auth: bearer
}
auth:bearer {
token: {{bearerToken}}
}

View File

@@ -0,0 +1,11 @@
meta {
name: Get all categories
type: http
seq: 4
}
get {
url: {{url}}/api/categories
body: none
auth: none
}

View File

@@ -0,0 +1,22 @@
meta {
name: Update an existing category
type: http
seq: 2
}
put {
url: {{url}}/api/categories/{{categoryId}}
body: json
auth: bearer
}
auth:bearer {
token: {{bearerToken}}
}
body:json {
{
"name": "Another name of the category",
"subCategoryIds": []
}
}