Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeiwan/go-blogs-demo
An example multi-tenancy application in Golang
https://github.com/jeiwan/go-blogs-demo
demo golang multi-tenancy
Last synced: about 1 month ago
JSON representation
An example multi-tenancy application in Golang
- Host: GitHub
- URL: https://github.com/jeiwan/go-blogs-demo
- Owner: Jeiwan
- Created: 2020-06-04T13:23:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-04T13:24:08.000Z (over 4 years ago)
- Last Synced: 2024-11-19T07:42:40.233Z (3 months ago)
- Topics: demo, golang, multi-tenancy
- Language: Go
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blogs
An example multi-tenancy application in Golang.Usage:
```
docker-compose up
go run main.go ui
```## Version: 1.0.0
### Security
**create_post_auth**|basic|*Basic*|
|---|---|### /blog
#### POST
##### Summary:Create a new blog
##### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| blog | body | Blog name and password. | No | object |##### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | success | |
| 401 | bad request | [Error](#error) |### /blog/{blog_name}
#### GET
##### Summary:View posts in a blog
##### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| blog_name | path | | Yes | string |##### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | success | [Posts](#posts) |
| 404 | not found | [Error](#error) |### /blog/{blog_name}/posts
#### POST
##### Summary:Publish a post to a blog
##### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ---- |
| blog_name | path | | Yes | string |
| post | body | | Yes | object |##### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | success | object |
| 401 | bad request | [Error](#error) |
| 404 | not found | [Error](#error) |##### Security
| Security Schema | Scopes |
| --- | --- |
| create_post_auth | |### Models
#### Post
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| date | string | | No |
| post | string | | No |#### Posts
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| posts | [ [Post](#post) ] | | No |#### Error
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| error | string | | No |