Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Specify the API using swagger #811

Open
arschles opened this issue Jun 10, 2016 · 5 comments
Open

Specify the API using swagger #811

arschles opened this issue Jun 10, 2016 · 5 comments

Comments

@arschles
Copy link
Member

This issue is for investigating swagger server stub code generators for Python & Django Rest Framework, and then if there is a suitable one that won't require a large refactor of this codebase, doing the following:

  1. Writing a swagger specification for the controller's full API
  2. Generating server stubs and refactoring this codebase into the stubs
  3. Generate the Go client bindings in deis/builder and deis/workflow-cli (each to be done in a separate issue in the respective repository)
    1. The changes in deis/workflow-cli may move to a new repo if Pull the code client code into a Go SDK workflow-cli#18 is completed first
@helgi
Copy link
Contributor

helgi commented Jun 10, 2016

You are duplicating yourself, up to you which one you keep open

#289

@arschles
Copy link
Member Author

Ugh sorry. Closing the other one since this one is more specific

@jgmize
Copy link
Contributor

jgmize commented Jun 11, 2016

https://github.com/marcgibbons/django-rest-swagger may be helpful for this

@helgi
Copy link
Contributor

helgi commented Jun 11, 2016

Already tried it - doesn't work and isn't maintained :(

Our best bet is Marshmallow (a schema / serializer like project) and the DRF integration for that. Marshmallow has swagger and json API support as well.

Looks like DRF 3.0 is going to have Core API support (sponsored by Mozilla) but it may not be ready anytime soon

helgi added a commit to helgi/controller that referenced this issue Sep 15, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
@helgi helgi self-assigned this Sep 15, 2016
helgi added a commit to helgi/controller that referenced this issue Sep 15, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
@helgi
Copy link
Contributor

helgi commented Sep 15, 2016

helgi added a commit to helgi/controller that referenced this issue Sep 15, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
helgi added a commit to helgi/controller that referenced this issue Oct 4, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
helgi added a commit to helgi/controller that referenced this issue Oct 4, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
helgi added a commit to helgi/controller that referenced this issue Oct 4, 2016
Content Type for it is application/openapi+json or ?format=openapi

Closes deis#811
duanhongyi pushed a commit to duanhongyi/workflow that referenced this issue Dec 4, 2018
ref(LICENSE): switch to MIT license
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants