{"id":24647484,"url":"https://github.com/lenixbyte/django-restapi","last_synced_at":"2025-03-28T15:34:24.608Z","repository":{"id":115030486,"uuid":"604457686","full_name":"lenixbyte/django-restapi","owner":"lenixbyte","description":"REST API in django app with view, filter, and registration.","archived":false,"fork":false,"pushed_at":"2023-02-21T05:14:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T15:46:08.433Z","etag":null,"topics":["django-project","python3","rest-api"],"latest_commit_sha":null,"homepage":"","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/lenixbyte.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-21T05:12:24.000Z","updated_at":"2023-02-21T05:15:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"7884ee41-f770-4825-8651-95e9ff3b01a7","html_url":"https://github.com/lenixbyte/django-restapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenixbyte%2Fdjango-restapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenixbyte%2Fdjango-restapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenixbyte%2Fdjango-restapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenixbyte%2Fdjango-restapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lenixbyte","download_url":"https://codeload.github.com/lenixbyte/django-restapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246054319,"owners_count":20716359,"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","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":["django-project","python3","rest-api"],"created_at":"2025-01-25T15:52:12.821Z","updated_at":"2025-03-28T15:34:24.602Z","avatar_url":"https://github.com/lenixbyte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Endpoints for Django RestApi Application\n\nThis project provides a REST API for an django rest api application that allows users to view and filter different types of works and register to the application using an API. The following endpoints are available:\n\n## View Works\n\n`GET /api/works`\n\nThis endpoint returns a list of all works in the application.\n\nResult:\n\n    {\n        \"status\": \"ok\",\n        \"data\": [\n            {\n            \"link\": \"https://www.youtube.com/watch?v=01\",\n            \"work_type\": \"youtube\"\n            },\n            ...\n        ]\n    }\n\nThis is a JSON object that contains a \"status\" field and a \"data\" field which include \"link\" \u0026 \"work_type\".\n\n### Filtering with Work Type\n\n`GET /api/works?work_type=\u003ctype\u003e`\n\nThis endpoint returns a list of works that match the specified type. The `work_type` parameter can be set to any valid work type such as \"youtube\", \"instagram\" in the database.\n\n    type: youtube, instagram, other\n\n### Search with Artist Name\n\n`GET /api/works?artist=\u003cartist name\u003e`\n\nThis endpoint returns a list of works that match the specified artist name.\n\n## Register User\n\n`POST /api/register`\n\nThis endpoint allows a user to register with the application by submitting a username and password in the request body. The following example shows how to use this endpoint:\n\nOnce user is created, it automatically created a new client object using signals.\n\nContent-Type: application/json\n\n    {\n        \"username\": \"testuser\",\n        \"password\": \"123123\"\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenixbyte%2Fdjango-restapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flenixbyte%2Fdjango-restapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenixbyte%2Fdjango-restapi/lists"}