Commit Graph

16 Commits

Author SHA1 Message Date
EpicUsername12
0c46b33be6 Separated /v1/communities/%s route to multiple routes 2023-06-01 20:33:37 +02:00
EpicUsername12
9df8d3f29d Updated POST /v1/communities/%s:
- Implemented ``/v1/communities/%s`` (update user-made sub community)
- Implemented ``/v1/communities/%s.delete`` (delete user-made sub community)
- Implemented ``/v1/communities/%s.favorite``
- Implemented ``/v1/communities/%s.unfavorite``
2023-05-30 18:06:51 +02:00
EpicUsername12
6c592fbd1d Changed Model type back to interface 2023-05-27 00:34:54 +02:00
EpicUsername12
04db683c45 Improved GET and POST /v1/communities
- Added an optional 'owner' field to "Communities"

This is because Miiverse allowed user-made communities (4 per games)

- Added a subcommunity query

'parent' mandatory field to get all subcommunities belonging to a specific parent community

'owner' optional field to comply with 'my' query type

'olive_community_id' optional array field to comply with 'favorite' query type, you would feed this field the user favorite sub communities ID

- Fixed CommunitySchema 'json()' method for base64 fields

- Fixed getCommunityByTitleIDs(), there is no field 'title_ids' in the schema
2023-05-26 20:24:49 +02:00
Jonathan Barrow
56f248981e
Use new account server token format 2023-04-28 17:02:06 -04:00
Jonathan Barrow
436e5f3bd9
Removed account server DB, now uses gRPC 2023-04-28 14:13:03 -04:00
Jonathan Barrow
ea41488347
Added missing result elements to some responses 2023-04-25 15:01:46 -04:00
Jonathan Barrow
6e86498981
Added types to modules without types 2023-04-24 23:37:36 -04:00
Jonathan Barrow
28651873d7
Removed object-to-xml in favor of only using xmlbuilder 2023-04-24 16:37:18 -04:00
Jonathan Barrow
4664d9fe05
Removed XMLResponseGenerator class in favor of Mongoose Schema methods 2023-04-24 16:29:04 -04:00
Jonathan Barrow
c869b3ae36
Moved generatePostUID to Model method to prevent possible ID collisions 2023-04-24 11:57:15 -04:00
Jonathan Barrow
d45f6d1104
Fixed linting issues 2023-04-23 19:43:28 -04:00
Jonathan Barrow
106b581fe3
Full conversion to TypeScript 2023-04-23 19:32:42 -04:00
Jonathan Barrow
442c20ed67
Fixed build failures 2023-04-22 17:09:21 -04:00
Jonathan Barrow
93008c5a1a
Removed JSON config, moved to env vars 2023-04-22 11:03:51 -04:00
Jonathan Barrow
f70cd34406
Barebones move to TypeScript 2023-04-22 10:17:33 -04:00