-
Notifications
You must be signed in to change notification settings - Fork 37
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
Implementation frontend part similar to Swagger UI #7
Comments
Don't wait for it, I already have too much to do with NJsonSchema and NSwag - and SigSpec was essentially for free with these projects :-) The next step would be to add a C# generator + CLI. But feel free to contribute an UI based on the spec - that would be awesome... |
I currently don't use SignalR in any of my job projects and I don't receive any money etc. so it's really hard to justify building a UI - I already spend too much time for free OSS work... |
I will probably add a sigspec ui to apiverse.io (site is far from ready) |
If there is demand ill add this as an endpoint type to https://apiverse.io/ and also a Swagger UI like experience via this page (but read-only). |
@TomSmith27 very nice, is this a completely new implementation or are you somehow using Swagger UI? I'd really like to have this as part of this repo and maybe directly generate a bundle with the UI and expose it via a UseSigSpecUI() extension method from the SigSpec.AspNetCore nuget package so that the final experience is the same as with NSwag Ref: #33 |
I agree it would be great to include it as part of this Repo. I will move the code from where i am working on it into a WIP: PR so you can see what i have.
This is a new implementation but i have used the CSS from the swaggerUI project so it should have the same look and feel but applicable to this project, |
As you can see here: We could have your UI either in an own repo or even in this repo and then in the CI build we rebuild it and update the js/html in this folder so that it is automatically distributed and easily "hostable"... |
Another question: Is your UI reading the SigSpec specification from UseSigSpec() and building a dynamic UI based on that? |
/cc @bradygaster this might interest you |
BTW, before you couple your UI too much on the current SigSpec specification we should discuss whether we should keep it as is or improve it so that we dont have to break it later. e.g. it's currently using JSON Schema style and not OpenAPI style for nullability and other things. |
Ah thanks I have been using NSwag as a basis for some of the work I have been doing. I think an extension method called UseSigSpecUI would be the way to go. In terms of where the code should live I think it would be good to put it in this repo like you said so that its all contained here and will give people everything they need to start working on this project. We can still have a build step that publishes it to NPM like swagger-ui
Yes the UI is reading from the SigSpec json and building the UI based on that.
Ye that is a good point i think it will be fairly easy to adjust the UI if the spec gets changed anyways. I am not sure of the difference between the styles of code generation. |
Hi! Are you going to implement frontend part with SigSpec similar to Swagger UI? As I understand from source you already have dynamic proxy generation(TS) + Spec, so the last step would be integrate all that staff with a pretty UI :)
The text was updated successfully, but these errors were encountered: