Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ED54A200C8A for ; Sun, 4 Jun 2017 16:24:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EC18D160BE0; Sun, 4 Jun 2017 14:24:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3E847160BB7 for ; Sun, 4 Jun 2017 16:24:36 +0200 (CEST) Received: (qmail 76528 invoked by uid 500); 4 Jun 2017 14:24:35 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 76515 invoked by uid 99); 4 Jun 2017 14:24:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jun 2017 14:24:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 90F821AFA11 for ; Sun, 4 Jun 2017 14:24:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QDc6F6m1SPvn for ; Sun, 4 Jun 2017 14:24:33 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B76B25F4A7 for ; Sun, 4 Jun 2017 14:24:32 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id o65so110267122oif.1 for ; Sun, 04 Jun 2017 07:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=klX7iZbee8afTBBJyRM5qkUsjfsSHLecNV3mpGY8NTw=; b=UNlTNwa/asoiuPrd1pepAhiSoXuhbh6lMm6GCVJf6lonjuRzFkUf5rnnBzDwLDxIHg IAIEpk1pnyBl+YmCqTj28IIf/2E1yxyf/oWxpn07LP+3Zp8ZVLslXYUadzlk9YCzg3lD BVg2p35OMP+62b7U2b6rABPihMiMcRxE/FKxyA+x6F95GVqeg1dnXHNzoIfqKZqDYRf3 tZU5Xn7TNnvn5KV5ZZ3i/cCNT06Vgj5Xn6mkdR+Tgb7Enyj/yZysE0IPjBxYyI46IVVR G58kfsjYY26T9RD6ttQiuFI6wY1uw7FHkGtBfRRDEKLVGsLTphdsjSB+oZtK5E1OORKw uyvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=klX7iZbee8afTBBJyRM5qkUsjfsSHLecNV3mpGY8NTw=; b=bx4OoWz58tCRfA8iW/TV4trAJqS2hCIATnpQnp591yT+FJQU2rjUpICJTgzJ7OtxUD jTG5iGvLasyoDzWiAa2y9uUhAkV9Ye4KCRYod0F46JoeTNCYPmWdQgkMhhUddmNrNFMe Tkxj0mXJSIXQ+immg1jLRPVWrtPUie7MPMp/ClY5JFcXSN2fwTOEKSFG7SDLklpqn3EW HuDDbtGcJS5YXJvsC1dkB/C4n4X/onjleTzTv5lyQNYcI5P5dPwKeGMVylcKiZgRMfx2 pblWfwCXY94Ff6RZxifPomaYXJ/p7u1+fbwXFR2wC1dZ635cE3ZtPwAO34EiYuSd0dKy KCmQ== X-Gm-Message-State: AKS2vOxf/7FPgdVP4a8RSXUr4szKNyi7eyDbs3JBuosRG6iWtNT+4x2o ZUz69t0ueKkIb1WRG22azVCVvl+3Pg== X-Received: by 10.157.7.115 with SMTP id 106mr1372592ote.167.1496586266026; Sun, 04 Jun 2017 07:24:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.17.68 with HTTP; Sun, 4 Jun 2017 07:24:24 -0700 (PDT) Received: by 10.182.17.68 with HTTP; Sun, 4 Jun 2017 07:24:24 -0700 (PDT) In-Reply-To: <9ed60eda-020e-adc1-0853-a1c4cdac8b53@renemoser.net> References: <9ed60eda-020e-adc1-0853-a1c4cdac8b53@renemoser.net> From: Will Stevens Date: Sun, 4 Jun 2017 10:24:24 -0400 Message-ID: Subject: Re: [DISCUSS] API versioning To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary="001a113bfbf6c329870551232496" archived-at: Sun, 04 Jun 2017 14:24:37 -0000 --001a113bfbf6c329870551232496 Content-Type: text/plain; charset="UTF-8" +1. I like it. On Jun 4, 2017 5:04 AM, "Rene Moser" wrote: > Hi > > I recently developed ansible modules for the ACL API and ... found this > has a really inconsistent API naming. E.g. > > createNetworkACL <<-- this creates an ACL rule > createNetworkACLList <<-- this create the ACL > > updateNetworkACLItem <<-- this updates an ACL rule > updateNetworkACLList <<-- this updates the ACL > > My first thoughs was, someone has to fix this, like > > createNetworkAclRule <<-- this create the ACL rule > createNetworkAcl <<-- this creates an ACL > > updateNetworkAclRule <<-- this updates the ACL rule > updateNetworkAcl <<-- this updates an ACL > > But how without breaking the API for backwards compatibility? I know a > few other places where the API has inconsistent namings. Fixing the API > but in a controlled way? What about by adding a version to the API? > > I would like to introduce a API versioning to cloudstack: The current > API would be frozen into verison v1. The new API will have v2. The > versioned API has the URL scheme: > > /client/api/ > > The current API would be /client/api/v1 and the /client/api would be an > alias for v1. This ensures backwards compatibility. > > This would allow us to deprecate and change APIs. > > Any thoughts? > > > > --001a113bfbf6c329870551232496--