GithubHelp home page GithubHelp logo

evrenomi's Introduction

Hi there, I'm Ahmet Tarık DUYAR Evrenomi 👋

Api Methods

AUTH
ADMİN
AUTHORS
BLOGS
USER
TEST

AUTH

HTTP Methods Url Authorize Response Request
POST /auth/login Token UserForLoginDto
POST /auth/register Token UserForRegisterDto

ADMİN

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)

AUTHORS

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

BLOGS

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

USER

HTTP Methods Url Authorize Response Request
GET /users/getMyProfil Me UserDetailDto
POST /users/updateUser Me UserDetailDto UserDetailDto
POST /users/updateUserPp Me ABCD1.jpg IFormFile

TEST

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

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

UserForLoginDto Required Max Min
string EmailOrNickname Yes 45 3
string Password Yes 20 8
{
    "emailOrNickname":"[email protected]",
    "password":"12345678",
}

UserForRegisterDto

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

ErrorResponseDto Required Max Min
string Operation
string ErrorMessages
{
    "operation": "Register",
    "errorMessages": "Kullanıcı Zaten Kayıtlı"
}

OperationClaim

OperationClaim Required Max Min
int Id
string Name
{
    "id": "1",
    "name": "Admin"
}

OperationClaimToUserDto

OperationClaimToUserDto Required Max Min
UserForLoginDto userForLoginDto
OperationClaim operationClaim
{
    "userForLoginDto":{
        "email":"[email protected]",
        "password":"12345678"
    },
    "operationClaim":{
        "id":1,
        "name":"Admin"
    }
}

BlogDetailDto

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

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

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

UserSummaryDto Required Max Min
int Id
string Nickname
string AvatarUrl
{
    "Id": 1,
    "Nickname": "Azathoth",
    "AvatarUrl": "url"
}

AuthorForRegister

AuthorForRegister Required Max Min
int UserId
string AuthorName
string AuthorAvatarUrl
string AuthorDescription
{
    "UserId": 1,
    "AuthorName": "Azathoth",
    "AuthorAvatarUrl": "url",
    "AuthorDescription": "VOID"
}

BlogPageFilter

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 🤔🤔",
}



My work:

My first flutter project Giftnator Giftnator


evrenomi's People

Contributors

atduyar avatar

Stargazers

 avatar

Watchers

 avatar

evrenomi's Issues

Evrenomi.com

  • Add Readme with fotos
  • Write about project architecture and decisions
  • relaunch the site
  • Fix some issues

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.