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 requests | |
import os | |
import json | |
import pandas as pd | |
from datetime import datetime | |
from quixstreaming import * | |
certificatePath = "../certificates/ca.cert" | |
# use the values given in your starter project here |
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
from transformers import pipeline | |
import unicodedata | |
from quixstreaming import * | |
import signal | |
import threading | |
from bs4 import BeautifulSoup | |
import re | |
import itertools | |
import emoji | |
import traceback |
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
<?php | |
... | |
class TestAddressController extends AbstractFOSRestController | |
{ | |
/** | |
* @Route("/test/address", methods={"POST"}) | |
* @ParamConverter("address", converter="fos_rest.request_body") | |
*/ |
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
fos_rest: | |
body_converter: | |
enabled: true | |
allowed_methods_listener: true | |
format_listener: | |
rules: | |
- { path: '^/', prefer_extension: true, fallback_format: json, priorities: [ 'json', 'xml'] } |
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
<?php | |
... | |
class TestAddressController extends AbstractFOSRestController | |
{ | |
/** | |
* @Route("/test/address", methods={"POST"}) | |
* @ParamConverter("address", converter="fos_rest.request_body") | |
*/ | |
public function post(Address $address): Response |
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
{ | |
"type": "project", | |
"license": "proprietary", | |
"require": { | |
"php": ">=7.2.5", | |
"ext-ctype": "*", | |
"ext-iconv": "*", | |
"symfony/console": "5.1.*", | |
"symfony/dotenv": "5.1.*", | |
"symfony/flex": "^1.3.1", |
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
<?php | |
... | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | |
class TestPuppyController extends AbstractFOSRestController | |
{ | |
/** | |
* @var SerializerInterface | |
*/ |
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
<?php | |
... | |
use JMS\Serializer\SerializerInterface; | |
use FOS\RestBundle\Controller\AbstractFOSRestController; | |
class TestAddressController extends AbstractFOSRestController | |
{ | |
/** | |
* @var SerializerInterface |
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
<?php | |
... | |
use JMS\Serializer\Annotation as Serializer; | |
/** | |
* @Serializer\ExclusionPolicy("all") | |
*/ | |
class Address |
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
<?php | |
... | |
class TestAddressController extends AbstractController | |
{ | |
/** | |
* @var SerializerInterface | |
*/ | |
private $serializer; |
NewerOlder