Hi there, I'm Ahmet Tarık DUYAR Evrenomi 👋
AUTH
ADMİN
AUTHORS
BLOGS
USER
TEST
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 |
/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) |
Api DTO(data transform object)
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
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":"[email protected]",
"password":"12345678",
}
UserForRegisterDto |
|
Required |
Max |
Min |
string |
Nickname |
Yes |
20 |
3 |
string |
Email |
Yes |
45 |
10 |
string |
Password |
Yes |
20 |
8 |
{
"email":"[email protected]",
"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":"[email protected]",
"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 |
Email |
|
|
|
string |
AvatarUrl |
|
|
|
string |
Description |
|
|
|
{
"Id": 1,
"Nickname": "Azathoth",
"FirstName": "Test",
"LastName": "Metod",
"Email": "[email protected]",
"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
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
AddCommentForBlog |
|
Defualt |
Required |
Max |
Min |
int |
BlogId |
|
|
|
1 |
int |
ParentBlogCommentId |
null |
No |
|
|
string |
Text |
|
|
|
|
{
"blogId": 1
"ParentBlogCommentId": null
"text": "Gerecekten ilginç bir konu 🤔🤔",
}