{"id":15677022,"url":"https://github.com/jaredly/django-restive","last_synced_at":"2025-08-01T04:43:54.625Z","repository":{"id":928113,"uuid":"696220","full_name":"jaredly/django-restive","owner":"jaredly","description":"A library for enabling the easy and intuitive creating of RESTful services in django","archived":false,"fork":false,"pushed_at":"2010-07-08T15:54:45.000Z","size":91,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T00:43:32.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jaredforsyth.com/projects/django-restive","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredly.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-31T22:35:36.000Z","updated_at":"2018-06-29T11:33:29.000Z","dependencies_parsed_at":"2022-07-05T22:00:41.580Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/django-restive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredly/django-restive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fdjango-restive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fdjango-restive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fdjango-restive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fdjango-restive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/django-restive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fdjango-restive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268171555,"owners_count":24207416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:08:11.597Z","updated_at":"2025-08-01T04:43:54.563Z","avatar_url":"https://github.com/jaredly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django RESTive\n==============\n\n``restive`` is a library for enabling easy setup of a RESTful service in\ndjango, and provides code for both client and server-side setup.\n\nIn keeping with DRY, ``restive`` gets all of the boiler-plate out of the way,\nallowing the intuitive creation of a rich ajax experience.\n\nSome important points:\n\n- all communication is in JSON (this could be configurable, I guess, but I\n  don't see any reason for it ATM)\n\n  - this means that callback **functions should return a dictionary**, which\n    JSON then serializes.\n  - the **serialization of django models** is also supported: if the\n    returned dictionary has a \"_models\" key, it should be a list of ORM\n    instances, and it gets serialized by Django's builtin json serializer.\n  - javascript POSTing to the service should put all passed data (keyword\n    arguments) as JSON text under the key ``data``.\n\n- all communication is verified by a CSRF token, to prevent forgeries. (not\n  yet implemented)\n- ``restive_js`` is a **client-side component** to allow ease of interaction\n  from the client side as well.\n\nHere's restive's \"Hello World\"::\n\n    from restive import Service\n\n    service = Service()\n\n    @service.add\n    def greet(request, name='Jimmy'):\n        return {'message': 'Hello %s!' % name}\n\n    urlpatterns = service.urls()\n\nTo enable your restive service, just ``include()`` the file where you defined\nthe service in your ``urls.py``. For example, if the above code were in\n``hello_app/rest.py``::\n\n    from django.conf.urls.defaults import *\n\n    urlpatterns = patterns('',\n        ('^hello/', include('hello_app.rest')),\n    )\n\nThe ``greet`` function would then be available at ``http://mysite.com/hello/greet``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fdjango-restive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Fdjango-restive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fdjango-restive/lists"}