(Gast)
n/a Beiträge
|
AW: RESTDebugger-Parameter mit Special Characters in URL
20. Dez 2018, 20:41
Ja, kein Problem
Gespeicherte Anforderung:
Code:
{
"method": "GET",
" url": "https:\/\/tm1rest.olapline.de\/ api\/v1",
"resource": "Processes('%23001')",
"contenttype": "",
"auth": {
"method": "BASIC",
"username": "Test",
"passwordkey": "",
"password": "Test",
"passwordkey": "",
"clientid": "",
"clientsecret": "",
"authcode": "",
"accesstoken": "",
"accesstokensecret": "",
"requesttoken": "",
"requesttokensecret": "",
"refreshtoken": "",
"signaturemethod": "",
"responsetype": "",
"endpointauth": "",
"endpointaccesstoken": "",
"endpointrequesttoken": "",
"endpointredirect": "",
"authscope": ""
},
"parameters": [],
"body": ""
}
JSON-Result:
Code:
{
"@odata.context": "$metadata#Processes\/$entity",
"@odata.etag": "W\/\"5655c43d8f9d00b36362ac4843c900ff643a1d0b\"",
"Name": "#001",
"HasSecurityAccess": false,
"PrologProcedure": "\r\n#****Begin: Generated Statements***\r\n#****End: Generated Statements****\r\n\r\n\r\n# Hier ein test",
"MetadataProcedure": "\r\n#****Begin: Generated Statements***\r\n#****End: Generated Statements****",
"DataProcedure": "\r\n#****Begin: Generated Statements***\r\n#****End: Generated Statements****",
"EpilogProcedure": "\r\n#****Begin: Generated Statements***\r\n#****End: Generated Statements****",
"DataSource": {
"Type": " ASCII",
"asciiDecimalSeparator": ",",
"asciiDelimiterChar": ";",
"asciiDelimiterType": "Character",
"asciiHeaderRecords": 1,
"asciiQuoteCharacter": "\"",
"asciiThousandSeparator": ".",
"dataSourceNameForClient": "C:\\Users\\HenriStenzel.OLAPLINE\\Documents\\Kontakte 07.06.2018_report-1.csv",
"dataSourceNameForServer": "C:\\Users\\HenriStenzel.OLAPLINE\\Documents\\Kontakte 07.06.2018_report-1.csv"
},
"Parameters": [
],
"Variables": [
{
"Name": "Anrede",
"Type": "String",
"Position": 1,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Vorname",
"Type": "String",
"Position": 2,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Nachname",
"Type": "String",
"Position": 3,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Kunde",
"Type": "String",
"Position": 4,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Erstellt",
"Type": "String",
"Position": 5,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Erstellungsdatum",
"Type": "String",
"Position": 6,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Kategorien",
"Type": "Numeric",
"Position": 7,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Bemerkung",
"Type": "Numeric",
"Position": 8,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Briefanrede",
"Type": "String",
"Position": 9,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Position",
"Type": "Numeric",
"Position": 10,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Adressen",
"Type": "String",
"Position": 11,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Adressen1",
"Type": "String",
"Position": 12,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Email",
"Type": "String",
"Position": 13,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Telefonnummern",
"Type": "String",
"Position": 14,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Internet",
"Type": "String",
"Position": 15,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Kontaktrating",
"Type": "String",
"Position": 16,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "Kontaktstatus",
"Type": "String",
"Position": 17,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "ExportId",
"Type": "String",
"Position": 18,
"StartByte": 0,
"EndByte": 0
},
{
"Name": "V19",
"Type": "String",
"Position": 19,
"StartByte": 0,
"EndByte": 0
}
],
"Attributes": {
"Caption": "#001"
}
}
Zur Erklärung:
URL: Wird so übernommen, wie es da steht - um die Kodierung muss man sich also selber kümmern (statt # muss man %23 schreiben)
Ressource: Wird so übernommen, wie es da steht - um die Kodierung muss man sich also selber kümmern (statt # muss man %23 schreiben)
Anforderungsparameter: Name und Wert werden automatisch kodiert -> So eingeben, wie die realen Werte sind. Soll eine # ankommen, dann auch dort # eingeben, wird automatisch in %23 kodiert
Geändert von Schokohase (20. Dez 2018 um 20:51 Uhr)
|