Git Product home page Git Product logo

minifb2's Introduction

About FB mini API

This is a simple onboarding API that contains the following endpoint:

AUTH

  • POST: [domain_name]/api/v1/register
  • POST: [domain_name]/api/v1/login

POST

  • GET: [domain_name]/api/v1/post
  • GET: [domain_name]/api/v1/post/{id}
  • DELETE: [domain_name]/api/v1/post/{id}
  • PUT: [domain_name]/api/v1/post/{id}
  • POST: [domain_name]/api/v1/post

COMMENT

  • GET: [domain_name]/api/v1/comment
  • GET: [domain_name]/api/v1/comment/{id}
  • DELETE: [domain_name]/api/v1/comment/{id}
  • PUT: [domain_name]/api/v1/comment/{id}
  • POST: [domain_name]/api/v1/comment

LIKE

  • GET: [domain_name]/api/v1/like
  • GET: [domain_name]/api/v1/like/{id}
  • PUT: [domain_name]/api/v1/like/{id}
  • POST: [domain_name]/api/v1/like

PROFILE

  • GET: [domain_name]/api/v1/profile/{id}
  • PUT: [domain_name]/api/v1/profile/{id}
  • POST: [domain_name]/api/v1/profile

FRIEND

  • GET: [domain_name]/api/v1/friend
  • GET: [domain_name]/api/v1/friend/{id}
  • PUT: [domain_name]/api/v1/friend/{id}
  • POST: [domain_name]/api/v1/friend
  • GET: [domain_name]/api/v1/find-friends/{id}

# Installation

How to install Laravel Passport?

$ composer require laravel/passport

$ php artisan migrate

$ php artisan passport:install

Please check the Laravel Passport link for more info.

Postman Collection

Please check the postman collection Postman Collection

How to test the endpoints?

  1. Use the Register endpoint to register a user
  2. Use the Login endpoint to login a user
  3. Succesful login will return an access_token
  4. In the endpoints header add keys and values Accept:application/json, Authorization:Bearer [access_token]
  5. For more information please read the postman documentation for each endpoints.

minifb2's People

Contributors

gmoncloud avatar

Watchers

Alex Bowers avatar  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.