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 apistar import Include, Route, Response | |
from apistar.frameworks.wsgi import WSGIApp as App | |
from apistar.handlers import docs_urls, static_urls | |
from apistar import typesystem | |
class Name(typesystem.String): | |
description = "Person's name" | |
min_length = 3 | |
max_length = 15 |
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
""" | |
api.core.serializers | |
serializer readonlyfield | |
AdaptiveTitForTat | |
"arguments": [ | |
{ | |
"parameter": "rate", |
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 re | |
import requests | |
import json | |
from django.contrib.auth.models import User | |
from oauth2_provider.models import AccessToken | |
def generate_github_access_token(github_client_id, github_client_secret, github_code): | |
""" |