Giter VIP home page Giter VIP logo

api_bearer_authentication1's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

source: https://www.youtube.com/watch?v=nrYg7ldwOzM&list=PLdTytUiloS14Ncm2egAwyh2gLPe_aaNF4&index=1

6e526a209927276120bf17c01c503aaa

curl -X GET localhost:3000/api/v1/home/index.json -H "Authorization: Bearer 6e526a209927276120bf17c01c503aaa"

curl -X GET localhost:3000/posts.json -H "Authorization: Bearer eab533196e3236e51a1964389f71b3ed"

curl -X GET localhost:3000/api/v1/posts.json -H "Authorization: Bearer bf0ca3233347bbb38b93faf101d59690"

curl -X DELETE -H "Content-Type: application/json" "localhost:3000/users/sign_out"

curl -X POST -H "Content-Type: application/json" -d '{"post": {"title": "via api"}}' localhost:3000/api/v1/posts -H "Authorization: Bearer 6e526a209927276120bf17c01c503aaa"

curl -X PATCH -H "Content-Type: application/json" -d '{"post": {"body": "yet another post11111"}}' localhost:3000/api/v1/posts/5 -H "Authorization: Bearer 6e526a209927276120bf17c01c503aaa"

curl -X DELETE -H "Content-Type: application/json" localhost:3000/api/v1/posts/5 -H "Authorization: Bearer 6e526a209927276120bf17c01c503aaa"

eab533196e3236e51a1964389f71b3ed

api_bearer_authentication1's People

Contributors

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