taggerfront's Introduction
taggerfront's People
taggerfront's Issues
api
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
-
method: "POST"
-
body:
{
"username": CharField
} -
response:
{
HTTP 200 OK
"detail": trueHTTP 404 Not Found
"detail": false
}
logout
- url: "http://127.0.0.1:8000/authentication/logout/"
- method: "GET"
- headers:
{
Authorization: "JWT JWTTOKEN"
} - response:
{
HTTP 200 OK
"detail": "با موفقیت خارج شد."
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.