snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.05k stars 3.18k forks source link

API licensesidseatseatid [PATCH ] [Method not allowed ] #11576

Open KerolesKhalil2017 opened 2 years ago

KerolesKhalil2017 commented 2 years ago

Debug mode

Describe the bug

Hi Please , I want to checkout/checkin a license seat to a user . I have checked #6875 and #6695 , I found that the API endpoint is mentioned only in v5.4.4 doc . https://snipe-it.readme.io/v5.4.4/reference/licensesidseatseatid but it is broken , API PATCH method is not supported .

Laravel Version8.83.22

Debug.log

Reproduction steps

  1. From postman
  2. Add the Bearer Token and standard HTTP headers
  3. Method >> PATHCH ENDPOINT= http://snipe-it.thelighthousepublishing.com/api/v1/licenses/id/seat/seatid
  4. fill the body message with {"assigned_to":user_id}

Screenshot 2022-07-29 at 07 46 46

Also it is not working in Snipe-IT "Try it" option in the doc page https://snipe-it.readme.io/v5.4.4/reference/licensesidseatseatid

Screenshot 2022-07-29 at 07 47 22

Expected behavior

checkout a seat .

Screenshots

Screenshot 2022-07-29 at 07 47 22 Screenshot 2022-07-29 at 07 46 46

Snipe-IT Version

v6.0.8 - build 8409 (master) (gff5d64fcb)

Operating System

Ubuntu 22.04 LTS

Web Server

Apache

PHP Version

8.1.2

Operating System

MacOS

Browser

Postman

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Debug is attached in Bug description 
====================================

$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Additional context

No response

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.