Talk:YaST/Research/YaaS/Team 2
From openSUSE
[edit]
Some observations
Looking at the proposal, some things come to mind
Restricting the number of items retrieved
The page proposes things like GET /users?limit=100. Alternatively, you could use the Content-range header in the GET request on arrays.
GET /users Content-Range: items 0-99
Not sure if the engine you want to use supports this.
Starting services
I don't think using GET/PUT/POST/DELETE on /services/ntp/ is the right approach to starting/stopping the service. I think a better approach is have an explicit /services/ntp/runstate resource that you can query (GET) or change (PUT)
A GET request on this resource would give you the current status (in LSB terms).
A PUT on this resource could be used to send commands like "start" or "stop" or "reload".

