Api made for working with customer-invoice data, tested with postman. Front-end done with alpine.js and tailwind css.
GET /api/{{VERSION}}/customers
GET /api/{{VERSION}}/customers?includeInvoices=true
GET /api/{{VERSION}}/customers/{id}
Parameter | Type | Description |
---|---|---|
id |
int |
Id of customer to fetch |
PUT/PATCH /api/{{VERSION}}/customers/{id}
GET/api/{{VERSION}}/customers?{parameter}[{comparison}]={value}
Example: Get customers where "type" is equal to "I"
Available comparison operators:
Operator | Type | Description |
---|---|---|
[eq] |
int/string |
equal |
[ne] |
int/string |
not equal |
[lt] |
int |
less than |
[lte] |
int |
less than or equal |
[gt] |
int |
greater than |
[gte] |
int |
greater than or equal |
GET /api/{{VERSION}}/invoices
Parameter | Type | Description |
---|---|---|
id |
int |
Id of invoice to fetch |
GET /api/{{VERSION}}/invoices/{id}
PUT/PATCH /api/{{VERSION}}/invoices/{id}
POST /api/{{VERSION}}/invoices
POST /api/{{VERSION}}/invoices/bulk
GET/api/{{VERSION}}/invoices?{parameter}[{comparison}]={value}
Example: Get invoices where "amount" is greater than or equal to 3000
Available comparison operators:
Operator | Type | Description |
---|---|---|
[eq] |
int/string |
equal |
[ne] |
int/string |
not equal |
[lt] |
int |
less than |
[lte] |
int |
less than or equal |
[gt] |
int |
greater than |
[gte] |
int |
greater than or equal |
-
Seeder for customers and invoices
-
Bulk adding invoices
-
Filtering for equality, greater than etc.
-
Including invoices for customer in one endpoint