Giter Club home page Giter Club logo

rentacar's Introduction

RentACar

How it works?


Firstly, you should add new account. You can use IndividualCustomer add or CorporateCustomer add methods.

image

After that, go to Postman and send the Post request for login the application.

image

You can see access_token and refresh_token. Copy the access_token. For developers and for test you can use this token:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJoZXJva3VAZGVuZW1lLmNvbSIsInJvbGVzIjpbXSwiaXNzIjoiL2FwaS9sb2dpbiIsImV4cCI6OTk5OTk5OTk5OX0._ZLavBl5bO9ccc8apM2kqgOfzHxEIFHnUo6dylXyOB0

This token intentionally embedded in the code.

Then, click Authorize button in Swagger UI.

image

Paste access_token to Swagger Authorize popup. After that click Authorize!

image

Here you go! You can send any requests. Don't forget, if it is 403 Forbidden (such as updateRentalCars method. It is not allowed for every user, you should have "ROLE_ADMIN" role to access it) add roles to user.

rentacar's People

Contributors

yasemingerboga avatar

Stargazers

Onur Akkepenek avatar Zeyneb Eda YILMAZ avatar Orhan İNAÇ avatar Mustafa Batuhan Bayoğlu avatar Eda Çam 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.