Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API documentation #2684

Closed
cebe opened this issue Mar 10, 2014 · 12 comments
Closed

REST API documentation #2684

cebe opened this issue Mar 10, 2014 · 12 comments

Comments

@cebe
Copy link
Member

cebe commented Mar 10, 2014

I'd like to create a dedicated issue for this to keep track of information and links for this topic.

Things taken from #303:

More:

@cebe cebe added this to the 2.0 GA milestone Mar 10, 2014
@Ragazzo Ragazzo mentioned this issue Mar 10, 2014
9 tasks
@lygfanye
Copy link

How about NelmioApiDocBundle(https://github.com/nelmio/NelmioApiDocBundle) ?

@cebe
Copy link
Member Author

cebe commented Mar 26, 2014

The idea looks nice, similar to what swagger-php does. will check it out.

@bryglen
Copy link

bryglen commented Mar 29, 2014

I will be excited what yii 2 will come up for api docs. Looking forward to it. 👍

@qiangxue qiangxue modified the milestones: 2.0 RC, 2.0 GA, 2.1 Apr 16, 2014
@paunin
Copy link

paunin commented Jul 9, 2014

IMHO: swagger is the best practice in RF API services

@fernandezekiel
Copy link
Contributor

in my experience with swagger(that was like 5 months ago), the swagger UI does not support "resource" (out of the box) input classes and so you will have to annotate the body parameters individually to generate the input elements in the request form, i did modify the swagger UI itself and made it work,
this is my basis of doing that
https://api.groupdocs.com/v2.0/spec/

@paunin
Copy link

paunin commented Jul 9, 2014

@fernandezekiel Yep! The same problem. Can you show your code?

@cebe cebe modified the milestones: 2.0 GA, 2.1 Jul 9, 2014
@qiangxue qiangxue modified the milestones: 2.1, 2.0 GA Sep 27, 2014
@Faryshta
Copy link
Contributor

I am surprised, i was trying to decide between swagger and NelmioApiDocBundle to create an api.

Doesn't NelmioApiDocBundle uses symfony components? is there a php conflict on that or makes it too slow?

@cebe
Copy link
Member Author

cebe commented Mar 13, 2016

There are a few things that are missing here:

@ilyar
Copy link
Contributor

ilyar commented Mar 14, 2016

Update for OpenAPI Specification (fka Swagger RESTful API Documentation Specification) http://swagger.io/specification/

@cebe
Copy link
Member Author

cebe commented Sep 7, 2016

citing @nostop8 from #62 (comment):

Simple REST API on-fly generator: https://packagist.org/packages/nostop8/rest-api-doc
Takes all the generated rules from urlManager, grabs information about the endpoint using Reflection. Very primitive, yet a good overview of what you've built and provides ability to test it quickly without having to write any single line of code. Additionally you can provide description of the service, it's params, model(s) etc.

@samdark samdark modified the milestones: 2.1.x, 2.1.0 Dec 18, 2017
@ddanielroche
Copy link

@cebe I propose to review this extension https://packagist.org/packages/light/yii2-swagger

swagger-php intergation with yii2.
Integration swagger-ui with swagger-php.

See these demos
https://github.com/lichunqiang/yii2-swagger-demo
http://petstore.swagger.io

I'm trying it on a personal project
regards

@cebe cebe removed this from the 2.1.0 milestone Apr 23, 2018
@yii-bot
Copy link

yii-bot commented Apr 23, 2018

Issue moved to yiisoft/yii-api#14

@yii-bot yii-bot closed this as completed Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests