Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/productdock/build-apis-made-easy

Building APIs Made Easy: From Specification to Code Generation and Testing blog post
https://github.com/productdock/build-apis-made-easy

golang openapi3 postman spring-boot typespec

Last synced: 6 days ago
JSON representation

Building APIs Made Easy: From Specification to Code Generation and Testing blog post

Awesome Lists containing this project

README

        

# Building apis made easy

## Prerequisites

- Typespec: `npm install -g @typespec/compiler`
- oapi-codegen: `go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest`
- Postman

## Run examples

After cloning this repository, check Makefile first.

Choose server example:

- Run golang api (port 8084): `make run-go`

- Run spring boot api (port 8084): `make run-jvm`

Import `events-postman-collection.json` to postman to test the API.