Giter Site home page Giter Site logo

one_five's Introduction

Flask CRUD APIs

Description

This project provides a set of CRUD (Create, Read, Update, Delete) APIs implemented in Python using the Flask framework. These APIs allow users to perform CRUD operations on a resource, such as users in this case.

Accessing the APIs

The APIs can be accessed using the following base URL: https://five-one-flask.onrender.com/

Endpoints

  • GET /users: Retrieve all users.
  • GET /users/<user_id>: Retrieve a specific user by ID.
  • POST /users: Create a new user.
  • PUT /users/<user_id>: Update a user's information by ID.
  • DELETE /users/<user_id>: Delete a user by ID.

Usage

  • To retrieve all users: GET /users
  • To retrieve a specific user: GET /users/<user_id>
  • To create a new user: POST /users with JSON data containing the user's information.
  • To update a user: PUT /users/<user_id> with JSON data containing the updated user's information.
  • To delete a user: DELETE /users/<user_id>

Response Format

  • Successful requests will return a JSON response with the appropriate status code.
  • Error responses will include a JSON object with an error message and an appropriate status code.

Sample Request (using cURL)

  • Create a new user:
curl -X POST -H "Content-Type: application/json" -d '{"username": "example_user", "email": "[email protected]"}' https://five-one-flask.onrender.com/users

Technologies Used

  • Python
  • Flask

Deployment

The project is deployed on Render at https://five-one-flask.onrender.com/

one_five's People

Contributors

harshgarg28 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.