G'iybat Partal API List

API list. Quyidagi API-lardan foydalangan holda o'zingiz G'iybat.uz ni Front qismini bajaring.
More information: giybat.uz
Contact Info: bigmangcom@gmal.com
Telegram: @Jumaniyazov_Bobur
Version: 1.0
Videohub: videohub.uz
Donate (uzcard) 8600 3029 1087 3204


Test Data

API-larni ishlatish uchun qiyidagi test user-lardan foydalanish mumkun.

Jigarlar quyidagi Test Profile-larni ma'lumotlarini o'zgartirib bo'lmaydi. Ammo siz o'zingiz boshqa Profile orqali ro'yhatdan o'tib bemalol uning ma'lumotlarini o'zgartirsa bo'ladi.

User

Admin


Post-lar

Partalda bor bo'lgan post-larni o'zgartirib bo'lmaydi. Ammo siz o'zigniz yangi post yaratib uni o'zgartirishingiz mumkun. Siz yozgan Post asosiy saxifada ko'rinmaydi. Uni Profile-ning post-laridan topasiz.

Shuningdek birovni postini o'zgaritib b'olmaydigan qilganmiz. Sababi boshqa foydalanuvchilar ishlab turgan bo'lsa uning post-larini o'zgartirib tashlamasliklari uchun.

API-larni ishlatish. Jigarlar API-larni ishlatishda o'zingiz bitta Profile orqali ro'yhatdan o'tib ishlaganiz ma'qul.



Methods

[ Jump to Models ]



Table of Contents

AttachController

AuthController

PostController

ProfileController



AttachController

Up
post /api/v1/g/attach/upload
Upload attach (create13)
Api used for upload attach

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body attach_upload_body (optional)
Body Parameter

Return type

AttachDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AttachDTO

Up
get /api/v1/g/attach/open/{fileName}
Open attach (open1)
Api used for open attach

Path parameters

fileName (required)
Path Parameter

Return type

byte[]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK byte[]




AuthController

Up
get /api/v1/g/auth/registration/email-verification/{token}
Email verification (emailVerification)
Api used for registration verification using email

Path parameters

token (required)
Path Parameter

Query parameters

lang (optional)
Query Parameter — default: UZ

Return type

String

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK String

Up
post /api/v1/g/auth/login
Login (Auth) api (login1)
Api used for log-in to system

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body AuthDTO (required)
Body Parameter

Request headers

Return type

ProfileDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK ProfileDTO

Up
post /api/v1/g/auth/registration
Profile registration (registration)
Api used for registration

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body RegistrationDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
post /api/v1/g/auth/reset-password
Reset Password (resetPassword1)
Api used for password reset

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ResetPasswordDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
post /api/v1/g/auth/reset-password-confirm
Reset Password Confirm (resetPassword2)
Api used for password reset confirm

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ResetPasswordConfirmDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
post /api/v1/g/auth/registration/sms-verification
Sms verification (smsVerification)
Api used for registration verification using sms

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SmsVerificationDTO (required)
Body Parameter

Request headers

Return type

ProfileDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK ProfileDTO

Up
post /api/v1/g/auth/registration/sms-verification-resend
Sms verification resend (smsVerificationResend)
Api used for resend sms verification code

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SmsResendDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString




PostController

Up
get /api/v1/g/post/public/{id}
Get Post by id (byId2)
Api returns post by id

Path parameters

id (required)
Path Parameter

Return type

PostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PostDTO

Up
get /api/v1/g/post/detail/private/{id}
Get Post by id. Only for owner (byIdForNotPublished)
Api returns post by id

Path parameters

id (required)
Path Parameter

Return type

PostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PostDTO

Up
post /api/v1/g/post
Create Post (create12)
Api used for post creation

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body PostCreateDTO (required)
Body Parameter

Return type

PostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PostDTO

Up
delete /api/v1/g/post/{id}
Delete Post by id (delete14)
Api used for deleting post

Path parameters

id (required)
Path Parameter

Return type

Boolean

Example data

Content-Type: application/json
true

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK Boolean

Up
post /api/v1/g/post/public/filter
Post public filter (filter10)
Api used for post filtering

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body PostFilterDTO (required)
Body Parameter

Query parameters

page (optional)
Query Parameter — default: 1 format: int32
size (optional)
Query Parameter — default: 10 format: int32

Return type

PagePostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PagePostDTO

Up
post /api/v1/g/post/filter
Post filter for admin (filter11)
Api used for filtering post list. Api for admin

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body PostAdminFilterDTO (required)
Body Parameter

Query parameters

page (optional)
Query Parameter — default: 1 format: int32
size (optional)
Query Parameter — default: 10 format: int32

Return type

PagePostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PagePostDTO

Up
get /api/v1/g/post/profile
Profile Post list (profilePostList1)
Get all profile post list

Query parameters

page (optional)
Query Parameter — default: 1 format: int32
size (optional)
Query Parameter — default: 12 format: int32

Return type

PagePostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PagePostDTO

Up
post /api/v1/g/post/public/similar
Get similar post list (similarPostList)
Api used for getting similar post list

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SimilarPostListDTO (required)
Body Parameter

Return type

array[PostDTO]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK

Up
put /api/v1/g/post/{id}
Update Post (update11)
Api used for post update

Path parameters

id (required)
Path Parameter

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body PostCreateDTO (required)
Body Parameter

Return type

PostDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PostDTO




ProfileController

Up
delete /api/v1/g/profile/{id}
Delete profile (delete13)
Api used for deleting profile

Path parameters

id (required)
Path Parameter — format: int32

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
post /api/v1/g/profile/filter
Profile filter (filter9)
Api used for filtering profile list

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfileFilterDTO (required)
Body Parameter

Request headers

Query parameters

page (optional)
Query Parameter — default: 1 format: int32
size (optional)
Query Parameter — default: 10 format: int32

Return type

PageImplProfileDTO

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK PageImplProfileDTO

Up
put /api/v1/g/profile/status/{id}
Change profile status (status)
Api used for changing profile status

Path parameters

id (required)
Path Parameter — format: int32

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfileStatusDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
put /api/v1/g/profile/detail
Update profile detail (updateDetail1)
Api used for update profile detail

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfileDetailUpdateDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
put /api/v1/g/profile/password
Update profile password (updatePassword1)
Api used for profile password update

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfilePasswordUpdateDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
put /api/v1/g/profile/photo
Update profile photo (updatePhoto1)
Api used for update profile photo

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfilePhotoUpdateDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
put /api/v1/g/profile/username
Update profile username (updateUsername)
Api used for profile username update

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ProfileUsernameUpdateDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString

Up
put /api/v1/g/profile/username/confirm
Update profile username confirm (updateUsernameConfirm)
Api used for confirm profile username update

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body CodeConfirmDTO (required)
Body Parameter

Request headers

Return type

AppResponseString

Example data

Content-Type: application/json
{
  "data" : "data",
  "message" : "message"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK AppResponseString




Models

[ Jump to Methods ]

Table of Contents

  1. AppResponseString
  2. AttachCreateDTO
  3. AttachDTO
  4. AuthDTO
  5. CodeConfirmDTO
  6. PageImplProfileDTO
  7. PagePostDTO
  8. PageableObject
  9. PostAdminFilterDTO
  10. PostCreateDTO
  11. PostDTO
  12. PostFilterDTO
  13. ProfileDTO
  14. ProfileDetailUpdateDTO
  15. ProfileFilterDTO
  16. ProfilePasswordUpdateDTO
  17. ProfilePhotoUpdateDTO
  18. ProfileStatusDTO
  19. ProfileUsernameUpdateDTO
  20. RegistrationDTO
  21. ResetPasswordConfirmDTO
  22. ResetPasswordDTO
  23. SimilarPostListDTO
  24. SmsResendDTO
  25. SmsVerificationDTO
  26. SortObject
  27. attach_upload_body

AppResponseString Up

data (optional)
message (optional)

AttachCreateDTO Up

id

AttachDTO Up

id
originName (optional)
size (optional)
Long format: int64
extension (optional)
createdData (optional)
Date format: date-time
url (optional)

AuthDTO Up

username
password

CodeConfirmDTO Up

code

PageImplProfileDTO Up

content (optional)
pageable (optional)
totalElements (optional)
Long format: int64
totalPages (optional)
Integer format: int32
last (optional)
size (optional)
Integer format: int32
number (optional)
Integer format: int32
sort (optional)
numberOfElements (optional)
Integer format: int32
first (optional)
empty (optional)

PagePostDTO Up

totalElements (optional)
Long format: int64
totalPages (optional)
Integer format: int32
size (optional)
Integer format: int32
content (optional)
number (optional)
Integer format: int32
sort (optional)
numberOfElements (optional)
Integer format: int32
pageable (optional)
first (optional)
last (optional)
empty (optional)

PageableObject Up

offset (optional)
Long format: int64
sort (optional)
paged (optional)
pageNumber (optional)
Integer format: int32
pageSize (optional)
Integer format: int32
unpaged (optional)

PostAdminFilterDTO Up

profileQuery (optional)
postQuery (optional)

PostCreateDTO Up

title
content
photo

PostDTO Up

id (optional)
title (optional)
content (optional)
photo (optional)
createdDate (optional)
Date format: date-time
profile (optional)
status (optional)
Enum:
PUBLISH
NOT_PUBLISH

PostFilterDTO Up

query (optional)
exceptId (optional)

ProfileDTO Up

id (optional)
name (optional)
surname (optional)
phone (optional)
password (optional)
status (optional)
Enum:
ACTIVE
REGISTRATION
NOT_ACTIVE
BLOCK
roles (optional)
Enum:
roleStr (optional)
createdDate (optional)
Date format: date-time
updatedDate (optional)
Date format: date-time
visible (optional)
photo (optional)
subjects (optional)
subjectStr (optional)

ProfileDetailUpdateDTO Up

name

ProfileFilterDTO Up

query (optional)
phone (optional)
role (optional)

ProfilePasswordUpdateDTO Up

currentPswd
newPswd

ProfilePhotoUpdateDTO Up

photoId (optional)

ProfileStatusDTO Up

status (optional)
Enum:
ACTIVE
BLOCK
IN_REGISTRATION

ProfileUsernameUpdateDTO Up

username

RegistrationDTO Up

name
username
password

ResetPasswordConfirmDTO Up

phone
code
newPassword
repeatNewPassword

ResetPasswordDTO Up

username

SimilarPostListDTO Up

exceptId

SmsResendDTO Up

phone

SmsVerificationDTO Up

phone
code

SortObject Up

direction (optional)
nullHandling (optional)
ascending (optional)
property (optional)
ignoreCase (optional)

attach_upload_body Up

file
byte[] format: binary