Session

From REST API to NuGet Package: Streamlining Code Reuse and Distribution

The session teaches attendees the implementation of an SDK in C#. Starting with the discovery and exploration of a REST API, creating the corresponding types and methods to address the various API endpoints, writing (or better said generating) the unit tests, and finally deploying the implementation to the NuGet gallery. The workshop concludes using that NuGet package in a sample console or web application.

- API Discovery and its documentation: Reading the API structure, get the data models, and communication protocols from the documentation.

- Library Development: Implementing the client-side logic for interacting with the API, ensuring robust error handling and performance optimization.

- Unit Testing and Quality Assurance: Implementing comprehensive unit tests to ensure the library's stability and adherence to design specifications.

- Package Creation: Building the NuGet package, including dependencies, configuration files, and metadata for easy integration with other projects.

- Deployment and Distribution: Publishing the package to the NuGet Gallery and GitHub Package Registry, making it readily available for developers to consume.

This approach facilitates code reuse, promotes collaboration, and simplifies the integration of API functionalities into various projects. By packaging a REST API into a NuGet package, developers can streamline their workflows, improve development efficiency, and foster a more robust and cohesive development ecosystem.

Jochen Kirstätter

The only frontiers are in your mind | GDE Cloud | Microsoft MVP alumni

Port Louis, Mauritius

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top