Skip to content

Commit e4bc389

Browse files
committed
chore: deprecate /v2 public api
1 parent 177068a commit e4bc389

File tree

7 files changed

+18
-241
lines changed

7 files changed

+18
-241
lines changed

app/controllers/v2/start_controller.rb

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/views/client_applications/index.html.haml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@
3535
= link_to 'destroy', client_application_path(client_application.id), disabled: client_application.api_version == 1, method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-danger'
3636
- else
3737

38-
.alert.alert-success
39-
In order to get started with the Artsy API, you must create a new app. Each app has a unique client ID and secret.
40-
41-
= link_to "Create a New App", new_client_application_path, class: 'btn btn-primary btn-lg'
38+
.alert.alert-danger
39+
No apps found

app/views/content/v2/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
### General
44

5-
* [Getting Started](/v2/start)
65
* [Authentication](/v2/docs/authentication)
76
* [Requests & Responses](/v2/docs/http)
87
* [Pagination And Sets](/v2/docs/pagination)

app/views/help/show.html.haml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
%h1 Help
22

3-
.p
4-
Please post all API-related questions on our
5-
= succeed '.' do
6-
=link_to 'Developer Mailing List', 'http://groups.google.com/group/artsy-api-developers', target: '_blank'
7-
Join the mailing list
8-
= succeed '.' do
9-
=link_to 'here', 'http://groups.google.com/group/artsy-api-developers/subscribe', target: '_blank'
10-
113
.p
124
For reporting security issues, please see instructions at
135
= succeed '.' do

app/views/shared/_nav.html.haml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
= nav_bar static: :top, brand: "The art world in your app. ™".html_safe, responsive: true do
22
= menu_group do
33
= menu_item "Home", root_path
4-
= menu_item "My Apps", client_applications_path
54
= menu_item "Blog", 'http://artsy.github.io', target: '_blank'
65
= menu_item "API Docs", docs_path
76
= menu_item "Help", help_path
@@ -12,3 +11,19 @@
1211
-else
1312
= menu_item "Sign In", '/auth/artsy/new'
1413
= bootstrap_flash
14+
15+
- unless request.path.include?('/v1')
16+
.alert.alert-warning
17+
%p
18+
Please note, we are in the process of retiring the
19+
= link_to 'public api.', '/v2'
20+
The public api, as well as its documentation and playground, will remain available until
21+
%strong June 30th, 2025.
22+
%p
23+
This change will not affect partners currently using our
24+
= link_to 'partner api.', '/v1'
25+
%p
26+
If you're interested in integrating your service with Artsy's partner api, please reach out to ....
27+
%br/
28+
%p
29+
If you're an Artsy partner gallery, reach out to your Artsy Liaison or contact our Support team for assistance.

app/views/v2/start/show.html.haml

Lines changed: 0 additions & 197 deletions
This file was deleted.

app/views/welcome/index.html.haml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,3 @@
99
.p
1010
The Artsy <a href='/v1'>Partner API</a> enables select partners to upload artworks, manage partner artists and more.
1111
Please <a href='mailto:[email protected]'>contact us</a> for access to this API and all other inquiries.
12-
.p
13-
= link_to "Ready? Start Here", v2_start_path, class: 'btn btn-primary btn-lg'
14-
= link_to 'Subscribe to the Dev Mailing List', 'http://groups.google.com/group/artsy-api-developers/subscribe', target: '_blank', class: 'btn btn-default btn-lg', id: 'subscribe_link'
15-
- if @artworks_count.to_i > 0
16-
%span.btn
17-
= "#{pluralize(@artworks_count, 'artwork')} available"
18-
.p.ideas
19-
Have an app idea or looking for one? Check <a href='https://github.com/artsy/doppler/labels/app%20idea' target='_blank'>these</a> out.
20-
21-
.alert.alert-success
22-
Please
23-
=link_to 'join the mailing list', 'http://groups.google.com/group/artsy-api-developers'
24-
for questions and feedback.
25-

0 commit comments

Comments
 (0)