Skip to content

Beta - May 14th Release

Compare
Choose a tag to compare
@franck-boullier franck-boullier released this 14 May 09:59
· 81 commits to master since this release

New functionalities:

API Key to retrieve cases for a given user

See PR #780
The API is documented on the Unee-T API documentation.

Input:

API key for the user

Ouput:

list of the cases that this user is allowed to see.
the format is

{
	"unitId": String,
	"name": String,
	"cases": 
		[{
			"assignee": 
				{
					"userId": String,
					"name": String,
					"role": String
				},
			"reporter": 
				{
					"userId": String,
					"name": String,
					"role": String
				},
			"caseId": int,
			"involvedList": 
				[
					{
						"userId": String,
						"name": String,
						"role": String
					},
					{
						"userId": String,
						"name": String,
						"role": String
					}
				],
			"userRelevance": 
				[
					String
				],
			"creationTime": String (Date in ISO format),
			"subCategory": String,
			"solutionDeadline": String (Date in ISO format),
			"nextSteps": String,
			"title": String,
			"solution": String
		}]
}

API Key to retrieve units for a given user:

Include the Role of the user in that unit.
It can be one of the following 5 possibilities:

  • Contractor
  • Management Company
  • Tenant
  • Landlord/Owner
  • Agent

The payload is now:

{
        "_id": String (ObjectId),
        "displayName": String,
        "unitType": String (enum),
        "createdAt": String (Date in ISO format),
        "streetAddress": String,
        "city": String,
        "zipCode": String,
        "state": String,
        "country": String,
        "moreInfo": String
        "designatedRole": String
    }