API Reference
Start developing plugins for BizFusion.

 
Country (CountryDTO)

BizFusion comes pre-installed with a short list of countries.
You can extend this list with other countries.


Properties
property data type reference
CountryId Int32 Primary Key
CountryName String
Timestamp String


Methods
method parameters URL
Get
/api/Country
Get
Int32 id
/api/Country?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/Country?pageIndex={value}&recordsPerPage={value}
Post /api/Country
Put
Int32 id, CountryDTO record
/api/Country?id={value}
Delete
Int32 id, String timestamp
/api/Country?id={value}&timestamp={value}
GetRecordCount
/api/CountrySet/RecordCount
GetByField
String field, String value
/api/CountrySet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/CountrySet/AfterId?id={value}
GetBeforeId
Int32 id
/api/CountrySet/BeforeId?id={value}
GetMaxId
/api/CountrySet/MaxId


JSON sample
{
  "Timestamp": "AQIDBw==",
  "CountryId": 1,
  "CountryName": "USA"
}


General Info

- Numbers should be in English format: 124.99
- Dates look like: 2014-12-31T00:00:00
- Time information is ignored.
- Concurrency is handled through timestamps

Create Record (POST)

- Primary keys are not required when doing a post.
- Timestamps are not required when doing a post.
- Provide the JSON record in the body of the post request.

Update Record (PUT)

- Timestamps are required.
- Provide the JSON record in the body of the put request.

Delete Record (DELETE)

- Primary key and Timestamp are required.