Skip to content

Adding get project by project key#328

Merged
ld-kyee merged 1 commit into
moonshot-ld-dev-serverfrom
kmartinez/moonshot-ld-server
Jun 25, 2024
Merged

Adding get project by project key#328
ld-kyee merged 1 commit into
moonshot-ld-dev-serverfrom
kmartinez/moonshot-ld-server

Conversation

@ld-kyee
Copy link
Copy Markdown

@ld-kyee ld-kyee commented Jun 25, 2024

I'm unclear why there were so many formatting changes in the api.yaml file.

@ld-kyee ld-kyee requested review from k3llymariee and mike-zorn June 25, 2024 19:37
Comment thread internal/dev_server/api/server.gen.go Outdated
// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmm how did you install the code generator? It looks like somehow you're using an old version.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 I thought I just did a go install but I had so many weird things going on locally. Let me fix this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh the docs are kinda not great because they first tell you how to install the deprecated version. Try go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest

r.Use(model.StoreMiddleware(sqlStore))
// TODO need a subrouter for relay endpoints
handler := api.HandlerFromMux(apiServer, r)
fmt.Println("Server running on 0.0.0.0:8765")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thinking!

Copy link
Copy Markdown

@mike-zorn mike-zorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api yaml format changes are fine. Let's get the tool version figured out before you merge though.

Copy link
Copy Markdown

@mike-zorn mike-zorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving, assuming we get the tool version straight.

@ld-kyee ld-kyee force-pushed the kmartinez/moonshot-ld-server branch from 3d72c6c to d9fafa6 Compare June 25, 2024 21:38
@ld-kyee ld-kyee merged commit 8c4444c into moonshot-ld-dev-server Jun 25, 2024
@ld-kyee ld-kyee deleted the kmartinez/moonshot-ld-server branch June 25, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants