Skip to content

Commit

Permalink
docs: change app name in swagger 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Feb 23, 2024
1 parent c5af3d7 commit 88c4f86
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
13 changes: 8 additions & 5 deletions docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"description": "A RESTFull and GraphQL API to manage your MySQL DB",
"title": "MySQL Meta",
"title": "MetaX",
"contact": {
"name": "Kareem Ebrahim",
"email": "[email protected]"
Expand Down Expand Up @@ -213,7 +213,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.AddUpdateColumnPayload"
"$ref": "#/definitions/models.AddModifyColumnPayload"
}
}
],
Expand Down Expand Up @@ -293,7 +293,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.AddUpdateColumnPayload"
"$ref": "#/definitions/models.AddModifyColumnPayload"
}
}
],
Expand All @@ -320,15 +320,18 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.TableInfoResp"
"type": "array",
"items": {
"$ref": "#/definitions/models.TableInfoResp"
}
}
}
}
}
}
},
"definitions": {
"models.AddUpdateColumnPayload": {
"models.AddModifyColumnPayload": {
"type": "object",
"required": [
"column_name",
Expand Down
12 changes: 7 additions & 5 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
basePath: /
definitions:
models.AddUpdateColumnPayload:
models.AddModifyColumnPayload:
properties:
column_name:
type: string
Expand Down Expand Up @@ -94,7 +94,7 @@ info:
email: [email protected]
name: Kareem Ebrahim
description: A RESTFull and GraphQL API to manage your MySQL DB
title: MySQL Meta
title: MetaX
version: "1.0"
paths:
/:
Expand Down Expand Up @@ -226,7 +226,7 @@ paths:
name: columnData
required: true
schema:
$ref: '#/definitions/models.AddUpdateColumnPayload'
$ref: '#/definitions/models.AddModifyColumnPayload'
produces:
- application/json
responses:
Expand Down Expand Up @@ -278,7 +278,7 @@ paths:
name: columnData
required: true
schema:
$ref: '#/definitions/models.AddUpdateColumnPayload'
$ref: '#/definitions/models.AddModifyColumnPayload'
produces:
- application/json
responses:
Expand All @@ -297,7 +297,9 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/models.TableInfoResp'
items:
$ref: '#/definitions/models.TableInfoResp'
type: array
tags:
- Tables
swagger: "2.0"
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

// Main
//
// @title MySQL Meta
// @title MetaX
// @version 1.0
// @description A RESTFull and GraphQL API to manage your MySQL DB
// @contact.name Kareem Ebrahim
Expand Down

0 comments on commit 88c4f86

Please sign in to comment.