▲ 198 ▼ Piefed now has a built-in alternative to Lemmyverse to discover and search for active communities, with the "Active people" filter on the communities page (weekly basis) (lemmy.zip) submitted 11 months ago* (last edited 11 months ago) by Blaze@lemmy.zip to c/newcommunities@lemmy.world 24 comments fedilink hide all child comments To see it in action: https://piefed.zip/communities?topic_id=0&feed_id=0&language_id=0&nsfw=all&search=&sort_by=active_weekly+desc Crust.piefed.social (the Piefed development instance) https://crust.piefed.social/communities?topic_id=0&feed_id=0&language_id=0&search=&sort_by=active_weekly+desc Not all instances implement it yet, I guess it depends how often they pull from the dev branch Example of search for 'movies'
[–] Coelacanth@feddit.nu 18 points 11 months ago (4 children) What we really need is a revival of the functionality of the bot at !trendingcommunities@feddit.nl that died. I still miss it so much :( permalink fedilink source hideshow 8 child comments replies: [–] Blaze@lemmy.zip [S] 15 points 11 months ago (1 child) There was a revival attempt at !trendingcommunities@lemmy.cafe , but it was short lived. That probably shows a trend: those type of tools need to be built-in into the software, relying on Raspberry Pies, scripts and external tools to provide such features will likely lead to them being abandoned permalink fedilink source parent hideshow 2 child comments replies: [–] Coelacanth@feddit.nu 7 points 11 months ago Oh I missed that somehow! I'll subscribe just in case, but I agree with you that the functionality should ideally be built in to the software. permalink fedilink source parent [+] Deceptichum@quokk.au 6 points 11 months ago [removed by mod] permalink fedilink source parent [–] SatyrSack@quokk.au 2 points 11 months ago (2 children) Is there a Python wrapper for writing PieFed bots? Or does Pythörhead work of-the-box for PieFed? permalink fedilink source parent hideshow 4 child comments replies: [–] db0@lemmy.dbzer0.com 2 points 11 months ago (1 child) I don't think piefed has the same API has lemmy, so no. It's been something I wanted to onboard (the piefed API) ,but I haven't fouind the time. permalink fedilink source parent hideshow 2 child comments replies: [–] SatyrSack@quokk.au 2 points 11 months ago (1 child) I do see there is code to throw an error when it detects an instance is not Lemmy, so it definitely doesn't work out-of-the-box. But the APIs for each are supposedly similar to each other, so it fortunately should not take any major rewrite to support both in the same wrapper. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 1 point 11 months ago* (3 children) Do you have a link to the API doc? Nevemind, found it: https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 6 child comments replies: [–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent [–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent [–] Coelacanth@feddit.nu 1 point 11 months ago No clue, sorry. permalink fedilink source parent [–] nethad@discuss.tchncs.de 1 point 11 months ago (1 child) didn't even realize it died :/ do you know why? permalink fedilink source parent hideshow 2 child comments replies: [–] Coelacanth@feddit.nu 1 point 11 months ago No idea, it just stopped working. It already didn't work with Piefed communities I think, maybe it was taken down for maintenance and never put back up? permalink fedilink source parent
[–] Blaze@lemmy.zip [S] 15 points 11 months ago (1 child) There was a revival attempt at !trendingcommunities@lemmy.cafe , but it was short lived. That probably shows a trend: those type of tools need to be built-in into the software, relying on Raspberry Pies, scripts and external tools to provide such features will likely lead to them being abandoned permalink fedilink source parent hideshow 2 child comments replies: [–] Coelacanth@feddit.nu 7 points 11 months ago Oh I missed that somehow! I'll subscribe just in case, but I agree with you that the functionality should ideally be built in to the software. permalink fedilink source parent
[–] Coelacanth@feddit.nu 7 points 11 months ago Oh I missed that somehow! I'll subscribe just in case, but I agree with you that the functionality should ideally be built in to the software. permalink fedilink source parent
[–] SatyrSack@quokk.au 2 points 11 months ago (2 children) Is there a Python wrapper for writing PieFed bots? Or does Pythörhead work of-the-box for PieFed? permalink fedilink source parent hideshow 4 child comments replies: [–] db0@lemmy.dbzer0.com 2 points 11 months ago (1 child) I don't think piefed has the same API has lemmy, so no. It's been something I wanted to onboard (the piefed API) ,but I haven't fouind the time. permalink fedilink source parent hideshow 2 child comments replies: [–] SatyrSack@quokk.au 2 points 11 months ago (1 child) I do see there is code to throw an error when it detects an instance is not Lemmy, so it definitely doesn't work out-of-the-box. But the APIs for each are supposedly similar to each other, so it fortunately should not take any major rewrite to support both in the same wrapper. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 1 point 11 months ago* (3 children) Do you have a link to the API doc? Nevemind, found it: https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 6 child comments replies: [–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent [–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent [–] Coelacanth@feddit.nu 1 point 11 months ago No clue, sorry. permalink fedilink source parent
[–] db0@lemmy.dbzer0.com 2 points 11 months ago (1 child) I don't think piefed has the same API has lemmy, so no. It's been something I wanted to onboard (the piefed API) ,but I haven't fouind the time. permalink fedilink source parent hideshow 2 child comments replies: [–] SatyrSack@quokk.au 2 points 11 months ago (1 child) I do see there is code to throw an error when it detects an instance is not Lemmy, so it definitely doesn't work out-of-the-box. But the APIs for each are supposedly similar to each other, so it fortunately should not take any major rewrite to support both in the same wrapper. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 1 point 11 months ago* (3 children) Do you have a link to the API doc? Nevemind, found it: https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 6 child comments replies: [–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent [–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent
[–] SatyrSack@quokk.au 2 points 11 months ago (1 child) I do see there is code to throw an error when it detects an instance is not Lemmy, so it definitely doesn't work out-of-the-box. But the APIs for each are supposedly similar to each other, so it fortunately should not take any major rewrite to support both in the same wrapper. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 1 point 11 months ago* (3 children) Do you have a link to the API doc? Nevemind, found it: https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 6 child comments replies: [–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent [–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent
[–] db0@lemmy.dbzer0.com 1 point 11 months ago* (3 children) Do you have a link to the API doc? Nevemind, found it: https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 6 child comments replies: [–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent [–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent
[–] wjs018@piefed.social 4 points 11 months ago (1 child) Like Blaze mentioned, the api is a bit of a work in progress and we are revamping the swagger. The version of the api spec you have there (freamon's) is manually created and can have some inaccuracies because of that. We are in the process of making the piefed api self-documenting so that inputs/outputs are validated against the schema, but there are a lot of endpoints still to go in that effort. Some of those revamped endpoints are going to be coming in the 1.2 release. For the self-documented endpoints that have been done so far, you can check the swagger on crust (the dev instance running right off the main branch). To keep up with this effort as I am working through it, I have been making posts to !piefed_api@piefed.social. On a personal note, I would kill for a pythorhead-but-for-piefed to exist. I pretty extensively use pythorhead in my lemmy communities now, so I am hopeful that we can get the api in a stable enough state to enable tools like this to exist in the near future. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent
[–] db0@lemmy.dbzer0.com 3 points 11 months ago Yeah I would like to support it as well. I'll wait until the API stabilizes though to avoid more work permalink fedilink source parent
[–] SatyrSack@quokk.au 1 point 11 months ago (1 child) https://freamon.github.io/piefed-api/ permalink fedilink source parent hideshow 2 child comments replies: [–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent
[–] Blaze@lemmy.zip [S] 1 point 11 months ago The updated swagger is here https://crust.piefed.social/api/alpha/swagger see the other comment permalink fedilink source parent
[–] Blaze@lemmy.zip [S] 1 point 11 months ago* (1 child) The updated swagger is here https://crust.piefed.social/api/alpha/swagger !piefed_api@piefed.social @wjs018@piefed.social , @andrew_s@piefed.social should the freamon page redirect to the crust one? permalink fedilink source parent hideshow 2 child comments replies: [–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent
[–] freamon@preferred.social 3 points 11 months ago (2 children) I'll just remove the 'freamon' one when the auto-generated one is up to date. The manually-generated one had 5 missing routes, which I've since added. The auto-generated one at crust has about 48 missing routes. It's the right approach, and I'll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment). Some thoughts for @wjs018@piefed.social /site/instance_chooser probably doesn't need to be a route. It's just the data format returned by /site/instance_chooser_search. As a route, it's returning the instance info for the site you're querying, so if you want to keep it as a route, it should probably be called /site/instance_info or something. In the query for /site/instance_chooser_search, nsfw and newbie are both booleans. With the rest of the API, these are sent as 'true' or 'false', but they are 'yes' and 'no' for this route. The newbie query should probably be newbie_friendly In the response, monthsmonitored should probably be months_monitored There's no way to exclude communities for the response to /topic/list and /feed/list: If you don't put 'include_communities' in the query, it's defaults to True, but if you put 'include_communities=false' in the query it ends up being True also (because the word 'include_communities' is in the data). permalink fedilink source parent hideshow 4 child comments replies: [–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent [–] Blaze@lemmy.zip [S] 1 point 11 months ago Thank you permalink fedilink source parent
[–] wjs018@piefed.social 3 points 11 months ago TIL that rimu added instance chooser endpoints. I'll take a look at those before 1.2 gets shipped. Same with the topic and feed endpoints. The easiest time to make changes to them is now before they get more widely used. I have about 10 more endpoints (working through /user right now) I have finished transitioning in a dev branch right now, so we are making progress. permalink fedilink source parent
[–] nethad@discuss.tchncs.de 1 point 11 months ago (1 child) didn't even realize it died :/ do you know why? permalink fedilink source parent hideshow 2 child comments replies: [–] Coelacanth@feddit.nu 1 point 11 months ago No idea, it just stopped working. It already didn't work with Piefed communities I think, maybe it was taken down for maintenance and never put back up? permalink fedilink source parent
[–] Coelacanth@feddit.nu 1 point 11 months ago No idea, it just stopped working. It already didn't work with Piefed communities I think, maybe it was taken down for maintenance and never put back up? permalink fedilink source parent