<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
version: "2.1" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
variables: | |
GCP_PROJECT_ID: **** | |
GCLOUD_SERVICE_KEY: **** | |
NPM_TOKEN: **** | |
image: andrzj/gcloud-ci | |
cache: | |
untracked: true | |
key: "$CI_BUILD_REF_NAME" |
// Filter all URL's that have "/blogs/" in it AND don't have "em-foca". Result limited and pretty | |
db.assets.find({ | |
$and:[ | |
{ url: /\/blogs\// }, | |
{ url: {$not: /em-foca/}}, | |
] | |
}).limit(2).pretty() | |
// Filter and count all URL's that have "/blogs/" in it | |
db.assets.find({url: /^http:\/\/(.*)\/blogs\//}).count() |
$('#form').data('serialize',$('#form').serialize()); // On load save form current state | |
$(window).bind('beforeunload', function(e){ | |
if($('#form').serialize()!=$('#form').data('serialize'))return true; | |
else e=null; // i.e; if form state change show box not. | |
}); | |
// ******* | |
var initial_form_state = $('#myform').serialize(); |
$data = array("name" => "Hagrid", "age" => "36"); | |
$data_string = json_encode($data); | |
$ch = curl_init('http://api.local/rest/users'); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array( | |
'Content-Type: application/json', |
<iframe id="iframe" src="//example.com"></iframe> | |
<div id="message"></div> |