What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-29 13:01:03
expressjs swagger yaml
// To load your swagger specification yaml file you need to use a module able to convert // yaml to json; for instance yamljs. >> npm install --save yamljs const express = require('express'); const app = express(); const swaggerUi = require('swag... Add solution -
Other 2021-09-28 19:32:02
http post in flutter
import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; Future<Album> createAlbum(String title) async { final http.Response response = await http.post( 'https://jsonplaceho... Add solution -
Javascript 2021-09-28 12:42:03
dotnet core ajax post of an ojject site:stackoverflow.com
$(document).ready(function () { var things = [ { id: 1, color: 'yellow' }, { id: 2, color: 'blue' }, { id: 3, color: 'red' } ]; things = JSON.stringify({ 'things': things }); $.ajax({ contentType: 'a... Add solution -
Javascript 2021-09-18 10:25:06
vanilla js post form data
document.addEventListener('submit', function (event) { event.preventDefault(); fetch('https://jsonplaceholder.typicode.com/posts', { method: 'POST', body: JSON.stringify(Object.fromEntries(new FormData(event.target))), headers: { 'Content-typ... Add solution -
Javascript 2021-09-17 20:11:02
react convert excel to json
import React, { useState } from "react"; import "./App.css"; import * as XLSX from "xlsx"; class ExcelToJson extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(thi... Add solution -
Javascript 2021-09-16 19:50:01
swagger ui express
// To load your swagger specification yaml file you need to use a module able to convert // yaml to json; for instance yamljs. >> npm install --save yamljs const express = require('express'); const app = express(); const swaggerUi = require('swag... Add solution -
C++ 2021-09-12 12:32:02
jquery ajax post json asp.net core
1234567891011121314151617181920212223 // form ajax with multiple json complex types $('#btnFormAjaxJsonMult... Add solution -
PHP 2021-09-09 23:31:02
php didscord webhook
<?php //2021 current working model $url = "https://discordapp.com/api/webhooks/0000000/ABCDEFGH...."; // security issue with this being false not tested ?? curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $hookObject = json_encode([ /* ... Add solution