Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links to V2 in media? #981

Closed
edent opened this issue Nov 7, 2022 · 6 comments
Closed

Links to V2 in media? #981

edent opened this issue Nov 7, 2022 · 6 comments
Assignees
Labels
API The Mastodon core API

Comments

@edent
Copy link
Contributor

edent commented Nov 7, 2022

The current media page says:

3.1.3 - deprecated in favor of POST /api/v2/media,

Is there documentation for V2? Should it be linked to from here?

@trwnh
Copy link
Member

trwnh commented Nov 7, 2022

which is equal to v1 in all aspects, except it returns HTTP 202

Calling the v2 media API is exactly the same as calling the v1 media API, just with a different route and different response.

@edent
Copy link
Contributor Author

edent commented Nov 7, 2022

I see. I think. Should the V2 API be documented separately then?

@trwnh
Copy link
Member

trwnh commented Nov 7, 2022

It could be, but it would be exactly the same as the v1 API endpoint, so pretty much everything would be duplicated and the only difference would be replacing the 1 with a 2.

@edent
Copy link
Contributor Author

edent commented Nov 7, 2022

Thanks. In which case, if V2 is the same as V1, I'm not sure why I'd use it? I guess I got confused because it said V1 was deprecated.

I might add some examples of the V2 responses then.

@trwnh
Copy link
Member

trwnh commented Nov 7, 2022

Check https://github.com/trwnh/mastodocs if you'd like, I think I may have already done that

@andypiper andypiper added the API The Mastodon core API label Jun 11, 2023
@andypiper andypiper self-assigned this Jun 11, 2023
@andypiper
Copy link
Sponsor Member

I am pretty sure this is now resolved, but lmk if I'm mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The Mastodon core API
Projects
None yet
Development

No branches or pull requests

3 participants