User Tools

Site Tools


web:access_rest_api

This is an old revision of the document!


AGTEK Access REST Api

A REST API into the AGTEK Access system needs to provide full access to the Access server (npi), and it is desirable to mimic the desktop API in terms of API granularity and specificity.

Use Cases

The Web API (AKA REST) will likely be used in the following use cases, in relative priority order:

  • AGTEK Access file client
  • Replacement of V1 access.agtek.com application
    • CRUD of customer admin functions
    • Running of reports
  • Supporting mass market items (non-licensed)
  • Server monitoring functionality.
  • Track viewing operation (AKA TrackManager light)

Implementation notes:

  • Web applications are running as separate WAR apps, perhaps on different machines.
    • May need separate instance of REST API for each machine to avoid cross site scripting calls.
  • REST API perhaps used for background operations in IOS operations.

Method Breakdown

API-class (priority) Method Name Return Value REST Method Notes
CONNECTION (0)
connect() StorageServer GET
authenticate() PUT
authenticateResetPassword() PUT
disconnect() PUT
getAllAnnouncements() Announcement* GET
ASSOCIATION (4)
getAssociations() Association*
addAssociation() Association
updateAssociation() Association
deleteAssociation() Association
CONFIGURATION (4)
getAllConfigurations() Configuration*
getConfiguration() Configuration
updateConfiguration() Configuration
getConfigurationData() ConfigurationData
setConfigurationData() void
FILEAPI (1)
createFolder() StoredFolder GET
createPublicUrl() String url GET
deleteFile() void PUT
deletePublicUrl() void PUT
downloadFile() GET to file… tbd
downloadVersion() GET to file… tbd
getAccountInfo() GET
getFolder() StoredFolder GET
getVersions() StoredFile+ GET
getStoredFile() StoredFile GET
moveFile() void PUT
renameFile() void PUT
renameFolder() void PUT
setDescription() void PUT
uploadFolder() StoredFolder POST
uploadFile() StoredFile POST
PROJECTS (2)
addProject() Project PUT
updateProject() Project PUT
getProjects() Project* PUT
deleteProject() void PUT
archiveProject() StoredFile POST
restoreProject() Project POST
getWorkingTime() WorkingTime GET for a day
getWorkingTime() WorkingTime* GET for a range of times
updatingWorkingTime() WorkingTime PUT
deleteWorkingTime() void PUT
REPORTS (3)
getReportFormats() String+ GET
getReports() String+ GET
runReport() void POST
getActiveProducts() String+ GET
ADMIN (3) All are customer admin functions as defined in current API
getUsers() StorageUser*
addUser() StorageUser
deleteUser() boolean
updateUser() StorageUser
getAllLicenses() LicenseKey*
removeLicenseUser() void
addLicenseUser() void
updateLicenseCheckoutTime() LicenseKey
getLicenseLog()
LICENSE (5) Not supported in V1
getLicenses() LicenseKey*
checkoutLicense() LicenseKey
checkinLicense() LicenseKey
renewLicense() LicenseKey
submitLicenseComment() void
SUPPORT (5) Limited to viewing only operations
getConfig() Config
getCustomers() StorageCustomer*
getCustomerByLicense() StorageCustomer
getCustomerByUser() StorageCustomer
getUsers() StorageUser
findUsersByPattern() StorageUser
runReport()
addCustomerUser() StorageUser
addAnnouncement() Announcement
deleteAnnouncement() void
getLicenses(cust) LicenseKey*
createLicense() LicenseKey
updateLicense() LicenseKey
convertDCLLicense() LicenseKey
transferLicense() LicenseKey
unlockLicense() LicenseKey
addCustomer() StorageCustomer
updateCustomer() void
getEvents() String* Server event list
getApps() Application
updateApp()
TRACKING (4) Plus traditional POSITION API
getSerialNumbers() String*
updateGpsStats() GpsStat
updateGpsStats() GpsStat inp telemetry, needed in web?
getGpsStats() GpsStat+
getGpsTelemetry() GpsTelemetry
getTracks() Track*
getTrack() Track
deleteTrack() void
moveTrack() Track
combineTrack() Track
updateTrack() void
getTrackStats() TrackStats
getTrackSummaryStats() TrackStats
updateTrackStats() TrackStats
VEHICLES (4)
getVehicles() Vehicle*
addVehicle() Vehicle
updateVehicle() Vehicle
deleteVehicle() Vehicle
web/access_rest_api.1454090563.txt.gz · Last modified: 2016/01/29 18:02 by mjallison