OpenStack APIs in OpenStack API Documentation - listing flavors example doesn't use OS_PROJECT_NAME

Bug #1829570 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
New
Undecided
Unassigned

Bug Description

- [x] This doc is inaccurate in this way:

In this section:

https://developer.openstack.org/api-guide/quick-start/api-quick-start.html#send-api-requests

It says:

"Export the project name to the OS_PROJECT_NAME environment variable. For example:"

But then does not use the OS_PROJECT_NAME variable in the curl request example:

$ curl -s -H "X-Auth-Token: $OS_TOKEN" \
  $OS_COMPUTE_API/flavors \
  | python -m json.tool

This is likely a result of nova not needing the project name/id in the path with the v2.1 API.

-----------------------------------
Release: 2013.2.1.dev4233 on 2018-10-03 16:14
SHA: c0efcf9f52c096ed67269083a370584384b9bb27
Source: https://git.openstack.org/cgit/openstack/api-site/tree/api-quick-start/source/api-quick-start.rst
URL: https://developer.openstack.org/api-guide/quick-start/api-quick-start.html

Tags: api-site
Revision history for this message
Matt Riedemann (mriedem) wrote :

Looks like OS_PROJECT_NAME was removed from the curl request URL path in change:

https://review.opendev.org/#/c/346171/

Note that the doc doesn't mention how to get the OS_COMPUTE_API (from the service catalog), or really much of anything about the service catalog.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.