Skip to content

HabibUllahKhanBarakzai/article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All the Five services Postgres, Web, Celery Worker, Celery Beat and Redis are containerized.

  1. Run "docker-compose build".
  2. Run "docker-compose up".
  3. After your services are up you will have to run migrations, so run the command "docker exec -it app_web_1 python manage.py migrate".

Register API's

  1. Writer Register API, Endpoint: api/v1/register/writer/ payload: {

    "email": "test@test.com", "password": "testing", "first_name": "test",#Optional "last_name": "test"#Optional

    }

  2. Editor Register API,
    Endpoint: api/v1/register/editor/ method: POST
    payload: {

    "email": "test@test.com",
    "password": "testing",
    "first_name": "test",#Optional
    "last_name": "test"#Optional


    }

  3. Get Token API, (I have used JWT token authentication)
    method: POST
    Endpoint : api/v1/auth/token/obtain/
    payload : {
    "email": "test@test.com",
    "password": "testing"
    }

  4. Article API,
    method: POST
    endpoint: api/v1/publication/article/
    Headers: {"Authorization": "JWT {JWT_TOKEN}"}
    payload: {"name": "Coronavirus Pandemic", "status": "in_progress", "google_doc_link": "www.test.com"} # status and google doc link are optional

    method: Patch
    payload: Any Field on Article Model


The cronjob will run every five seconds and chec fo open articles with google doc link and mark them in review.

SSH link is also added

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors