-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
Feedback Thread: Let me hear your thoughts #66
Comments
Btw, I recently launched Scribe for JS. It's going to support the most popular Node.js API frameworks, but at the moment it only supports Express, with Adonis.js in the works. It's nearly feature-compatible with Scribe, just less customisation features for now. Docs are here |
Would there be an interest in the option to auto-generate the description for endpoints by using the bodyParams to generate markup? This is specifically for the postman collection file where associating descriptions with raw body data doesnt really work (all of our body data in postman is json data). I am in the process of implementing it on my branch, let me know if you think it would be useful and a PR is needed. |
Can you provide an example @georgimorozov? Your explanation isn't very clear to me. |
Would be nice to have a cloud service to host multiple Scribe generated documentations, with teams/workspaces, analytics, etc. |
There might be something in the works for that 🙂 |
Please, hype us. 😆 |
A little update on v2: I'm done working on it. It comes with interactive functionality ("Try It Out"). You can see that here: https://scribe.readthedocs.io/en/v2/migrating-v2.html#changes-in-the-output. You can actually begin using it if you like, by setting your Composer constraint to However, I just thought of a big change I'd like to make in v2, so I've created an RFC for that. #105 |
Hi! First of all, thank you for your work! I have encounter a lot of improvements but, what I don't like it's that it generates bodyParams based on the formRequest rules method, when they are queryParams. Is there a way to avoid the autogeneration? Right now, I have to rollback because of this duplication. Thank you again! |
Look in your config file and comment out the GetFromFormRequest strategy. |
Thank you! |
I just saw this now after I already the issue.. Here is my feedback. Thanks! |
In my code I had parameters named like the objects To solve this I disabled But I guess that is just me being silly. 😄 All in all I like Scripe a lot. Thanks for all the work! |
The print.css could get an update. I tried to print the page as pdf and the result was... Let's just say, I convinced everyone that we do not need the pdf. Webpage only is fine! 😉 |
Ah, sorry, but I do not see that changing any time. It's something I copied from somewhere, and CSS is not something I fancy doing. |
Yes, if you're using Laravel's resource routes, you'll get |
For the record, v3 is still in the planning phase, probably until January. Then hopefully, I can finish it by June/July. |
If you have more complex routes like |
If you have a route like |
I think that is inconsistent. But I see why you do it this way. |
I love love love this, thank you so much. I'm FINALLY getting comprehensive documentation of all our endpoints at work. I swear this package is almost perfect for me, however I can think of one area I need a lot more control. I really need to be able to control multiple examples. For example if I have two nested body params I need to define the corresponding example for each of the object[] generated. It always seems to be two objects generated, which is a great start for getting most of my docs built fast, but sometimes I need to have full and complete control over the examples. Something like in my example before if I could control each example objects values and omit optional params in one or the other.
|
Hmm. That's something of a limitation, as the
It's definitely quite cumbersome, but it might work. |
Can't promise this will change in v3, but I'll consider it. |
I had not thought of that. Thank you. I think the issue with having to remove the other items would be losing your documentation copy for each parameter in the object. |
It'd be great to be able to specify the path for the generated Postman and OpenAPI docs. I've written my own routes for serving my API docs. Because Postman and OpenAPI are written to the |
I added This way production documentation is always up to dated. |
@kw-pr I've installed scribe as a dev dependency to limit what's being deployed to production. |
I have been using this package for awhile now for API doc generation and really love it but the one area I am struggling with is Fractal transformers and there include system as I don't see a good way to document what the includes will look like. I have managed to document what includes are available by having the following in the class doc block but would really love a way to also document what these includes would look like in an automatic way without having to define them myself.
|
I think allowing for different levels of grouping would be a very nice feature to have
expected
|
also different auth can be used in the same project, so maybe for the admin area the authentication is done with laravel sanctum, some public Api's are authenticated by a bearer and others are with a key |
The unfortunate thing is that Scribe can't meet every use case. Even if we could, it would add a whole bunch of complexity for most users, who don't need all that. Features like multiple group levels and multiple authentication systems—It's unlikely we'd add that, because I see no way to implement them that won't add unnecessary complexity and possible confusion. If someone suggests a way to add such a feature while keeping things simple, then I might consider. |
Yes, this is what you should do. We write to the local directory because it's simplest and most reliable, and you can easily add a script that moves it wherever you want and updates references. |
There isn't any. So here's the thing I want to emphasize: this is open-source. As I explained above, the package can't and won't support everything, sometimes because I can't think of a good approach. But if you can come up with a good proposal—not just an idea, but actually talk about how the implementation would work (and consider other people's use cases)—then I'd definitely consider it. |
Closing this, but you can keep sharing feedback if you like. |
Hi guys,
Just checking in with the community. If you've got a moment to spare, what's your experience with Scribe been like so far? What do you like? What don't you like? What do you think needs to be better?
The text was updated successfully, but these errors were encountered: