Code Monkey home page Code Monkey logo

flask_echo_server's Introduction

flask_echo_server

프론트엔드에서 json 형태의 데이터가 올바르게 넘어가고 있는지 확인하기 위한 서버입니다.

how to use

git clone https://github.com/rohsik2/flask_echo_server
cd flask_echo_server
pip3 install -r requirements.txt
python3 ./echo.py

이후 아무 경로로 아무 method를 호출해서 보내시면 됩니다.

request Example

POST /aa HTTP/1.1

{
    "this" : "is json"
}

response Example

{
    "body": "{\n    \"this\" :\"is json\"\n}",
    "method": "POST",
    "path": "aa",
    "request": {
        "this": "is json"
    }
}

flask_echo_server's People

Contributors

rohsik2 avatar

Watchers

 avatar

flask_echo_server's Issues

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test the code to ensure it is working as expected.

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

You should use the flask-cors library to handle CORS requests.
2. You should use the flask-restful library to handle RESTful requests.
3. You should use the flask-jsonify library to handle JSON responses.
4. You should use the flask-request library to handle request data.
5. You should use the flask-response library to handle response data.

filename : /testing.py

Make sure to use the correct syntax when writing your code.
2. Test your code thoroughly before submitting it.
3. Make sure to use descriptive variable names.
4. Use comments to explain what your code is doing.
5. Use proper indentation to make your code easier to read.

[DevRoad] Comment By GPT

안녕하세요! 데브로드에서 보내드리는 피드백 입니다! 수정하시면서 코멘트를 달아보세요! 피어 리뷰어들이 봐줄거에요!

// 사용자가 적었던 설명들

// 챗 지피티가 설명

// 챗 지피티의 피드백

// 모범답안 링크

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test the code to ensure it is working as expected.

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test the code to ensure it is working as expected.

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test your code thoroughly to ensure it works as expected.

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test the code to ensure it is working as expected.

Code Review from DevRoad

Code Summary

filename : /echo.py

This code is a simple Flask application that allows for Cross-Origin Resource Sharing (CORS) requests. It handles requests for any HTTP method, including GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS

filename : /testing.py

This code tests whether 3 is equal to 4. Since it is not, the test will fail.

Code Review

filename : /echo.py

  1. Use a consistent indentation style throughout your code.

  2. Use descriptive variable names to make your code more readable.

  3. Use comments to explain the purpose of your code.

  4. Use a consistent naming convention for functions and variables.

  5. Use a linter to check for errors and potential problems in your code.

filename : /testing.py

  1. Use more descriptive variable names.
  2. Add comments to explain the purpose of the code.
  3. Break up long lines of code into smaller, more manageable chunks.
  4. Use consistent indentation and spacing.
  5. Test the code to ensure it is working as expected.

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.