Giter VIP home page Giter VIP logo

samsa's Introduction

samsa

Convert between OpenAPI v2 and v3 formats, it even converts YAML v2 to JSON v3 and all other combinations.

Run

docker run -d -p 8080:8080 u1ih/samsa:latest

Usage Examples

Convert Swagger File to Open API v3, JSON Output

curl -s -X POST [email protected] "http://localhost:8082/v2tov3"

curl -s -X POST [email protected] "http://localhost:8082/v2tov3"

Convert Swagger File to Open API v3, YAML Output

curl -s -X POST [email protected] "http://localhost:8082/v2tov3?format=yaml"

curl -s -X POST [email protected] "http://localhost:8082/v2tov3?format=yaml"

Convert Open API v3 to File to Swagger (v2), JSON Output

curl -s -X POST [email protected] "http://localhost:8082/v3tov2"

curl -s -X POST [email protected] "http://localhost:8082/v3tov2"

Convert Open API v3 to File to Swagger (v2), YAML Output

curl -s -X POST [email protected] "http://localhost:8082/v3tov2?format=yaml"

curl -s -X POST [email protected] "http://localhost:8082/v3tov2?format=yaml"

Or do all that with Postman

Postman Collection

Credits

Leveraging the great work from this community project

samsa's People

Contributors

u1i avatar

Stargazers

Cristopher Paiva avatar Qiqi Jiang avatar Pradeep Kumar N avatar Raghd Hamzeh avatar Davor Sauer avatar Mikalai Konan avatar Gavin avatar Robson Silva avatar  avatar

Watchers

James Cloos avatar Gavin avatar Bandish Jilka avatar  avatar

samsa's Issues

Convert from Open Api 3 to Swagger 2.0 not working

We are noticing an issue while converting from OpenApi3.0 to Swagger2.0.

When we tried using command line we noticed first issue and through postman, its throwing api-spec-converters replace is not a function.

image

or
image

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.