简体   繁体   中英

RESTful methods in IBM MobileFirst 8.0 adapters

I'm currently working iwth IBM MobileFirst 8.0 solution and I have found something curious that I'd like to ask/confirm with the community:

According to documentation , adapters only expose GET and POST methods, so any mobile application is able to execute this methods in their API calls... Anybody knows which is the reason for this? I mean, why is it not possible to define a DELETE or PUT method? IS there any security reason or similar for this?

Additionally, in procedure implementation, I'm not able to find if there is any distinction for invoking an specific API through GET or POST method. Procedures are implemented once in all examples I have found. Any idea about how to do this?

Thanks in advance

MFP 8.0's Javascript adapters only support GET and POST.

If you would like to use the other HTTP methods - PUT/DELETE , you can always use Java adapters .

Although they should, not all clients support DELETE and PUT operations. For instance, HTML forms only support GET and POST . If they want their services available to all clients, not just most, they need to make the entire API accessible through only those two verbs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM