- XML GET
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"
- JSON GET
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"
- JSON PUT
-- Token Based API Access for Supabase | |
-- | |
-- How to configure Supabase (https://supabase.com/) to generate and accept API tokens. | |
-- | |
-- (c) 2022 Felix Zedén Yverås | |
-- Provided under the MIT license (https://spdx.org/licenses/MIT.html) | |
-- | |
-- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but | |
-- prefer to follow a tool over going by personal taste. | |
-- |
[ | |
{ | |
"name": "UEFA Europa League", | |
"affiliation": "UEFA" | |
}, | |
{ | |
"name": "UEFA Europa Conference League", | |
"affiliation": "UEFA" | |
}, | |
{ |
require_relative '../node_modules/react-native/scripts/react_native_pods' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
platform :ios, '12.4' | |
install! 'cocoapods', :deterministic_uuids => false | |
target 'proofOfConcept' do | |
config = use_native_modules! | |
# Flags change depending on the env values. |
import multer from 'multer'; | |
import firebaseAdmin from 'firebase-admin'; | |
import { default as serviceAccount } from '../../config/newapp-6a21b-firebase-adminsdk-l4qfa-aea1ab47b1.json'; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
} |
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"
curl --location --request POST 'https://api.redoxengine.com/endpoint' \ | |
--header 'Authorization: Bearer 8c6f0a91-01a0-4240-bb90-412e285adcdc' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"Meta": { | |
"DataModel": "Results", | |
"EventType": "New", | |
"EventDateTime": "2021-06-29T21:13:48.430Z", | |
"Test": true, | |
"Source": { |
import Head from "next/head"; | |
import { Component, useEffect } from "react"; | |
import { io } from "socket.io-client"; | |
class Home extends Component { | |
public socket: any; | |
constructor(props: any) { | |
super(props); | |
} |
const mockInitializeApp = jest.fn(); | |
const mockCert = jest.fn(); | |
const defaultOptions = { | |
includeIdsInData: false, | |
mutable: false, | |
}; | |
class FakeAuth { | |
constructor() { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Manually gzip CSS and JS files</title> | |
<link rel="stylesheet" href="bootstrap-custom.min.css" type="text/css"> | |
<script src="header-scripts.min.js"></script> | |
</head> |
# install from nodesource using apt-get | |
# https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server | |
curl -sL https://deb.nodesource.com/setup | sudo bash - && \ | |
apt-get install -yq nodejs build-essential | |
# fix npm - not the latest version installed by apt-get | |
npm install -g npm |