Giter VIP home page Giter VIP logo

centreon_todo_test's Introduction

Basic REST todo app coding test

Basic REST todo app coding test. Not made to but a complete product but only an initial step basic step. Made using Flask-RESTful.

To run locally, go in the folder after cloning and run pip install requirements.txt and then python api.py

You can then, by default, hit the API on localhost:5000.

API structure

Task return object

{
    "uuid": "e59e10d1-c988-4028-80d7-16cfe5436609",
    "title": "title",
    "comment": "comment",
    "created_at": "2022-04-15T19:57:22.163954",
    "last_updated": "2022-04-15T20:23:28.929640",
    "done": true
}

/todo

GET - Returns the list of tasks that have not been done/finished.

/tasks

GET - Returns the list of all tasks done or not. POST - Create a new task to do with a title and comment

{
    "title": "title",
    "comment": "comment"
}

/tasks/<task_id>

GET - Returns the task matching the uuid provided PUT - Updates the task matching the uuid provided (all fields are optional)

{
    "title": "title",
    "comment": "comment",
    "done": true
}

DELETE - Deletes the task matching the uuid provided

centreon_todo_test's People

Contributors

backisbachus avatar

Watchers

 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.