Skip to content

Commit af1dc08

Browse files
mc-jonesjpotts244
andauthored
chore: deprecate /v2 public api (#373)
Co-authored-by: Jackie Potts <[email protected]>
1 parent 93466a2 commit af1dc08

File tree

16 files changed

+32
-569
lines changed

16 files changed

+32
-569
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
## Doppler
2-
32
[![CircleCI](https://circleci.com/gh/artsy/doppler.svg?style=svg)](https://circleci.com/gh/artsy/doppler)
43
[![Code Climate](https://codeclimate.com/github/artsy/doppler.svg)](https://codeclimate.com/github/artsy/doppler)
54

6-
I am Doppler, the Artsy developer website.
5+
I am Doppler, the Artsy developer website.
76

87
- **Production:** [developers.artsy.net](https://developers.artsy.net)
98
- **Staging:** [developers-staging.artsy.net/](https://developers-staging.artsy.net/)
109

10+
---
11+
12+
### Public API Retirement Notice
13+
14+
Please note, we are in the process of retiring the [public api.](developers.artsy.net/v2).
15+
16+
The public api, as well as its documentation and playground, will remain available until **July 28th, 2025.**
17+
18+
This change will not affect partners currently using our [partner api.](developers.artsy.net/v1).
19+
20+
If you're interested in integrating your service with Artsy's partner api, please reach out to ....
21+
22+
---
23+
1124
### Setup
1225

1326
Clone the project:

app/controllers/client_applications_controller.rb

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,11 @@ class ClientApplicationsController < ApplicationController
33

44
before_action :fetch_client_application, only: %i[show edit destroy update]
55
before_action :no_cache!, except: [:index]
6-
before_action :parse_redirect_uris, only: %i[update create]
7-
8-
def new
9-
@client_application = ClientApplication.new
10-
end
6+
before_action :parse_redirect_uris, only: %i[update]
117

128
def show
139
end
1410

15-
def create
16-
redirect_uri = safe_redirect_uri(client_application_params.delete(:redirect_uri))
17-
@client_application = artsy_client.applications._post(client_application_params.to_h)
18-
flash.now[:error] = nil
19-
flash.now[:notice] = "Application created!"
20-
redirect_uri += "?id=#{@client_application.id}" if @client_application && !redirect_uri.blank?
21-
redirect_uri = client_applications_path if redirect_uri.blank?
22-
redirect_to redirect_uri
23-
end
24-
2511
def update
2612
@client_application._put(**client_application_params.to_h)
2713
fetch_client_application

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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
There was an error retrieving applications: #{@error}.
77

88
- elsif @client_applications.any?
9-
= link_to "Create a New App", new_client_application_path, class: 'btn'
109

1110
%table.table.table-bordered.table-striped
1211
%thead
@@ -35,7 +34,5 @@
3534
= 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'
3635
- else
3736

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'
37+
.alert.alert-info
38+
No apps found

app/views/client_applications/new.html.haml

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

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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@
1212
-else
1313
= menu_item "Sign In", '/auth/artsy/new'
1414
= bootstrap_flash
15+
16+
- unless request.path.include?('/v1')
17+
.alert.alert-warning
18+
%p
19+
Please note, we are in the process of retiring the
20+
= link_to 'public api.', '/v2'
21+
The public api, as well as its documentation and playground, will remain available until
22+
%strong July 28th, 2025.
23+
This change will not affect integration partners using our
24+
= link_to 'partner api.', '/v1'
25+
%br/
26+
%p
27+
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-

config/routes.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Rails.application.routes.draw do
22
root "welcome#index"
33

4-
resources :client_applications do
4+
resources :client_applications, except: [:new] do
55
resources :client_application_partners, only: [:index]
66
resources :webhook_deliveries, only: [:index, :show] do
77
member do
@@ -57,7 +57,6 @@
5757
].each do |page|
5858
get "/v2/docs/#{page}", to: "pages#show", id: "v2/docs/#{page}"
5959
end
60-
get "/v2/start", to: "v2/start#show"
6160
get "/v2/playground", to: "playground#index"
6261
get "/v2/terms", to: "pages#show", id: "v2/terms"
6362

0 commit comments

Comments
 (0)