Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(openapi): updating OperationIds #56

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions example/bookstore/v1/bookstore_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"post": {
"summary": "",
"description": "Create method for isbn",
"operationId": "isbn.create",
"operationId": "CreateIsbn",
"parameters": [],
"responses": {
"200": {
Expand Down Expand Up @@ -46,7 +46,7 @@
"get": {
"summary": "",
"description": "List method for publisher",
"operationId": "publisher.list",
"operationId": "ListPublisher",
"parameters": [
{
"name": "max_page_size",
Expand Down Expand Up @@ -91,7 +91,7 @@
"post": {
"summary": "",
"description": "Create method for publisher",
"operationId": "publisher.create",
"operationId": "CreatePublisher",
"parameters": [],
"responses": {
"200": {
Expand Down Expand Up @@ -122,7 +122,7 @@
"get": {
"summary": "",
"description": "Get method for publisher",
"operationId": "publisher.get",
"operationId": "GetPublisher",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -150,7 +150,7 @@
"patch": {
"summary": "",
"description": "Update method for publisher",
"operationId": "publisher.update",
"operationId": "UpdatePublisher",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -189,7 +189,7 @@
"put": {
"summary": "",
"description": "Apply method for publisher",
"operationId": "publisher.apply",
"operationId": "ApplyPublisher",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -228,7 +228,7 @@
"delete": {
"summary": "",
"description": "Delete method for publisher",
"operationId": "publisher.delete",
"operationId": "DeletePublisher",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -265,7 +265,7 @@
"get": {
"summary": "",
"description": "List method for book",
"operationId": "book.list",
"operationId": "ListBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -325,7 +325,7 @@
"post": {
"summary": "",
"description": "Create method for book",
"operationId": "book.create",
"operationId": "CreateBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -366,7 +366,7 @@
"get": {
"summary": "",
"description": "Get method for book",
"operationId": "book.get",
"operationId": "GetBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -403,7 +403,7 @@
"patch": {
"summary": "",
"description": "Update method for book",
"operationId": "book.update",
"operationId": "UpdateBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -451,7 +451,7 @@
"put": {
"summary": "",
"description": "Apply method for book",
"operationId": "book.apply",
"operationId": "ApplyBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -499,7 +499,7 @@
"delete": {
"summary": "",
"description": "Delete method for book",
"operationId": "book.delete",
"operationId": "DeleteBook",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -545,7 +545,7 @@
"get": {
"summary": "",
"description": "List method for book-edition",
"operationId": "book-edition.list",
"operationId": "ListBookEdition",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -608,7 +608,7 @@
"post": {
"summary": "",
"description": "Create method for book-edition",
"operationId": "book-edition.create",
"operationId": "CreateBookEdition",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -658,7 +658,7 @@
"get": {
"summary": "",
"description": "Get method for book-edition",
"operationId": "book-edition.get",
"operationId": "GetBookEdition",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -704,7 +704,7 @@
"delete": {
"summary": "",
"description": "Delete method for book-edition",
"operationId": "book-edition.delete",
"operationId": "DeleteBookEdition",
"parameters": [
{
"name": "publisher",
Expand Down Expand Up @@ -750,7 +750,7 @@
"post": {
"summary": "",
"description": "Custom method archive for book",
"operationId": "book:archive",
"operationId": ":ArchiveBook",
"parameters": [
{
"name": "publisher",
Expand Down
36 changes: 18 additions & 18 deletions example/bookstore/v1/bookstore_openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ paths:
/isbns:
post:
description: Create method for isbn
operationId: isbn.create
operationId: CreateIsbn
parameters: []
requestBody:
content:
Expand All @@ -126,7 +126,7 @@ paths:
/publishers:
get:
description: List method for publisher
operationId: publisher.list
operationId: ListPublisher
parameters:
- description: ""
in: query
Expand Down Expand Up @@ -155,7 +155,7 @@ paths:
summary: ""
post:
description: Create method for publisher
operationId: publisher.create
operationId: CreatePublisher
parameters: []
requestBody:
content:
Expand All @@ -175,7 +175,7 @@ paths:
/publishers/{publisher}:
delete:
description: Delete method for publisher
operationId: publisher.delete
operationId: DeletePublisher
parameters:
- description: ""
in: path
Expand All @@ -198,7 +198,7 @@ paths:
summary: ""
get:
description: Get method for publisher
operationId: publisher.get
operationId: GetPublisher
parameters:
- description: ""
in: path
Expand All @@ -216,7 +216,7 @@ paths:
summary: ""
patch:
description: Update method for publisher
operationId: publisher.update
operationId: UpdatePublisher
parameters:
- description: ""
in: path
Expand All @@ -241,7 +241,7 @@ paths:
summary: ""
put:
description: Apply method for publisher
operationId: publisher.apply
operationId: ApplyPublisher
parameters:
- description: ""
in: path
Expand All @@ -267,7 +267,7 @@ paths:
/publishers/{publisher}/books:
get:
description: List method for book
operationId: book.list
operationId: ListBook
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -306,7 +306,7 @@ paths:
summary: ""
post:
description: Create method for book
operationId: book.create
operationId: CreateBook
parameters:
- description: ""
in: path
Expand All @@ -332,7 +332,7 @@ paths:
/publishers/{publisher}/books/{book}:
delete:
description: Delete method for book
operationId: book.delete
operationId: DeleteBook
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -361,7 +361,7 @@ paths:
summary: ""
get:
description: Get method for book
operationId: book.get
operationId: GetBook
parameters:
- description: ""
in: path
Expand All @@ -385,7 +385,7 @@ paths:
summary: ""
patch:
description: Update method for book
operationId: book.update
operationId: UpdateBook
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -416,7 +416,7 @@ paths:
summary: ""
put:
description: Apply method for book
operationId: book.apply
operationId: ApplyBook
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -448,7 +448,7 @@ paths:
/publishers/{publisher}/books/{book}/editions:
get:
description: List method for book-edition
operationId: book-edition.list
operationId: ListBookEdition
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -489,7 +489,7 @@ paths:
summary: ""
post:
description: Create method for book-edition
operationId: book-edition.create
operationId: CreateBookEdition
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -521,7 +521,7 @@ paths:
/publishers/{publisher}/books/{book}/editions/{book-edition}:
delete:
description: Delete method for book-edition
operationId: book-edition.delete
operationId: DeleteBookEdition
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -550,7 +550,7 @@ paths:
summary: ""
get:
description: Get method for book-edition
operationId: book-edition.get
operationId: GetBookEdition
parameters:
- description: ""
in: path
Expand Down Expand Up @@ -581,7 +581,7 @@ paths:
/publishers/{publisher}/books/{book}:archive:
post:
description: Custom method archive for book
operationId: book:archive
operationId: :ArchiveBook
parameters:
- description: ""
in: path
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
github.com/PuerkitoBio/purell v1.1.0 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/aep-dev/aep-lib-go v0.0.0-20241205062045-39517ccc141d // indirect
github.com/aep-dev/aep-lib-go v0.0.0-20241211060914-8915f43c3994 // indirect
github.com/aep-dev/terraform-provider-aep v0.0.0-20241112052633-f48d45460768 // indirect
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ github.com/aep-dev/aep-lib-go v0.0.0-20241205061430-404ce902bcf0 h1:wYRECZA+Ytig
github.com/aep-dev/aep-lib-go v0.0.0-20241205061430-404ce902bcf0/go.mod h1:M+h1D6T2uIUPelmaEsJbjR6JhqKsTlPX3lxp25zQQsk=
github.com/aep-dev/aep-lib-go v0.0.0-20241205062045-39517ccc141d h1:oM4zhowSgjTjdPG+qlJSv1XHE9ahwwesNsRt/UOy6kg=
github.com/aep-dev/aep-lib-go v0.0.0-20241205062045-39517ccc141d/go.mod h1:M+h1D6T2uIUPelmaEsJbjR6JhqKsTlPX3lxp25zQQsk=
github.com/aep-dev/aep-lib-go v0.0.0-20241211055732-b1e7aa2d5930 h1:2mzOSEsJd8KozzPkCzR59jaCf2llrxlwn9t5RV/962I=
github.com/aep-dev/aep-lib-go v0.0.0-20241211055732-b1e7aa2d5930/go.mod h1:M+h1D6T2uIUPelmaEsJbjR6JhqKsTlPX3lxp25zQQsk=
github.com/aep-dev/aep-lib-go v0.0.0-20241211060914-8915f43c3994 h1:pd+YncR5m4U6m3eeF5Z1In7GypIKNreRvvsfGTc/98M=
github.com/aep-dev/aep-lib-go v0.0.0-20241211060914-8915f43c3994/go.mod h1:M+h1D6T2uIUPelmaEsJbjR6JhqKsTlPX3lxp25zQQsk=
github.com/aep-dev/terraform-provider-aep v0.0.0-20241112052633-f48d45460768 h1:b5fRfpIIsOsdsT2N1MsBxr0K/fZacCUlWp0uY9/BJzM=
github.com/aep-dev/terraform-provider-aep v0.0.0-20241112052633-f48d45460768/go.mod h1:sUuUJSkWTc4GBxp8GEZXCeEI38VMyuM5msPQ9BG0kMA=
github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE=
Expand Down
Loading