Giter Site home page Giter Site logo

bookmark-rest-api's Introduction

Bookmark management system API

This is a Bookmark managment system built with Flask API

Overview

A bookmark API is a web-based application programming interface that allows users to manage their bookmarks. This API provides a set of endpoints that enable users to perform CRUD (Create, Read, Update, Delete) operations on their bookmarks.With a bookmark API, users can create, store, retrieve, update, and delete bookmarks. The bookmark API can be used in a variety of applications, such as web browsers, mobile apps, or bookmark manager tools. For example, a web browser can use the bookmark API to sync bookmarks across multiple devices, while a bookmark manager tool can use the API to provide a unified interface for managing bookmarks from different sources.

Security and privacy

Security is an important consideration for a bookmark API, as it involves sensitive user data. This API support authentication and authorization mechanisms to ensure that only authorized users can access and modify their bookmarks. Additionally, the API should use HTTPS encryption to secure the data in transit.

Screenshot (48) Screenshot (106) Screenshot (46) Screenshot (45) Screenshot (47)

Project setup

  • Flask Api Folder structure
  • Application Factory, .flaskenv
  • Flask API Blueprints
  • Database and Models setup
  • HTTP Status codes
  • User Registation
  • User Login
  • Route protection
  • Refreshing a token

Bookmark Section

  • Create and Retrieve records
  • Pagination for records
  • Retrive a single bookmark record
  • Updating a bookmark
  • Deleting a bookmark
  • User link click tracking
  • Error handling
  • Get link stats
  • Swagger Documentation

How to run this application locally

To install all the packages, run:

pip3 install -r requirements.txt

create a .flaskenv and include:

FLASK_APP=run
FLASK_ENV=development
FLASK_DEBUG=TRUE


Then run:

flask run

Website url

https://bra.devonaya.com/

Testing the server

Once started, you can navigate to http://127.0.0.1:5000/bookmark-api.json to view the Swagger Resource Listing. This tells you that the server is up and ready to demonstrate Swagger.

Using the UI

There is an HTML5-based API tool bundled in this sample--you can view it it at http://localhost:5000. This lets you inspect the API using an interactive UI. You can access the source of this code from here โ€‹

Resources

bookmark-rest-api's People

Contributors

onaya7 avatar

Watchers

 avatar

bookmark-rest-api's Issues

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.