Giter Club home page Giter Club logo

taggerfront's Introduction

.

Social

Tech Stack

angular react docker django unity bootstrap

taggerfront's People

Contributors

ameerezae avatar

Stargazers

 avatar

Watchers

 avatar

taggerfront's Issues

api

login:

  • url: "http://127.0.0.1:8000/authentication/login/"

  • method: "POST"

  • body:
    {
    "username": CharField,
    "password": PasswordField
    }

  • response:
    {
    HTTP 400 Bad Request
    "password" : [
    "این قسمت نمیتواند خالی باشد."
    ]
    "non_field_errors": [
    "ورود با مدارک ارائه شده امکان پذیر نیست.",
    "باید شامل "نام کاربری" و "گذرواژه" باشد."
    ]

    HTTP 200 OK
    "token": CharField ,
    "user": {
    "pk": IntegerField,
    "username": CharField,
    "email": EmailField,
    "first_name": CharField,
    "last_name": CharField
    }
    }

sign up:

  • url:"http://127.0.0.1:8000/authentication/registration/"
  • method:"POST"
  • body:
    {
    "username": CharField,
    "email": EmailField,
    "password1": PasswordField,
    "password2": PasswordField,
    "phone_number": CharField
    }
  • response:
    {
    "username": [
    "این قسمت نمیتواند خالی باشد.",
    "کاربری با آن نام کاربری وجود دارد.,"
    ],
    "email": [
    "این قسمت نمیتواند خالی باشد.",
    "کاربر قبلاً با این آدرس ایمیل ثبت شده است.",
    "یک ایمیل آدرس معتبر وارد کنید."
    ],
    "password1": [
    "این قسمت نمیتواند خالی باشد.",
    "این رمز عبور خیلی کوتاه است. رمز عبور می‌بایست حداقل از 8 حرف تشکیل شده باشد.",
    "این رمز عبور بسیار رایج است.",
    "رمز شما کلا عدد است",
    ],
    "password2": [
    "این قسمت نمیتواند خالی باشد."
    ],
    "phone_number": [
    "این قسمت نمیتواند خالی باشد."
    ]
    "non_field_errors": [
    "دو قسمت رمز عبور مطابقت ندارند."
    ]
    }

profile:

  • url: "http://127.0.0.1:8000/authentication/profile/"
  • method: "PUT","GET"
  • headers:
    {
    Authorization: "JWT JWTTOKEN"
    }
  • GET response:
    {
    "username": CharField
    "first_name": CharField,
    "last_name": CharField,
    "email": EmailField,
    "image": url,
    "birthday": DateField,
    "phone_number": CharField,
    "gender": IntegerField,
    "grade": IntegerField,
    "university": CharField,
    "entering_year": DateField,
    "graduate_year": DateField,
    "bio": TextField,
    "id_code": IntegerField,
    "social_account": JSONField
    }
  • PUT body:
    {
    "username": CharField
    "first_name": CharField,
    "last_name": CharField,
    "email": EmailField,
    "image": url,
    "birthday": DateField,
    "phone_number": CharField,
    "gender": IntegerField,
    "grade": IntegerField,
    "university": CharField,
    "entering_year": DateField,
    "graduate_year": DateField,
    "bio": TextField,
    "id_code": IntegerField,
    "social_account": JSONField
    }

user:

  • url: "http://127.0.0.1:8000/authentication//"
  • method: "GET"
  • headers:
    {
    Authorization: "JWT JWTTOKEN"
    }
  • response:
    {
    "username": CharField
    "first_name": CharField,
    "last_name": CharField,
    "email": EmailField,
    "image": url,
    "phone_number": CharField,
    "social_account": JSONField
    }

check username

logout

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.