https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20407

M. Tompsett <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #72891|0                           |1
        is obsolete|                            |

--- Comment #2 from M. Tompsett <[email protected]> ---
Created attachment 72982
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72982&action=edit
Bug 20407 - REST API: Ability to hide fields from unauthorized users

Test plan:
  - apply this patch,
  - edit api/v1/swagger/definitions/city.json,
  - remove the keys "country" and "postal_code" from required,
  - add a key "x-public": false for country and postal_code
    "postal_code": {
      "description": "city postal code",
      "type": ["string", "null"],
      "x-public": false
    },
    "country": {
      "description": "city country",
      "type": ["string", "null"],
      "x-public": false
    }
  - logout from Koha and go to api/v1/cities,
  - you should not see country and postal_code,
  - login to Koha and refresh api/v1/cities,
  - you should see country and postal_code

NOTE: Make sure to go to Koha administration and add cities before testing.

Signed-off-by: Mark Tompsett <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to