Exemplo n.º 1
0
from django.conf.urls import patterns, url
from pulp_puppet.forge.views.releases import ReleasesView, ReleasesPost36View
from pulp_puppet.forge.views.modules import ModulesView, ModulesPost36View
from pulp_puppet.forge.views.files import FilesView, FilesPost36View
from pulp.server.db import connection


connection.initialize()

urlpatterns = patterns('',
    url(r'^pulp_puppet/forge/([^/]+)/([^/]+)/api/v1/releases.json', ReleasesView.as_view(),
        name='post_33_releases'),
    url(r'^api/v1/releases.json', ReleasesView.as_view(), name='pre_33_releases'),
    url(r'^v3/releases', ReleasesPost36View.as_view(), name='post_36_releases'),
    url(r'^v3/modules', ModulesPost36View.as_view(), name='post_36_modules'),
    url(r'^v3/files', FilesPost36View.as_view(), name='post_36_files')
)
Exemplo n.º 2
0
from django.conf.urls import patterns, url
from pulp_puppet.forge.views.releases import ReleasesView, ReleasesPost36View

urlpatterns = patterns('',
                       url(r'^pulp_puppet/forge/([^/]+)/([^/]+)/api/v1/releases.json',
                           ReleasesView.as_view(),
                           name='post_33_releases'),
                       url(r'^api/v1/releases.json', ReleasesView.as_view(),
                           name='pre_33_releases'),
                       url(r'^v3/releases', ReleasesPost36View.as_view(), name='post_36_releases')
                       )
Exemplo n.º 3
0
from django.conf.urls import patterns, url
from pulp_puppet.forge.views.releases import ReleasesView, ReleasesPost36View

urlpatterns = patterns(
    '',
    url(r'^pulp_puppet/forge/([^/]+)/([^/]+)/api/v1/releases.json',
        ReleasesView.as_view(),
        name='post_33_releases'),
    url(r'^api/v1/releases.json',
        ReleasesView.as_view(),
        name='pre_33_releases'),
    url(r'^v3/releases', ReleasesPost36View.as_view(),
        name='post_36_releases'))