Giter VIP home page Giter VIP logo

thisnetworks.orchardcore.openapi's Introduction

ThisNetWorks.OrchardCore.OpenApi

Orchard Core OpenAPI Code Generation Tools based on NSwag

Provides a dynamic OpenAPI definition for Orchard Core Content Types and REST API Controllers.

This project is heavily based on NSwag and provides a wrapper and dynamic Content Type functionality for Orchard Core.

Features

  • Dynamic Content Type JSON Schema generation.
  • Client tool generation for Content Type Dto models.
  • Client tool generation for Orchard Core REST API Controllers.
  • Swagger UI for Orchard Core.

Getting Started

Install the ThisNetWorks.OrchardCore.OpenApi module to your Orchard Core Host project.

Enable the Orchard Core OpenAPI feature.

Refer the sample projects for example NSwag client.nswag and models.nswag configurations.

Install NSwag Studio.

Generate your API Client.

Install the ThisNetWorks.OrchardCore.OpenApi.Abstractions package for access to base classes and extension methods, such as

  • contentItem.ToDto<BlogPostItemDto>()
  • contentItem.FromDto(dto)

to convert back and forth between dto classes and content items.

This is useful if you are using these generated models within the context of an Orchard Core project to create your own REST API Controllers.

Samples

There are two sample projects included

  • Orchard Core Sample
    • Install using the Open Api recipe.
    • Includes example REST API Controller (/foo).
  • Console Client Sample
    • Console Client which connects to the Orchard Core Sample and mutates content items with the Content API Controller

Versions

Currently build against

  • Orchard Core Version 1.0.0-rc2-13450
  • NSwag Version 13.6.1
  • NJsonSchema Version 10.1.21

thisnetworks.orchardcore.openapi's People

Contributors

deanmarcussen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.