Version : 0.0.1 [v.1]
https://public-api.crunch.co.uk/v1/clients
post /
application/json
create:all
{
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}
application/json
delete /{customerId}
delete:all
{
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}
application/json
get /list
read:all
[ {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}, {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
} ]
application/json
/list
instead.
get /clients/list
read:all
[ {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}, {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
} ]
application/json
get /clients
companyName,asc
.read:all
{
"number" : 5,
"size" : 1,
"last" : true,
"numberOfElements" : 9,
"totalPages" : 0,
"pageable" : {
"paged" : true,
"pageNumber" : 7,
"offset" : 5,
"pageSize" : 2,
"unpaged" : true
},
"sort" : {
"unsorted" : true,
"sorted" : true,
"empty" : true
},
"content" : [ {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}, {
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
} ],
"first" : true,
"totalElements" : 6,
"empty" : true
}
application/json
get /{id}
read:all
{
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}
application/json
put /{id}
application/json
update:all
{
"note" : {
"id" : 1,
"text" : "text"
},
"paymentTermsDays" : 6,
"name" : "name",
"id" : 0,
"billingAddress" : {
"country" : "country",
"line4" : "line4",
"postCode" : "postCode",
"line3" : "line3",
"line2" : "line2",
"line1" : "line1"
},
"email" : "email"
}
application/json
PageCustomerDto
Up