go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

Add a REST API endpoint for "ios profile list"

Open danielpaulus opened this issue 3 years ago • 2 comments

We need the capability to list installed profiles using the REST - API.

I propose to use the device middleware and set up the following endpoint with tests and good swagger documentation:

GET /device/:udid/profiles

With clear and detailed error messages for all possible failure cases. For writing tests it is totally ok to mock out go-ios. Just testing that the endpoints call the right functions in https://github.com/danielpaulus/go-ios/blob/main/ios/mcinstall/mcinstall.go is enough. No need for advanced e2e or integration tests.

The code can go to device_endpoints.go I think, but I am not too opinionated here.

danielpaulus avatar Nov 03 '22 21:11 danielpaulus