Update swagger.json 3.8

andsdoug8 years ago

Can you update swagger.json to 3.8 version, please.

https://raw.githubusercontent.com/tananaev/traccar/master/swagger.json
tks

Anton Tananaev8 years ago

Updated the version number, but the content should already be up to date.

andsdoug8 years ago

i did not find a command to disable user using restapi, was it not implemeted yet?

Anton Tananaev8 years ago

It is implemented. See this pull request:

https://github.com/tananaev/traccar/pull/2621/files

andsdoug8 years ago

Hello, i sent this rest PUT command bellow
and receive this error, is it a bug? I'm using the latest version.

xx.xx.xx.xx:8082/api/users/4

json

{
"attributes":{},
"name": "ads",
"email": "ads1@ads.com",
"readonly": false,
"admin": true,
"latitude": 0,
"longitude": 0,
"zoom": 0,
"twelveHourFormat": false,
"expirationTime": "2016-12-02T02:00:00.000+0000",
"deviceLimit": 2,
"token": null,
"password": "xxx"
}

ERROR

Unrecognized field "expirationTime" (class org.traccar.model.User), not marked as ignorable (14 known properties: "readonly", "name", "speedUnit", "latitude", "admin", "longitude", "zoom", "twelveHourFormat", "attributes", "distanceUnit", "id", "password", "email", "map"])
 at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@f2e3703; line: 11, column: 20] (through reference chain: org.traccar.model.User["expirationTime"])
Anton Tananaev8 years ago

Looks like you are not using version 3.8.