ЕСОЗ - публічна документація
RC_[NEW] Get equipments list
Purpose
This WS is designed to return list of all active equipments related to legal entity. It is also allow to search for some equipments by search criteria
Specification
Authorization
Verify the validity of access token
Return (401, 'Invalid access token') in case of validation fails
Verify that token is not expired
in case of error - return (401, 'Invalid access token')
Check user scopes in order to perform this action (scope = 'equipment:read')
Return (403, 'Your scope does not allow to access this resource. Missing allowances: equipment:read') in case of invalid scope(s)
Service logic
Service returns all equipments related to legal_entity and filtered by passed query parameters:
Get all equipments (PRM database)
Filter by legal_entity (extract
client_id
from token)Filter list by passed search parameters (according to spec.)
Search using like operation. Case insensitive
Preload equipment names from
prm.equipment_names
Render a response according to specification
ЕСОЗ - публічна документація