Add API setup for Bruno
This commit is contained in:
parent
994b7e47a4
commit
22987e35f3
405 changed files with 5282 additions and 0 deletions
2
dev/setup/bruno/README.md
Normal file
2
dev/setup/bruno/README.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
= To install Bruno on Ubuntu =
|
||||
sudo snap install bruno
|
||||
20
dev/setup/bruno/accountancy/Accountancy export data --.bru
Normal file
20
dev/setup/bruno/accountancy/Accountancy export data --.bru
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
meta {
|
||||
name: Accountancy export data --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/accountancy/exportdata
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~date_min:
|
||||
~date_max:
|
||||
~format:
|
||||
~lettering:
|
||||
~alreadyexport:
|
||||
~notnotifiedasexport:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create Agenda Event object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/agendaevents
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/agendaevents/Delete Agenda Event --.bru
Normal file
11
dev/setup/bruno/agendaevents/Delete Agenda Event --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete Agenda Event --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/agendaevents/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of a Agenda Events object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/agendaevents/1
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
21
dev/setup/bruno/agendaevents/List Agenda Events --.bru
Normal file
21
dev/setup/bruno/agendaevents/List Agenda Events --.bru
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List Agenda Events --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/agendaevents
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~user_ids:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update Agenda Event general fields --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/agendaevents/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Add a line to an account --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Add a line to an account --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a line to an account --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a link to an account line --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines/{line_id}/links
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Create account object --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Create account object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create account object --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/bankaccounts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create an internal wire transfer between two bank accounts --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/bankaccounts/transfer
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Delete account --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Delete account --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete account --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/bankaccounts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Delete an account line --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Delete an account line --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete an account line --
|
||||
type: http
|
||||
seq: 12
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines/{line_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Get account by ID- --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Get account by ID- --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get account by ID- --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/bankaccounts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: Get the list of accounts- --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/bankaccounts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~category:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: Get the list of lines of the account- --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sqlfilters:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get the list of links for a line of the account- --
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines/{line_id}/links
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Update account --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Update account --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update account --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/bankaccounts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/bankaccounts/Update an account line --.bru
Normal file
11
dev/setup/bruno/bankaccounts/Update an account line --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update an account line --
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/bankaccounts/{id}/lines/{line_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Add a line to given BOM --.bru
Normal file
11
dev/setup/bruno/boms/Add a line to given BOM --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a line to given BOM --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/boms/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Create bom object --.bru
Normal file
11
dev/setup/bruno/boms/Create bom object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create bom object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/boms
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Delete a line to given BOM --.bru
Normal file
11
dev/setup/bruno/boms/Delete a line to given BOM --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete a line to given BOM --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/boms/{id}/lines/{lineid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Delete bom --.bru
Normal file
11
dev/setup/bruno/boms/Delete bom --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete bom --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/boms/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Get lines of an BOM --.bru
Normal file
11
dev/setup/bruno/boms/Get lines of an BOM --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get lines of an BOM --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/boms/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Get properties of a bom object --.bru
Normal file
11
dev/setup/bruno/boms/Get properties of a bom object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of a bom object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/boms/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
20
dev/setup/bruno/boms/List boms --.bru
Normal file
20
dev/setup/bruno/boms/List boms --.bru
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
meta {
|
||||
name: List boms --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/boms
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
11
dev/setup/bruno/boms/Update a line to given BOM --.bru
Normal file
11
dev/setup/bruno/boms/Update a line to given BOM --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update a line to given BOM --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/boms/{id}/lines/{lineid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/boms/Update bom --.bru
Normal file
11
dev/setup/bruno/boms/Update bom --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update bom --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/boms/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
9
dev/setup/bruno/bruno.json
Normal file
9
dev/setup/bruno/bruno.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"version": "1",
|
||||
"name": "Dolibarr API Explorer",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
11
dev/setup/bruno/categories/Create category object --.bru
Normal file
11
dev/setup/bruno/categories/Create category object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create category object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/categories
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/categories/Delete category --.bru
Normal file
11
dev/setup/bruno/categories/Delete category --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete category --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/categories/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: Get properties of a category object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/categories/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~include_childs:
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
meta {
|
||||
name: Get the list of objects in a category- --
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/categories/{id}/objects
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
type:
|
||||
~onlyids:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Link an object to a category by id --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/categories/{id}/objects/{type}/{object_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Link an object to a category by ref --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/categories/{id}/objects/{type}/ref/{object_ref}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
21
dev/setup/bruno/categories/List categories --.bru
Normal file
21
dev/setup/bruno/categories/List categories --.bru
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List categories --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/categories
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~type:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
meta {
|
||||
name: List categories of an object --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/categories/object/{type}/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Unlink an object from a category by id --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/categories/{id}/objects/{type}/{object_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Unlink an object from a category by ref --
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/categories/{id}/objects/{type}/ref/{object_ref}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/categories/Update category --.bru
Normal file
11
dev/setup/bruno/categories/Update category --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update category --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/categories/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
7
dev/setup/bruno/collection.bru
Normal file
7
dev/setup/bruno/collection.bru
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
headers {
|
||||
DOLAPIKEY: {{DOLAPIKEY}}
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: bearer
|
||||
}
|
||||
11
dev/setup/bruno/contacts/Add a category to a contact --.bru
Normal file
11
dev/setup/bruno/contacts/Add a category to a contact --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a category to a contact --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contacts/{id}/categories/{category_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create an user account object from contact -external user- --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contacts/{id}/createUser
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contacts/Create contact object --.bru
Normal file
11
dev/setup/bruno/contacts/Create contact object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create contact object --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contacts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contacts/Delete contact --.bru
Normal file
11
dev/setup/bruno/contacts/Delete contact --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete contact --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/contacts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
18
dev/setup/bruno/contacts/Get categories for a contact --.bru
Normal file
18
dev/setup/bruno/contacts/Get categories for a contact --.bru
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
meta {
|
||||
name: Get categories for a contact --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contacts/{id}/categories
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
meta {
|
||||
name: Get properties of a contact object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contacts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~includecount:
|
||||
~includeroles:
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
meta {
|
||||
name: Get properties of a contact object by Email --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contacts/email/{email}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~includecount:
|
||||
~includeroles:
|
||||
}
|
||||
24
dev/setup/bruno/contacts/List contacts --.bru
Normal file
24
dev/setup/bruno/contacts/List contacts --.bru
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
meta {
|
||||
name: List contacts --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contacts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~thirdparty_ids:
|
||||
~category:
|
||||
~sqlfilters:
|
||||
~includecount:
|
||||
~includeroles:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Remove the link between a category and a contact --
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/contacts/{id}/categories/{category_id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contacts/Update contact --.bru
Normal file
11
dev/setup/bruno/contacts/Update contact --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update contact --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contacts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Activate a service line of a given contract --
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contracts/{id}/lines/{lineid}/activate
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a line to given contract --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contracts/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Close all services of a contract --
|
||||
type: http
|
||||
seq: 13
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contracts/{id}/close
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contracts/Create contract object --.bru
Normal file
11
dev/setup/bruno/contracts/Create contract object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create contract object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contracts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete a line to given contract --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/contracts/{id}/lines/{lineid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contracts/Delete contract --.bru
Normal file
11
dev/setup/bruno/contracts/Delete contract --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete contract --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/contracts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contracts/Get lines of a contract --.bru
Normal file
11
dev/setup/bruno/contracts/Get lines of a contract --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get lines of a contract --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contracts/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of a contract object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contracts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
21
dev/setup/bruno/contracts/List contracts --.bru
Normal file
21
dev/setup/bruno/contracts/List contracts --.bru
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List contracts --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/contracts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~thirdparty_ids:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Unactivate a service line of a given contract --
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contracts/{id}/lines/{lineid}/unactivate
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update a line to given contract --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contracts/{id}/lines/{lineid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update contract general fields -won-t touch lines of contract- --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/contracts/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/contracts/Validate a contract --.bru
Normal file
11
dev/setup/bruno/contracts/Validate a contract --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Validate a contract --
|
||||
type: http
|
||||
seq: 12
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/contracts/{id}/validate
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/donations/Create donation object --.bru
Normal file
11
dev/setup/bruno/donations/Create donation object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create donation object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/donations
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/donations/Delete donation --.bru
Normal file
11
dev/setup/bruno/donations/Delete donation --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete donation --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/donations/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of an donation object --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/donations/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
21
dev/setup/bruno/donations/List donations --.bru
Normal file
21
dev/setup/bruno/donations/List donations --.bru
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List donations --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/donations
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~thirdparty_ids:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update order general fields -won-t touch lines of order- --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/donations/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/donations/Validate an donation --.bru
Normal file
11
dev/setup/bruno/donations/Validate an donation --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Validate an donation --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/donations/{id}/validate
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
6
dev/setup/bruno/environments/ Test local.bru
Normal file
6
dev/setup/bruno/environments/ Test local.bru
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
vars {
|
||||
base_url: http://localhost/dolibarr_dev/htdocs/api/index.php
|
||||
}
|
||||
vars:secret [
|
||||
DOLAPIKEY
|
||||
]
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create Expense Report object --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/expensereports
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create payment of ExpenseReport --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/expensereports/{id}/payments
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/expensereports/Delete Expense Report --.bru
Normal file
11
dev/setup/bruno/expensereports/Delete Expense Report --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete Expense Report --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/expensereports/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/expensereports/Get a given payment- --.bru
Normal file
11
dev/setup/bruno/expensereports/Get a given payment- --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get a given payment- --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/expensereports/payments/{pid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of an Expense Report --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/expensereports/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
meta {
|
||||
name: Get the list of payments of expensereport- --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/expensereports/payments
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
}
|
||||
21
dev/setup/bruno/expensereports/List Expense Reports --.bru
Normal file
21
dev/setup/bruno/expensereports/List Expense Reports --.bru
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List Expense Reports --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/expensereports
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~user_ids:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update Expense Report general fields -won-t touch lines of expensereport- --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/expensereports/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Update a payment of ExpenseReport --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{base_url}}/expensereports/{id}/payments
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a line to a given intervention --
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/interventions/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/interventions/Close an intervention --.bru
Normal file
11
dev/setup/bruno/interventions/Close an intervention --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Close an intervention --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/interventions/{id}/close
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create intervention object --
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/interventions
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/interventions/Delete order --.bru
Normal file
11
dev/setup/bruno/interventions/Delete order --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete order --
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/interventions/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Get properties of a Expense Report object Return an array with Expense Report information --
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/interventions/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
meta {
|
||||
name: List of interventions Return a list of interventions --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/interventions
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
query {
|
||||
~sortfield:
|
||||
~sortorder:
|
||||
~limit:
|
||||
~page:
|
||||
~thirdparty_ids:
|
||||
~sqlfilters:
|
||||
~properties:
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Validate an intervention --
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/interventions/{id}/validate
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a contact type of given invoice --
|
||||
type: http
|
||||
seq: 14
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/contact/{contactid}/{type}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a discount line into an invoice -as an invoice line- using an existing absolute discount --
|
||||
type: http
|
||||
seq: 23
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/usediscount/{discountid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a line to a given invoice --
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/lines
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add a payment to pay partially or completely one or several invoices- --
|
||||
type: http
|
||||
seq: 27
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/paymentsdistributed
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add an available credit note discount to payments of an existing invoice- --
|
||||
type: http
|
||||
seq: 24
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/usecreditnote/{discountid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Add payment line to a specific invoice with the remain to pay as amount- --
|
||||
type: http
|
||||
seq: 26
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/payments
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/invoices/Adds a contact to an invoice --.bru
Normal file
11
dev/setup/bruno/invoices/Adds a contact to an invoice --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Adds a contact to an invoice --
|
||||
type: http
|
||||
seq: 16
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/contacts
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create a discount -credit available- for a credit note or a deposit- --
|
||||
type: http
|
||||
seq: 22
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/{id}/markAsCreditAvailable
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create an invoice using a contract- --
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/createfromcontract/{contractid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create an invoice using an existing order- --
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices/createfromorder/{orderid}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/invoices/Create invoice object --.bru
Normal file
11
dev/setup/bruno/invoices/Create invoice object --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Create invoice object --
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/invoices
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete a contact type of given invoice --
|
||||
type: http
|
||||
seq: 15
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/invoices/{id}/contact/{contactid}/{type}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
11
dev/setup/bruno/invoices/Delete invoice --.bru
Normal file
11
dev/setup/bruno/invoices/Delete invoice --.bru
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: Delete invoice --
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{base_url}}/invoices/{id}
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue