From 4ce1a90038b23d931858ad22815dbe29f74d7d98 Mon Sep 17 00:00:00 2001 From: Nat Williams Date: Fri, 13 Apr 2012 17:06:09 -0500 Subject: add Git Data API support --- pygithub3/requests/git_data/blobs.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pygithub3/requests/git_data/blobs.py (limited to 'pygithub3/requests/git_data/blobs.py') diff --git a/pygithub3/requests/git_data/blobs.py b/pygithub3/requests/git_data/blobs.py new file mode 100644 index 0000000..4a49c6b --- /dev/null +++ b/pygithub3/requests/git_data/blobs.py @@ -0,0 +1,20 @@ +# -*- encoding: utf-8 -*- + +from pygithub3.requests.base import Request +from pygithub3.resources.git_data import Blob + + +class Get(Request): + + uri = 'repos/{user}/{repo}/git/blobs/{sha}' + resource = Blob + + +class Create(Request): + + uri = 'repos/{user}/{repo}/git/blobs' + resource = Blob + body_schema = { + 'schema': ('content', 'encoding'), + 'required': ('content', 'encoding'), #TODO: is enc really required? + } -- cgit v1.2.3-59-g8ed1b