Git Product home page Git Product logo

api-mear's Introduction

api-MeAR

MeAR 3Dで見るグルメレビューアプリのバックエンド

📗Document

セットアップ

ER図

erDiagram
    PROFILE ||--o| USER : "accout"
    CONNECTION }|..|{ PROFILE : "follower"
    CONNECTION }|..|{ PROFILE : "following"
    POST ||--o{ PROFILE : "author"
    POST ||--o{ PROFILE : "likes"
    POST ||--o{ RESTAURANT : "restaurant"
    POST ||--o{ TAG : "tags"
    POST ||--o{ COMMENT : "post"
    COMMENT ||--o{ PROFILE : "author"
    
    USER {
        BigAutoField id PK
        CharField password
        DateTimeField last_login
        BooleanField is_superuser
        DateTimeField created_on
        DateTimeField updated_on
        EmailField email
        BooleanField is_active
        BooleanField is_staff
    }
    PROFILE {
        BigAutoField id PK
        DateTimeField created_on
        DateTimeField updated_on
        CharField username
        ImageField img
    }
    CONNECTION {
        BigAutoField id PK
    }
    POST {
        BigAutoField id PK
        DateTimeField created_on
        DateTimeField updated_on
        CharField menu_name
        IntegerField score
        IntegerField price
        ImageField menu_photo
        FileField menu_model
        TextField review_text
        DateField visited_date
    }
    RESTAURANT {
        BigAutoField id PK
        CharField name
        FloatField lat
        FloatField lng
        CharField address
        CharField area
    }
    TAG {
        BigAutoField id PK
        DateTimeField created_on
        DateTimeField updated_on
        CharField tag
    }
    COMMENT {
        BigAutoField id PK
        DateTimeField created_on
        DateTimeField updated_on
        TextField comment
    }

エンドポイント

カテゴリ HTTPメソッド エンドポイント 説明
ユーザーアカウント管理 GET /account/ アカウント一覧取得
GET /account/{id} アカウント詳細取得
PUT /account/{id}/ アカウント更新
PATCH /account/{id}/ アカウント一部更新
DELETE /account/{id}/ アカウント削除
ログイン・新規登録 POST /account/ プロフィール情報を含めた新規ユーザを作成する
POST /login/ メールアドレスとパスワードで認証を行う
ユーザー情報管理 GET /account/me/ ログインユーザーのアカウント情報を取得する
PATCH /account/me/ メールアドレスを変更する
POST /account/me/change_password/ パスワードを変更する
プロフィール管理 GET /profile/ プロフィール一覧取得
GET /profile/{id}/ プロフィール詳細取得
PATCHE /profile/{id}/ プロフィール一部更新
GET /profile/me/ ログインユーザーのプロフィール取得
PATCH /profile/me/ ログインユーザーのプロフィール一部更新
フォロー機能 POST /profile/{id}/follow/ プロフィールのフォロー
DELEAT /profile/{id}/follow/ プロフィールのフォロー解除
トークン関連 POST /token/refresh/ refreshトークンを用いて再発行
POST /token/verify/ tokenが有効かどうかを確認
投稿管理 GET /post/ 投稿一覧取得
POST /post/ 投稿作成
GET /post/{id}/ 投稿詳細取得
PATCH /post/id}/ 投稿一部更新
DELETE /post/{id}/ 投稿削除
タグ GET /post/tags/ タグ一覧の取得
コメント GET /post/{id}/comment/ 投稿のコメントを取得
POST /post/{id}/comment/ 投稿にコメントを作成
いいね POST /post/{id}/like/ 投稿にいいねを追加
DELETE /post/{id}/like/ いいねを解除

api-mear's People

Contributors

fukuemon avatar

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.