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

Json Schema - Implementation Validation #13

Closed
toddmeinershagen opened this issue Jul 11, 2015 · 7 comments
Closed

Json Schema - Implementation Validation #13

toddmeinershagen opened this issue Jul 11, 2015 · 7 comments

Comments

@toddmeinershagen
Copy link

I would like to have a json schema to be generated from the current code to allow other implementations (.NET, ruby, php, etc.) to be able to keep up-to-date with the latest object model of the REST api for the Structurizr site.

I will issue a pull request for this issue with my first cut of this.

Thanks.

@emicklei
Copy link

emicklei commented Dec 4, 2015

+1 . I would like to create a Go client to document my systems

@simonbrowndotje
Copy link
Contributor

Now the API has stabilised, I'm looking at options to document it. Any thoughts on Swagger, Apiary, etc over JSON Schema?

@emicklei
Copy link

emicklei commented Dec 7, 2015

I worked a lot with Swagger (Java and Go) and the new 2.0 would be my suggestion.

@toddmeinershagen
Copy link
Author

I am fine with Swagger. It has a lot of support on the .NET side with the Azure API Management supporting import of a Swagger file for REST endpoints.

@simonbrowndotje
Copy link
Contributor

This is still a work in progress (the views and styles properties of the workspace are not yet documented), but I've added the source for a Swagger definition to this repo -> https://github.com/structurizr/java/blob/master/swagger.txt

I'll host the resulting JSON on api.structurizr.com at some point.

@simonbrowndotje
Copy link
Contributor

It doesn't include the authentication mechanism, but I think this Swagger JSON covers the JSON schema for Structurizr workspaces.

@simonbrowndotje
Copy link
Contributor

Just to close this issue, an OpenAPI 3.0 specification can be found here -> https://structurizr.com/help/web-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants