This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Devices; | |
using Microsoft.Azure.Devices.Shared; | |
using Newtonsoft.Json; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const https = require("https"); | |
const path = require("path"); | |
const uuid = require("uuid/v4"); | |
const libaccount = require("@zeit/cosmosdb-server/lib/account/index.js"); | |
const libroutes = require("@zeit/cosmosdb-server/lib/routes.js"); | |
const options = { | |
cert: fs.readFileSync("/app/certs/cosmosdb-sim-cert.crt"), | |
key: fs.readFileSync("/app/certs/cosmosdb-sim-cert.key"), | |
minVersion: "TLSv1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
exports.default = () => ({ | |
_rid: "cosmosdb", | |
_self: "", | |
_dbs: "//dbs/", | |
id: "cosmosdb", | |
media: "//media/", | |
addresses: "//addresses/", | |
writableLocations: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
from django.db.models.fields.related_descriptors import ( | |
ForwardManyToOneDescriptor, | |
ManyToManyDescriptor, | |
ReverseManyToOneDescriptor, | |
ReverseOneToOneDescriptor, | |
) | |
from django.utils.module_loading import import_string | |
from rest_framework import viewsets as rest_framework_viewsets |