ronoaldo / swgohapi

Cached, parsed https://swgoh.gg/ player profile data unofficial API
https://swgoh-api.appspot.com/
GNU Affero General Public License v3.0
1 stars 0 forks source link

Add /v1/guild/guild-id-or-name endpoint #4

Closed ronoaldo closed 6 years ago

ronoaldo commented 6 years ago

Return basic stats for all profiles that belong to a given Guild.

GET on the guild endpoint could return all 50 profiles in that guild. A new Guild field could be added to make this request faster.

GET on the guild endpoint, if there are no profiles in that guild, could then fetch the guild page, parse all profiles in there and schedule a profile sync for each one.

ronoaldo commented 6 years ago

Somewhat duplicates what is outlined in #5 - could be easily accomplished by guild query parameter in the /profiles endpoint.

Closing as the other way it easier to implement and makes more sense.