(object-concatenation.dwl)
- Using ++
- Using {( )}
- Using {([ ])}
(string-concatenation.dwl)
import java.util.Base64; | |
public class Base64UrlEncoding { | |
public static void main(String []args) { | |
byte[] bytes = "prostdev?blog".getBytes(); | |
String encodedString = new String(Base64.getUrlEncoder().encode(bytes)); | |
System.out.println(encodedString); | |
} | |
} |
%dw 2.0 | |
output application/json | |
var newObject = { | |
fieldC: "Field C Value" | |
} | |
var newObject2 = { | |
fieldD: "Field D Value", | |
object2: { |
%dw 2.0 | |
output application/json | |
var newObject = { | |
fieldC: "Field C Value" | |
} | |
var newObject2 = { | |
fieldD: "Field D Value", | |
object2: { |
%dw 2.0 | |
output application/json | |
var newObject = { | |
fieldC: "Field C Value" | |
} | |
var newObject2 = { | |
fieldD: "Field D Value", | |
object2: { |
var jsonData = pm.response.json(); | |
pm.test("Content-Type is present", function () { | |
pm.response.to.have.header("Content-Type"); | |
}); | |
pm.test("Content-Type is application/json", function () { | |
pm.expect(postman.getResponseHeader("Content-Type")).to.include("application/json"); | |
}); |
#!/bin/bash | |
yum update -y | |
yum install -y httpd24 php56 mysql php56-mysqlnd | |
service httpd start | |
chkconfig httpd on | |
echo "fs-56fc251e.efs.us-east-1.amazonaws.com:/ /var/www/html nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0" >> /etc/fstab | |
mount -a |