Skip to content

microbo-ru/git-pay-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how to start api

cd api
export FLASK_APP=api.py FLASK_ENV=development

flask run

OpenAPI (swagger) Generator

To generate API it's necessary to perform following steps:

  1. Install the generator
> npm install @openapitools/openapi-generator-cli -g
  1. Once you need to re-generate (the server) do the following operations:
> npx openapi-generator generate -i openapi.yaml -g python-flask
  1. By the same way a client proxy could be also generated
> npx openapi-generator generate -i openapi.yaml -g typescript-axios

GET: /user -> return user info GET: /users/{username} -> return for the specidic user
POST: /mark_pull -> by owner POST: /assign_pull -> by user/dev POST: /change_user_status GET: /pulls -> return all existing pulls GET: /pulls/{pullId} -> return by specific pull GET: /user_pulls -> owner's pulls

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages