https://github.com/ptyadana/django-rest-api-course-info
simple REST API for course info - to reterive the list, create, update, delete course
https://github.com/ptyadana/django-rest-api-course-info
django django-application django-project django-rest-framework django3 json python3 rest rest-api simple
Last synced: 7 months ago
JSON representation
simple REST API for course info - to reterive the list, create, update, delete course
- Host: GitHub
- URL: https://github.com/ptyadana/django-rest-api-course-info
- Owner: ptyadana
- License: mit
- Created: 2020-03-21T10:48:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T03:46:33.000Z (over 5 years ago)
- Last Synced: 2025-01-15T15:54:18.871Z (9 months ago)
- Topics: django, django-application, django-project, django-rest-framework, django3, json, python3, rest, rest-api, simple
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Course Info REST API Project
A simple REST API for getting the lists of books information, creating, updating and deleting one using
+ Python 3
+ Django 3
+ Django REST framework### Endpoints
```/courses``` GET: get all books```/courses``` POST: create new book
```/courses/id``` PUT/PATCH: update the book (/courses/1)
```/courses/id``` DELETE: delete the book (/courses/1)
#### Sample JSON
```javascript
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept[
{
"id": 1,
"url": "http://localhost:8000/courses/1/",
"name": "Python Programming for everyone",
"langauge": "Python",
"price": "$49"
},
{
"id": 2,
"url": "http://localhost:8000/courses/2/",
"name": "Ruby for everyone",
"langauge": "Ruby",
"price": "$30"
},
{
"id": 3,
"url": "http://localhost:8000/courses/3/",
"name": "Javascript for beginner",
"langauge": "Javascript",
"price": "$49"
},
{
"id": 4,
"url": "http://localhost:8000/courses/4/",
"name": "React for newbie",
"langauge": "react",
"price": "10"
}
]
```