Giter Site home page Giter Site logo

client_api's Introduction

client_api

This is a Rest API to manage the clients of BHub. The project was built using Django and Django Rest Framework. The project is hosted at Heroku. And you can make yours requests using the following URL: https://bhub-client-api.herokuapp.com/clients/.

Documentation

The API's documentation is available here and it was created using Swagger.

Tests

Functional tests

You can make functional tests of this API sending request to https://bhub-client-api.herokuapp.com/clients/ using Postman or Insomnia. You can use the following JSON as an example for the POST and PUT method's tests.

{
    "company_name": "My company",
    "phone": "5571998989898",
    "address": {
        "address": "Rua Amaralina",
        "number": 780,
        "zip_code": "44000000",
        "city": "Salvador",
        "state": "Bahia",
        "country": "Brazil"
    },
    "registration_date": "1996-07-16",
    "declared_billing": 100000.20,
    "bank_accounts": [
        {
            "agency": "0002",
            "account_number": "000254",
            "bank": "Pag bank"
        }
    ]

}

Unit tests

To run the unit tests, you must fork or clone this repository, install all the dependencies (better use a virtual environment for that) and run the following command where there's the manage.py file:

python manage.py test

client_api's People

Contributors

luan-gomes 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.