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

Does this generate a javascript/typescript library to call all the MSGraph API? #22

Closed
chauey opened this issue Jun 23, 2016 · 2 comments

Comments

@chauey
Copy link
Contributor

chauey commented Jun 23, 2016

I can't quite understand what this does. Does this generate a javascript/typescript library to call all the MSGraph API? What (else) is out there currently that can help have some Typescript library to call all the MSGraph beta API? thx

@cdmayer
Copy link

cdmayer commented Jun 23, 2016

This simply helps you generate code based on published OData metadata. It helps you to work with anything provided by an OData resource without manually writing a corresponding class for every Entity or Complex Type.

A more concrete example: a version of this was used to generate the OneDrive Python SDK based on the OneDrive metadata. If you take a look at the Models, you can see that every EntityType in the metadata doc has a corresponding Python class. We didn't write all that by hand - we wrote an EntityType template, then pointed this tool at the metadata doc. The output is the files you see there.

There currently are no TypeScript templates. However, using the templates in the repository as a guide, one could write the appropriate TypeScript templates to generate the whatever is needed. I hope that answers your questions!

@cdmayer cdmayer closed this as completed Jun 23, 2016
@chauey
Copy link
Contributor Author

chauey commented Jun 23, 2016

I see, so it creates just the entities. Thanks for the reply!

Is there a way to deserialize the metadata into EntityFramework or something, and then create a SQL Server DB from it?

Or any way to get swagger/OAI doc from/for the Microsoft graph?

Also curious if you know how to get TypeScript/javascript client library to call the Microsoft graph API? coming soon? I am mainly curious for Angular 2.

Thanks! This all seems related to MSGraph SDK. :)

travissarles pushed a commit to travissarles/MSGraph-SDK-Code-Generator that referenced this issue Jun 27, 2016
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

2 participants