Comments (4)
This project tends to provide a 'dynamic' client for Swagger (Open API). 'Dynamic' means you don't have to generate any static code to use your API, the library itself can be used as a 'generic' client for any Swagger (Open API) powered service. (Only supports 1.2 and 2.0 so far)
You can go through Quick Start for a basic usage of this project, and if you still have any further question, feel free to raise them here.
from pyswagger.
Thanks mission-liao.
the dynamic client is so cool and I can use it to create a client fast.
But If I want to provide a classic SDK to my users, is there any other method?just like:
api01.py:
get, post, del ....
just like the swagger-codegen written by java.
from pyswagger.
@LouisZou sorry that we didn't provide any codegen tool, but you can still create a custom client based on this project (except those issues you opened), it should be easier to create one on your own.
The way to access an Operation Object is just somewhat cumbersome, but spec-compliant. To make it easier for your customer to access your API, I would suggest you to fulfill 'operationId' for each Operation Object you provide, or you would need to provide JSON Reference to access them.
from pyswagger.
No more update on this case, reopen once more action is required.
from pyswagger.
Related Issues (20)
- Attribute error while making a request with swagger spec 2.0 HOT 2
- Unable to access api/v2/openapi.yaml HOT 1
- Way to 'post' request programmatically
- pyswagger.App has no __create__ method
- Incorrect URL for Travis for build status widget
- url_scheme does not respect selected scheme when loading from local file.
- ValueError: invalid obj passed <class 'list'> from spec/base.py
- Normalize URLs before executing request HOT 1
- Change from pop to get when patching requests
- Parsing error?
- Issue with Basic authentication HOT 1
- requests.Session is not properly closed
- How to upload file? HOT 1
- Accept a urllib.requests.Request instead of a string in App.load HOT 2
- Default values shall not be automatically employed in requests
- Allow lenient loading of the API HOT 1
- What is the future of pywagger ? HOT 4
- Should use yaml.safe_load() HOT 1
- 2 arguments needed in create function HOT 1
- Python 3.10 removed `MutableMapping` from `collections` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyswagger.