Skip to content

Commit

Permalink
Merge pull request #22 from n1eko/add-more-data
Browse files Browse the repository at this point in the history
Add fields and upgrade dependencies
  • Loading branch information
n1eko authored Jan 31, 2024
2 parents e35ada3 + 4a5376c commit dfb25ae
Show file tree
Hide file tree
Showing 6 changed files with 1,947 additions and 4,719 deletions.
46 changes: 25 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@

<center>

# TS3 WEB API

<div>
[![Node.js CD](https://github.com/n1eko/ts-api/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/n1eko/ts-api/actions/workflows/cd.yml)
[![Node.js CI](https://github.com/n1eko/ts-api/actions/workflows/ci.yml/badge.svg)](https://github.com/n1eko/ts-api/actions/workflows/ci.yml)
</div>
</center>

- .env

```
TS3_HOST=localhost
TS3_SERVER_PORT=9987
TS3_QUERY_PORT=10011
TS3_USER=serveradmin
TS3_PASS=password
TS3_NICK=NodeJS
```
# TS3 NODE API

A brief description of what this project does and who it's for


## Environment Variables

To run this project, you will need to add the following environment variables to your .env file

`TS3_HOST`

`TS3_SERVER_PORT`

`TS3_QUERY_PORT`

`TS3_USER`

`TS3_PASS`

`TS3_NICK`


## API Reference


- [Swagger](https://tsapi.n1eko.com/api-docs)
- [GraphQL](https://tsapi.n1eko.com/graphql)
- [Frontend](https://github.com/n1eko/ts-front)

2 changes: 2 additions & 0 deletions definitions/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const typeDefs = gql`
channel: Channel!
platform: String!
isMuted: Boolean!
hasOutputMuted: Boolean!
country: String!
lastConnectedDate: Int!
}
type Query {
Expand Down
6 changes: 6 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,14 @@
"isMuted": {
"type": "boolean"
},
"hasOutputMuted": {
"type": "boolean"
},
"country": {
"type": "string"
},
"lastConnectedDate": {
"type": "string"
}
}
}
Expand Down
Loading

0 comments on commit dfb25ae

Please sign in to comment.