Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make this Web Api to work?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01658678
Message ID:
01658793
Vues:
48
I think we're not understanding each other. I need to send the exact get call using two values (integer and a character), e.g. I need to make sure how to properly code this

services.Http.get("api/matrixTemplates/getAttributeValues/" + id + "/" + criteria);

My question to you is - how exactly I need to code the above so it would work for any character criteria?



>Angular uses the same syntax as jquery for its HTTP client. If you want to get values into the URL as GET parameters just pass a map with the quoted property string (if its an illegal property name) and the value which will dump the values onto the Query string in a get. If you post the entire object is sent as is as a JSON object (which is different than the default in jQuery which posts the individual values as UrlEncoded content).
>
>+++ Rick ---
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform