Quantcast
Channel: Home of ActiveVFP - Foxpro on the World Wide Web
Viewing all articles
Browse latest Browse all 1109

New Post: Community Appery account with EC2 as well

$
0
0
POST should work fine.

Here's the REST implementation in AVFP (from: https://activevfp.codeplex.com/SourceControl/latest#avfp6.03_source/prg/resthelper.prg ):
 DO CASE
    CASE cVerb == "GET" AND oParams.Count = 1 AND LOWER(oParams.Item[1]) == "info"
         cAction = "infoAction"
         
    CASE cVerb == "GET" AND oParams.Count = 1 AND LOWER(oParams.Item[1]) == "help"
         cAction = "helpAction"
 
    CASE cVerb == "GET" AND oParams.Count = 0
         cAction = "listAction"
         
    CASE cVerb == "GET" AND oParams.Count > 0 AND !(ISALPHA(oParams.Item[1]))
         cAction = "getAction"
         
    CASE cVerb == "POST" AND oParams.Count = 0
         cAction = "addAction"
         
    CASE cVerb == "POST" AND oParams.Count > 0
         cAction = "updAction"
         
    CASE cVerb == "DELETE" AND oParams.Count = 0
         cAction = "zapAction"
         
    CASE cVerb == "DELETE" AND oPArams.Count > 0
         cAction = "dropAction"
                   
    OTHERWISE
         cAction = oParams.Item[1]    &&"customAction"
 ENDCASE

Viewing all articles
Browse latest Browse all 1109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>