Giter Site home page Giter Site logo

go-petstore's Introduction

Go-Petstore

Swagger generated code for the sample petstore app provided by swagger

Run server

go run main.go

Invoke API

(uses HTTPie)

http POST http://localhost:8080/v2/pet Id=2 Category=3

http http://localhost:8080/v2/pet/1

Logs:

(main*) $ go run main.go
2022/07/10 19:22:13 Server started
2022/07/10 19:22:54 GET /v2/ Index 19.375µs
2022/07/10 19:23:40 POST /v2/pet AddPet 1.084µs
2022/07/10 19:23:48 GET /v2/pet/1 GetPetById 1.209µs
2022/07/10 19:23:56 POST /v2/pet AddPet 1.125µs
2022/07/10 19:23:59 GET /v2/pet/2 GetPetById 1.375µs
2022/07/10 19:24:01 GET /v2/pet/4 GetPetById 1.292µs

go-petstore's People

Contributors

bajalnyt avatar

Stargazers

 avatar

Watchers

 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.