Skip to content

Order-Api is a simple REST API used to upload customers orders built with Django Rest Framework..This project was for leveling up on Test-driven development and CI/CD https://backend-challenge5.herokuapp.com/oidc/authenticate/

Notifications You must be signed in to change notification settings

EUGINELETHAL/Order-Api

Repository files navigation

Build Status Coverage Status

ORDER-API

..Order-Api is a simple REST API used to upload customers orders.

..User Stories

Users authenticates via OAUTH2 and OpenidCOnnect(GOogleOAuth 2.0 )
Customer creates order
Customers gets message after order created sucessfully(Asynchronous Task)

Tools and Technologies

  1. Django
  2. DjangoRest
  3. Travis(CI/CD)
  4. Heroku-Deployment
  5. AfricaisTalking-(SMSGATEWAY)
  6. Coverage
  7. Celery
  8. Redis
  9. Pytest
  10. Docker
  11. Docker-Compose

API ENDPOINTS

Run in Postman

Question Endpoints.

API Endpoint Description Methods
/oidc/authenticate/ Authentication GET
/api/v1/customer create customer POST
/api/v1/order Get all orders GET
/api/v1/order Customer posts order POST

Getting Started

To get started: Git clone the repository using https://github.com/EUGINELETHAL/Backend-challenge For the API to run smoothly you will need the following:

1. Python 3.6 or higher installed.
2. Pip3
3. Pipenv or virtualenv installed.

Installing

Local Development Guide.

  1. Git clone the repository using
  2. Through your terminal, navigate to the location with the cloned repository.
  3. Open the cloned repo folder using your terminal.
  4. You're currently on the main branch.

Running the tests

pytest

Style Guide.

PEP 8

Deployment

Heroku

Built With

  • Django and Django Rest Framework

Authors

  • Ochung Eugine.

Releases

No releases published

Packages

No packages published