DEV: These endpoints don't exist anymore (#198)

DEV: These endpoints don’t exist anymore (#198)

diff --git a/lib/discourse_api/api/api_key.rb b/lib/discourse_api/api/api_key.rb
index 94266d5..8227707 100644
--- a/lib/discourse_api/api/api_key.rb
+++ b/lib/discourse_api/api/api_key.rb
@@ -7,14 +7,6 @@ module DiscourseApi
         response.body
       end
 
-      def generate_user_api_key(user_id)
-        response = post("/admin/users/#{user_id}/generate_api_key.json")
-      end
-
-      def revoke_user_api_key(user_id)
-        response = delete("/admin/users/#{user_id}/revoke_api_key.json")
-      end
-
       def generate_master_key
         response = post("/admin/api/key")
       end
diff --git a/spec/discourse_api/api/api_key_spec.rb b/spec/discourse_api/api/api_key_spec.rb
index 4e00342..41d2ec2 100644
--- a/spec/discourse_api/api/api_key_spec.rb
+++ b/spec/discourse_api/api/api_key_spec.rb
@@ -31,33 +31,6 @@ describe DiscourseApi::API::ApiKey do
     end
   end
 
-  describe "#generate_user_api_key" do
-    before do
-      url = "#{host}/admin/users/2/generate_api_key.json"
-      stub_post(url).to_return(body: fixture("generate_api_key.json"),
-                               headers: { content_type: "application/json" })
-    end
-
-    it "returns the generated api key" do
-      api_key = subject.generate_user_api_key(2)
-      expect(api_key).to be_a Hash
-      expect(api_key['api_key']).to have_key('key')
-    end
-  end
-
-  describe "#revoke_user_api_key" do
-    before do
-      url = "#{host}/admin/users/2/revoke_api_key.json"
-      stub_delete(url).to_return(body: "",
-                                 headers: { content_type: "application/json" })
-    end
-
-    it "returns 200" do
-      response = subject.revoke_user_api_key(2)
-      expect(response['status']).to eq(200)
-    end
-  end
-
   describe "#generate_master_key" do
     before do
       url = "#{host}/admin/api/key"
diff --git a/spec/fixtures/generate_api_key.json b/spec/fixtures/generate_api_key.json
deleted file mode 100644
index 8f2fcad..0000000
--- a/spec/fixtures/generate_api_key.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  "api_key": {
-    "id": 5,
-    "key": "e722e04df8cf6d097d565ca04eea1ff8e9e8f09beb405bae6f0c79852916f334",
-    "user": {
-      "id": 2,
-      "username": "robin",
-      "uploaded_avatar_id": 3,
-      "avatar_template": "/user_avatar/localhost/robin/{size}/3.png"
-    }
-  }
-}

GitHub sha: a4fb3cfe

This commit appears in #198 which was merged by blake.