https://github.com/rmja/unicontarest
https://github.com/rmja/unicontarest
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rmja/unicontarest
- Owner: rmja
- Created: 2019-05-07T21:13:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T12:41:28.000Z (about 5 years ago)
- Last Synced: 2025-01-29T08:25:41.484Z (over 1 year ago)
- Language: C#
- Size: 55.7 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnicontaRest
## Run
```
docker run -e AffiliateKey="InsertKeyHere" -p 5000:80 rmjac/unicontarest
```
## Examples
```
curl -u username:password http://localhost:5000/Companies/:companyId/Query/DebtorOrder
curl -u username:password http://localhost:5000/Companies/:companyId/Query/DebtorOrder?filter._OrderNumber=1
curl -u username:password http://localhost:5000/Companies/:companyId/Query/DebtorOrder?filter.Created=1/1-2018..1/1-2019
curl -u username:password "http://localhost:5000/Companies/12114/Query/DebtorOrderLine?filter._OrderNumber=1&filter.rowId=2"
curl -u username:password -X POST -H "Content-Type: application/json" http://localhost:5000/Companies/12114/Crud/DebtorOrderLine --data "{_OrderNumber:1}"
curl -v -u username:password -X PATCH -H "Content-Type: application/json-patch+json" "http://localhost:5000/Companies/12114/Crud/DebtorOrderLine?filter._OrderNumber=1&filter.rowId=3&limit=1" --data '[{"op":"replace", "path":"/_Text", "value": "Hello World"}]'
curl -v -u username:password -X DELETE "http://localhost:5000/Companies/12114/Crud/DebtorOrderLine?filter._OrderNumber=1&filter.rowId=3&limit=1"
```
## Build Instructions
```
docker build -t rmjac/unicontarest -f src\UnicontaRest\Dockerfile .
```