Okay, Thanks for the explanation. If there hasn't been any specific reason to do it this way, please make sure we get rid of such ad-hoc mechanisms used for authenticating API access, etc perhaps, soon after the release, to be able to adhere the platform standards.
@Inosh/Chathura, Please record this in JIRA (as a functional enhancement) so we won't lose track of it. Cheers, Prabath On Mon, Mar 23, 2015 at 10:59 AM, Dinusha Senanayaka <[email protected]> wrote: > Hi Prabath, > > > > On Mon, Mar 23, 2015 at 10:43 AM, Prabath Abeysekera <[email protected]> > wrote: > >> Hi Chathura, >> >> Please correct me if I'm wrong, but the platform standard so far has been >> exposing APIs via "API Everywhere" which basically re-uses the existing >> API-Management components and other infrastructure (OAuth to secure >> endpoints, etc) within the platform. Any reason why you've decided to go >> against that approach and exposed these APIs via something else (i.e Basic >> Auth enforced through some customer handler)? >> > > No specific reason, since we have planed AppM release on next week we > thought of doing it with minimum changes. Supporting "API Everywhere" kind > of thing will take more effort and time which is difficult to handle at > this level. > > Regards, > Dinusha. > > >> >> Cheers, >> Prabath >> >> On Mon, Mar 23, 2015 at 10:29 AM, Chathura Dilan <[email protected]> >> wrote: >> >>> Hi, >>> >>> Have done some modification to the API. >>> >>> API as follows with query params described above and will be protected >>> by basic Auth >>> >>> GET /api/v1/apps/mobile/list/tenant/<tenantId> >>> >>> Sample Response >>> >>> { >>> "apps": [ >>> { >>> "id": "594a5d89-1ef8-49fb-9ea2-43398cc4caef", >>> "name": "Anti Virus", >>> "type": "enterprise", >>> "platform": "android", >>> "version": "1.5", >>> "identifier": "com.antivirusforandroid", >>> "iconImage": " >>> http://192.168.1.2:9763/publisher/api/mobileapp/getfile/vTA2esNdN51d9GQ.png >>> ", >>> "packageName": "com.antivirusforandroid" >>> }, >>> { >>> "id": "a857cba6-8020-4a69-a2f7-a0aaa0c86e48", >>> "name": "WSO2", >>> "type": "webapp", >>> "platform": "webapp", >>> "version": "1", >>> "identifier": "http://www.wso2.com",mon >>> "iconImage": " >>> http://192.168.1.2:9763/publisher/api/mobileapp/getfile/0dUcPepVdsuugYK.png >>> " >>> }, >>> { >>> "id": "f59ca262-3119-4926-88f7-68dadaf22a4a", >>> "name": "Google", >>> "type": "webapp", >>> "platform": "webapp", >>> "version": "2.1.5", >>> "identifier": "http://www.google.com", >>> "iconImage": " >>> http://192.168.1.2:9763/publisher/api/mobileapp/getfile/y97ttiJjo1MB0EG.png >>> " >>> } >>> ], >>> "query": { >>> "status": "OK", >>> "found": 3, >>> "limit": 0, >>> "offset": 0, >>> "total": 3 >>> } >>> } >>> >>> >>> On Fri, Mar 20, 2015 at 10:17 AM, Dinusha Senanayaka <[email protected]> >>> wrote: >>> >>>> Hi Prabath, >>>> >>>> Can we finalize the following API's that going to expose from MDM ? App >>>> Manager mobile store need to know the endpoints/data model/security for, >>>> - API to get device list >>>> - API for install >>>> - API for uninstall >>>> - API for update >>>> >>>> We need to get a MDM pack with these endpoints to test with App Manager >>>> mobile store end to end scenario. Since App Manager is going to release by >>>> end of March, we won't be able to add changes later. >>>> >>>> Regards, >>>> Dinusha. >>>> >>>> On Mon, Mar 16, 2015 at 1:00 PM, Dilshan Edirisuriya <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> Mobile device will need a reachable IPA URL to get the app downloaded. >>>>> You can find a sample plist file [1] here, which need to be generated in >>>>> order to get this done. >>>>> >>>>> [1] - >>>>> http://stackoverflow.com/questions/25934131/install-in-house-ios-app-wirelessly-with-manifest-plist-does-not-work-anymore-wi >>>>> >>>>> Regards, >>>>> >>>>> Dilshan >>>>> >>>>> On Mon, Mar 16, 2015 at 7:09 AM, Inosh Perera <[email protected]> wrote: >>>>> >>>>>> Hi Dilshan, >>>>>> >>>>>> Is it possible to send authorized headers to the AppM through mobile >>>>>> devices and what about a special case like iOS? >>>>>> Could you please tell if there is an iOS MDM friendly way to protect >>>>>> the binary downloading process? >>>>>> >>>>>> Regards, >>>>>> Inosh >>>>>> >>>>>> On Fri, Mar 13, 2015 at 12:56 PM, Sumedha Rubasinghe < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> got it. That also can be included in the url format I suggested >>>>>>> above. >>>>>>> >>>>>>> On Fri, Mar 13, 2015 at 12:19 PM, Chathura Dilan <[email protected] >>>>>>> > wrote: >>>>>>> >>>>>>>> Hi Sumedha, >>>>>>>> >>>>>>>> Offset is the starting point for the return data. Say if there are >>>>>>>> 25 items and someone wants to get last 5 items, he can set the offset >>>>>>>> to 20 >>>>>>>> and limit it to 5. >>>>>>>> >>>>>>>> On Fri, Mar 13, 2015 at 12:04 PM, Sumedha Rubasinghe < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Why not make this something like, >>>>>>>>> >>>>>>>>> GET apps/mobile/v1 - gives a list of all apps >>>>>>>>> GET apps/mobile/v1/<query> - gives a matching app list >>>>>>>>> GET apps/mobile/v1/<query>/limit/<no of apps> - limits the list of >>>>>>>>> apps shown >>>>>>>>> >>>>>>>>> - Its more RESTy. >>>>>>>>> - will also facilitate other type of app downloads >>>>>>>>> >>>>>>>>> >>>>>>>>> What is the offset about? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Mar 5, 2015 at 7:52 AM, Chathura Dilan <[email protected] >>>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> Hi All, >>>>>>>>>> >>>>>>>>>> To provide app information to CDM, we decided to developed a >>>>>>>>>> Jax-RS web service. This web service will be connected to CDM through >>>>>>>>>> mutual auth. >>>>>>>>>> >>>>>>>>>> The information about web service as follows >>>>>>>>>> >>>>>>>>>> *Path* >>>>>>>>>> >>>>>>>>>> GET mobileapp-services/v1/apps >>>>>>>>>> >>>>>>>>>> *Parameters* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *Name* >>>>>>>>>> >>>>>>>>>> *Located in* >>>>>>>>>> >>>>>>>>>> *Description* >>>>>>>>>> >>>>>>>>>> *Required* >>>>>>>>>> >>>>>>>>>> *Type* >>>>>>>>>> >>>>>>>>>> q >>>>>>>>>> >>>>>>>>>> query >>>>>>>>>> >>>>>>>>>> Search the app by name >>>>>>>>>> >>>>>>>>>> false >>>>>>>>>> >>>>>>>>>> string >>>>>>>>>> >>>>>>>>>> limit >>>>>>>>>> >>>>>>>>>> query >>>>>>>>>> >>>>>>>>>> Number of records to be displayed >>>>>>>>>> >>>>>>>>>> false >>>>>>>>>> >>>>>>>>>> number >>>>>>>>>> >>>>>>>>>> offset >>>>>>>>>> >>>>>>>>>> query >>>>>>>>>> >>>>>>>>>> Offset of the app list >>>>>>>>>> >>>>>>>>>> false >>>>>>>>>> >>>>>>>>>> number >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *Responses* >>>>>>>>>> >>>>>>>>>> *Status 200* >>>>>>>>>> >>>>>>>>>> Sample Response >>>>>>>>>> >>>>>>>>>> { >>>>>>>>>> "apps": [ >>>>>>>>>> { >>>>>>>>>> "id": "Szqw45623", >>>>>>>>>> "name": "WSO2 Con", >>>>>>>>>> "type": "entrpirse", >>>>>>>>>> "platform": "android", >>>>>>>>>> "version": 1, >>>>>>>>>> "location": "https://192.168.1.1:9443/apps/app.apk", >>>>>>>>>> "iconImage": "https://192.168.1.1:9443/images/app.png", >>>>>>>>>> "packageName": "com.wso2.conapp", >>>>>>>>>> "identifier": "com.wso2.conapp" >>>>>>>>>> }, >>>>>>>>>> { >>>>>>>>>> "id": "R456xxEr", >>>>>>>>>> "name": "Antivirus", >>>>>>>>>> "type": "public", >>>>>>>>>> "platform": "android", >>>>>>>>>> "version": 1, >>>>>>>>>> "iconImage": "https://192.168.1.1:9443/images/app1.png", >>>>>>>>>> "packageName": "com.wso2.antiv", >>>>>>>>>> "identifier": "com.wso2.antiv" >>>>>>>>>> }, >>>>>>>>>> { >>>>>>>>>> "id": "DD4567we", >>>>>>>>>> "name": "WSO2 Dinner on Demand", >>>>>>>>>> "type": "public", >>>>>>>>>> "platform": "ios", >>>>>>>>>> "version": 2, >>>>>>>>>> "iconImage": "https://192.168.1.1:9443/images/app.png", >>>>>>>>>> "appIdentifier": "com.wso2.dod", >>>>>>>>>> "identifier": "com.wso2.dod" >>>>>>>>>> }, >>>>>>>>>> { >>>>>>>>>> "id": "Tyere34343", >>>>>>>>>> "name": "WSO2 Sports", >>>>>>>>>> "type": "webapp", >>>>>>>>>> "platform": "all", >>>>>>>>>> "version": 2, >>>>>>>>>> "location": "https://192.168.1.1:9443/apps/webapp", >>>>>>>>>> "iconImage": "https://192.168.1.1:9443/images/app.png", >>>>>>>>>> "identifier": "https://192.168.1.1:9443/apps/webapp" >>>>>>>>>> } >>>>>>>>>> ], >>>>>>>>>> "query": { >>>>>>>>>> "status": "ok", >>>>>>>>>> "found": 4, >>>>>>>>>> "length": 10, >>>>>>>>>> "offset": 110, >>>>>>>>>> "total": 114 >>>>>>>>>> } >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Also Please mention if you need any search queries for this >>>>>>>>>> version of the API >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Regards, >>>>>>>>>> >>>>>>>>>> Chatura Dilan Perera >>>>>>>>>> *(Senior Software Engineer** - WSO2 Inc.**)* >>>>>>>>>> www.dilan.me >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> /sumedha >>>>>>>>> m: +94 773017743 >>>>>>>>> b : bit.ly/sumedha >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Regards, >>>>>>>> >>>>>>>> Chatura Dilan Perera >>>>>>>> *(Senior Software Engineer** - WSO2 Inc.**)* >>>>>>>> www.dilan.me >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> /sumedha >>>>>>> m: +94 773017743 >>>>>>> b : bit.ly/sumedha >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Inosh Perera >>>>>> Software Engineer, WSO2 Inc. >>>>>> Tel: 0785293686 >>>>>> >>>>>> _______________________________________________ >>>>>> Architecture mailing list >>>>>> [email protected] >>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Dilshan Edirisuriya >>>>> Senior Software Engineer - WSO2 >>>>> Mob: + 94 777878905 >>>>> http://wso2.com/ >>>>> https://www.linkedin.com/profile/view?id=50486426 >>>>> >>>>> _______________________________________________ >>>>> Architecture mailing list >>>>> [email protected] >>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>> >>>>> >>>> >>>> >>>> -- >>>> Dinusha Dilrukshi >>>> Senior Software Engineer >>>> WSO2 Inc.: http://wso2.com/ >>>> Mobile: +94725255071 >>>> Blog: http://dinushasblog.blogspot.com/ >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> Regards, >>> >>> Chatura Dilan Perera >>> *(Senior Software Engineer** - WSO2 Inc.**)* >>> www.dilan.me >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> Prabath Abeysekara >> Associate Technical Lead, Data TG. >> WSO2 Inc. >> Email: [email protected] >> Mobile: +94774171471 >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Dinusha Dilrukshi > Senior Software Engineer > WSO2 Inc.: http://wso2.com/ > Mobile: +94725255071 > Blog: http://dinushasblog.blogspot.com/ > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: [email protected] Mobile: +94774171471
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
