Giter VIP home page Giter VIP logo

nkoe's Introduction

Nkoe

Nkoe means tiger in Sesotho ๐Ÿฏ

Python 3.7.x Flake8 Poetry

A basic aiohttp server which implement few endpoints. This project was made with educational purpose so those are some basic things.

About

Here it's a documentation made in postman.

As exercise you must add request with documentation for endpoint Add vaccine to a cat. You can choose any cat you want.

Installation

First you need some tools:
  1. A dependency manager: Poetry.
  2. For tests you will need Postman to perform requests.
Installation:
  1. Clone project locally;
  2. Install dependencies with poetry install;
  3. Take a look at .example.env to see if you must configure something;
  4. Now run server with the following command: poetry run server;

Postman Setup

I assume you already have installed and setup postman locally; Note I recommend to create a new workspace to avoid overwriting existing things!

For collection: Open postman and from left upper corner select import and then Import from link and put this link: https://www.getpostman.com/collections/33c1efb9969544146bf9.

For environment: In this repository you will find a folder named docs. Open postman select from left upper corner import and then Import folder and just drag and drop that folder.

For globals: From right upper corner click on that eye, go with mouse on globals row and press edit, in that table add a new row with: Variable = username, Initial value = [your name], Current Value = [leave it blank], and press save.

For local environment I suppose you will run your server on port 8080 and for qa on port 8081.

Endpoints

ENDPOINT METHOD DESCRIPTION
Base
.../ GET overview ๐Ÿ““
Auth
.../login/ POST Create token โž•
.../logout/ POST Delete token โž–
Cats
.../cats/ GET Get all cats ๐Ÿ˜ธ
.../cats/ POST Create new cat ๐Ÿ˜ป
.../cats/{cat_pk}/ GET Get info for a specific cat ๐Ÿฑ
.../cats/{cat_pk}/ PUT Update information about a cat ๐Ÿ˜ผ
.../cats/{cat_pk}/ DELETE Delete a cat ๐Ÿ˜ฟ
.../cats/{cat_pk}/vaccine POST Add a vaccine to a cat ๐Ÿ™€

nkoe's People

Contributors

senciucserban avatar serbansenciucspyhce avatar

Stargazers

 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.