Skip to content

mathbraga/django-posts-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CRUD with Django

This is just a simple CRUD using Django.

To run locally run the following commands in the root directory:

pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

API usage

List all posts

GET - /careers/

Request body:

{}

Create new post

POST - /careers/

Request body:

{
    "username": "string",
    "title": "string",
    "content": "string"
}

Update a post

PATCH - /careers/{post_id}/

Only title and content can be updated.

Request body:

{
    "title": "string",
    "content": "string"
}

Delete a post

DELETE - /careers/{post_id}/

Request body:

{}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages