Hi there, I'm Ahmet Tarık DUYAR Evrenomi 👋
AUTH
ADMİN
AUTHORS
BLOGS
USER
TEST
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
POST | /auth/login | Token | UserForLoginDto | |
POST | /auth/register | Token | UserForRegisterDto |
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
POST | /admin/setOperationClaimToUser | Admin | OK | OperationClaimToUserDto |
POST | /admin/deleteOperationClaimToUser | Admin | OK | OperationClaimToUserDto |
POST | /admin/addAuthor | Admin | AuthorForRegister | |
GET | /admin/getUser | Admin | UserDetailDto | ?userId=(int) |
GET | /admin/getBlog | Admin | BlogDetailDto | ?blogId=(int) |
GET | /admin/getAllUser | Admin | List<UserSummaryDto> | |
GET | /admin/getAllBlog | Admin | List<BlogSummaryDto> | |
GET | /admin/getAllBlogByStatus | Admin | List<Blog> | ?status=(int) |
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
GET | /authors/getAllAuthor | Auth | List | |
GET | /authors/getAuthor | Author | Author | ?authorId=(int) |
GET | /authors/getAuthor | Author | Author | ?authorId=(int) |
POST | /authors/getAuthorAccount | Auth | OK | AuthorForRegister |
POST | /authors/postBlog | Author | OK | BlogDetailDto |
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
GET | /blogs/getBlog | HtmlPage | ?id=(int) | |
GET | /blogs/getBlogComment | List<CommentForBlog> | ?blogId=(int) | |
GET | /blogs/getBlogCommentResponse | List<CommentForBlog> | ?blogCommentId=(int) | |
POST | /blogs/getbypage | Auth | List<BlogSummaryDto> | BlogPageFilter |
POST | /blogs/addBlogComment | Auth | OK | AddCommentForBlog |
POST | /blogs/updateBlogComment | Auth | OK | CommentForBlog |
POST | /blogs/deleteBlogComment | Auth | OK | CommentForBlog |
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
GET | /users/getMyProfil | Me | UserDetailDto | |
POST | /users/updateUser | Me | UserDetailDto | UserDetailDto |
POST | /users/updateUserPp | Me | ABCD1.jpg | IFormFile |
HTTP Methods | Url | Authorize | Response | Request |
---|---|---|---|---|
GET | /tests/admin | Admin | "Sen Admin Sin" | |
GET | /tests/auth | Authorize | "Sen Giris Yapmıs Sın" | |
POST | /tests/postUser | Authorize | "NickName = {Nickname} Email = {Email} :D" | UserForRegisterDto |
GET | /tests/getUser | Authorize | UserForRegisterDto | |
GET | /tests/getUserId | Authorize | "Sen in id'in = {Id} :D" | |
POST | /tests/postComment | Comment | Comment | |
GET | /tests/getComment | Comment | ||
GET | /tests/okComment | Comment | ||
GET | /tests/badRequestComment | 400(Comment) |
Token
Comment
UserForLoginDto
UserForRegisterDto
ErrorResponseDto
OperationClaim
OperationClaimToUserDto
BlogDetailDto
BlogSummaryDto
UserDetailDto
UserSummaryDto
Token | Required | Max | Min | |
---|---|---|---|---|
string | token | |||
DateTime | expiration |
{
"token": "eyJhbGciOiJodH...",
"expiration": "2020-11-25T18:09:24.5477551+03:00"
}
Comment | Required | Max | Min | |
---|---|---|---|---|
string | text |
{
"text":"Merhaba Dünya."
}
UserForLoginDto | Required | Max | Min | |
---|---|---|---|---|
string | EmailOrNickname | Yes | 45 | 3 |
string | Password | Yes | 20 | 8 |
{
"emailOrNickname":"test@gmail.com",
"password":"12345678",
}
UserForRegisterDto | Required | Max | Min | |
---|---|---|---|---|
string | Nickname | Yes | 20 | 3 |
string | Yes | 45 | 10 | |
string | Password | Yes | 20 | 8 |
{
"email":"test@gmail.com",
"password":"12345678",
"nickName":"Test"
}
ErrorResponseDto | Required | Max | Min | |
---|---|---|---|---|
string | Operation | |||
string | ErrorMessages |
{
"operation": "Register",
"errorMessages": "Kullanıcı Zaten Kayıtlı"
}
OperationClaim | Required | Max | Min | |
---|---|---|---|---|
int | Id | |||
string | Name |
{
"id": "1",
"name": "Admin"
}
OperationClaimToUserDto | Required | Max | Min | |
---|---|---|---|---|
UserForLoginDto | userForLoginDto | |||
OperationClaim | operationClaim |
{
"userForLoginDto":{
"email":"test@gmail.com",
"password":"12345678"
},
"operationClaim":{
"id":1,
"name":"Admin"
}
}
BlogDetailDto | Required | Max | Min | |
---|---|---|---|---|
int | BlogId | |||
int | authorId | |||
string | blogDate | |||
string | blogTitle | |||
string | blogTitlePhotoUrl | |||
string | BlogTblogSideTitleags | |||
string | blogContent | |||
string | blogTags |
{
"blogId": 1,
"authorId": 1,
"blogDate": "2020-01-11T00:00:00",
"blogTitle": "Baskık",
"blogTitlePhotoUrl": "url",
"blogSideTitle": "BaskıkYan",
"blogContent": "Test yazisi 123",
"blogTags": "Bilim"
}
BlogSummaryDto | Required | Max | Min | |
---|---|---|---|---|
int | BlogId | |||
string | AuthorName | |||
string | BlogTitle | |||
string | BlogTitlePhotoUrl | |||
string | BlogTags | |||
string | BlogDate |
{
"blogId": 1,
"authorName": "Azathoth",
"blogTitle": "Baskık",
"blogTitlePhotoUrl": "url",
"blogTags": "bilim",
"blogDate": "2020-01-11T00:00:00",
"views": 3,
"readed": true
}
UserDetailDto | Required | Max | Min | |
---|---|---|---|---|
int | Id | |||
string | Nickname | |||
string | FirstName | |||
string | LastName | |||
string | ||||
string | AvatarUrl | |||
string | Description |
{
"Id": 1,
"Nickname": "Azathoth",
"FirstName": "Test",
"LastName": "Metod",
"Email": "test@gmail.com",
"AvatarUrl": "url"
"Description": "Ben bu siteye katıt oldum"
}
UserSummaryDto | Required | Max | Min | |
---|---|---|---|---|
int | Id | |||
string | Nickname | |||
string | AvatarUrl |
{
"Id": 1,
"Nickname": "Azathoth",
"AvatarUrl": "url"
}
AuthorForRegister | Required | Max | Min | |
---|---|---|---|---|
int | UserId | |||
string | AuthorName | |||
string | AuthorAvatarUrl | |||
string | AuthorDescription |
{
"UserId": 1,
"AuthorName": "Azathoth",
"AuthorAvatarUrl": "url",
"AuthorDescription": "VOID"
}
BlogPageFilter | Defualt | Required | Max | Min | |
---|---|---|---|---|---|
int | PageSize | 10 | |||
int | PageNumber | 1 | No | 50 |
{
"PageSize": 50,
"PageNumber": 1,
}
CommentForBlog | Defualt | Required | Max | Min | |
---|---|---|---|---|---|
int | CommentId | ||||
int | CommentResponse | 0 | 50 | ||
string | UserId | ||||
string | UserAvatarUrl | ||||
string | UserNickname | ||||
string | CommentDate | ||||
string | Text |
{
"commentId": 1,
"commentResponse": 2,
"userId": 1,
"userAvatarUrl": "FDRE2.jpg",
"userNickname": "Atduyar",
"commentDate": "1 gün önce",
"text": "Gerecekten ilginç bir konu 🤔🤔"
}
AddCommentForBlog | Defualt | Required | Max | Min | |
---|---|---|---|---|---|
int | BlogId | 1 | |||
int | ParentBlogCommentId | null | No | ||
string | Text |
{
"blogId": 1
"ParentBlogCommentId": null
"text": "Gerecekten ilginç bir konu 🤔🤔",
}