GithubHelp home page GithubHelp logo

dot-test's Introduction

DOT-test

struktur folder

├── dump.rdb
├── media
├── src
│   ├── app
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── __init__.cpython-36.pyc
│   │   │   ├── admin.cpython-36.pyc
│   │   │   ├── apps.cpython-36.pyc
│   │   │   ├── models.cpython-36.pyc
│   │   │   ├── router.cpython-36.pyc
│   │   │   └── views.cpython-36.pyc
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── migrations
│   │   │   ├── 0001_initial.py
│   │   │   ├── __init__.py
│   │   │   └── __pycache__
│   │   │       ├── 0001_initial.cpython-36.pyc
│   │   │       └── __init__.cpython-36.pyc
│   │   ├── models.py
│   │   ├── router.py
│   │   ├── serializers
│   │   │   ├── __pycache__
│   │   │   │   ├── comment.cpython-36.pyc
│   │   │   │   ├── replies.cpython-36.pyc
│   │   │   │   └── user.cpython-36.pyc
│   │   │   ├── comment.py
│   │   │   ├── replies.py
│   │   │   └── user.py
│   │   ├── tests.py
│   │   └── views
│   │       ├── __pycache__
│   │       │   ├── comment.cpython-36.pyc
│   │       │   └── replies.cpython-36.pyc
│   │       ├── comment.py
│   │       └── replies.py
│   ├── config
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── __init__.cpython-36.pyc
│   │   │   ├── settings.cpython-36.pyc
│   │   │   ├── urls.cpython-36.pyc
│   │   │   └── wsgi.cpython-36.pyc
│   │   ├── asgi.py
│   │   ├── settings.py
│   │   ├── urls.py
│   │   └── wsgi.py
│   ├── db.sqlite3
│   ├── helper
│   │   ├── __pycache__
│   │   │   └── pagination.cpython-36.pyc
│   │   └── pagination.py
│   ├── manage.py
│   └── middleware
│       ├── __pycache__
│       │   └── middleware_response.cpython-36.pyc
│       └── middleware_response.py
├── static
└── templates
└── .env

keterangan

** src smua app dimasukkan ke dalam folder ini

** helper berisi smua file pembantu

** middleware berisi file untuk mnyamakan format reponse api

** .env file untuk enviroment agar lebih mudah di gunakan oleh beberapa dev

format api yang biasa saya gunakan


  [1] success 
      {
        "data": {
          "results": [
          ],
          "meta": {
            "current_page": 1,
            "next_page": null,
            "previous_page": null,
            "count": 1
          }
        },
        "message": "Success",
        "status": 200,
        "success": true
      }

  [2] failed
      {
        "data":{
           "status": 400,
           "success": false,
           "message": "The failed message",
           "result": {}
        }        
      }

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.