12
Lucity REST API
Getting pick lists: {PropertyName}/ and {PropertyName}/$count
Fields that are pick lists (code types, problem codes, time codes, category codes, etc.) have a special
endpoint that can return all of the valid pick list items. The format of the URL is
http://restapi.lucity.net/[Program]/[Module].svc/[Optionally the Child List]/[PropertyName]
For example:
http://restapi.lucity.net/LucityRESTAPI/Work/WorkOrders.svc/PriorityCode/
Return all available priority codes.
http://restapi.lucity.net/LucityRESTAPI/Work/WorkOrders.svc/WorkOrderTaskList/UnitofMeasureCode
/
Returns all available unit of measure values for the tasks on work orders. Property names are case
sensitive on these requests.
Work flow code types (such as problem, cause, and task) also follow this convention. All available
problems which can be assigned to a work order are at this endpoint:
http://restapi.lucity.net/LucityRESTAPI/Work/WorkOrders.svc/MainTaskCode/
It is also possible to get a list of only the items associated to a specific category.
http://restapi.lucity.net/LucityRESTAPI/Work/WorkOrders.svc/CategoryCode/10000/MainTaskCode/
Returns all main task codes associated to a category with category code = 10000
ETags
ETags are returned on all GET that return a single record as well as all PUT and POST requests. The
system will respect ETags for GETS, PUTS, and DELETES.
For example, if a GET on a single work order is issued and it includes a header with the following:
If-None-Match: "686897696a7c876b7e"
The Lucity REST API will check the version of the work order in the database, if it matches the version
provided in this ETAG, the Lucity REST API will return a 304 NOT MODIFIED.
For Updates, ETAGS can be used to make sure that one user does not overwrite another user’s data.
If, on a PUT, the following is included on the header:
If-Match: "686897696a7c876b7e"
The Lucity REST API will only make the requested update if the version of the record in the database
matches the provided ETAG.
Notes:__________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________