Search found 26 matches
- 28 Sep 2022, 22:41
- Forum: Help
- Topic: Upgrade from very old (1.1.6) to the newest one
- Replies: 5
- Views: 964
- 16 Sep 2022, 18:46
- Forum: General Discussion
- Topic: Accessing Information from Mantis GUI via REST API
- Replies: 1
- Views: 2785
Re: Accessing Information from Mantis GUI via REST API
I'm not sure what you are exactly looking for, but you can retrieve the 'categories' for either
all projects (Get('.../projects/')) or a specific project (Get('.../projects/#')) over REST API.
The JSON response contains an (sub)array ('categories') for all requested projects.
all projects (Get('.../projects/')) or a specific project (Get('.../projects/#')) over REST API.
The JSON response contains an (sub)array ('categories') for all requested projects.
- 07 Apr 2022, 14:11
- Forum: Help
- Topic: installation - Sql server - Internal Application Error
- Replies: 3
- Views: 1140
Re: installation - Sql server - Internal Application Error
Line 864 in install.php is at the end of the check, if the given user/pwd can connect to the db. So I guess the connect failed. As the connect with adminuser/adminpwd prior to this check works (the db is created as you stated), my first guess is the user/userpwd combination you put in the fields of ...
- 15 Oct 2021, 06:22
- Forum: General Discussion
- Topic: Delete an issue using rest api
- Replies: 1
- Views: 2856
Re: Delete an issue using rest api
By default, IIS configures PHP only to accept GET, POST and HEAD requests. You have to enable others by adding them to the handler. In IIS Manager open 'Handler Mappings', edit your '*.php' handler -> 'Request Restrictions...' and than on the Verbs-Tab, you either check 'All verbs' or put a list of ...
- 28 Apr 2021, 08:20
- Forum: General Discussion
- Topic: Create changeset entry using REST API
- Replies: 1
- Views: 3268
Re: Create changeset entry using REST API
I doubt the REST API will be extended for that in the foreseeable future, if ever. But it's possible to 'push' changes with your post-commit hook to Mantis (source integration plugin), using a POST to the checkin page (https://github.com/mantisbt-plugins/source-integration/blob/master/docs/CONFIGURI...
- 04 Feb 2020, 00:05
- Forum: Help
- Topic: REST API- picture attachment handling
- Replies: 2
- Views: 2489
Re: REST API- picture attachment handling
As far as the php fileinfo extension is enabled, the mime type is build-in derived from the content. Something like
should work in that case.
Code: Select all
{ "name": "test.jpg", "content": "<base64encoded_content_of_test.jpg>" }
- 03 Feb 2020, 11:33
- Forum: Help
- Topic: REST API- Summary not specified
- Replies: 11
- Views: 32200
Re: REST API- Summary not specified
That might be true. But obviously they got stripped of either by the cmdline processing or
by curl itself. That's the reason I escaped all those qoutes in my test. There might be other
means to achieve this, but I guess curl is not the right tool to process such large request anyway.
by curl itself. That's the reason I escaped all those qoutes in my test. There might be other
means to achieve this, but I guess curl is not the right tool to process such large request anyway.
- 03 Feb 2020, 10:54
- Forum: Help
- Topic: REST API- Summary not specified
- Replies: 11
- Views: 32200
Re: REST API- Summary not specified
At first glance the send data is wrong. All strings are missing qoutes ("). For example summary:summarysample should be
"summary":"summarysample". And after you fixed that, the mandantory 'category' (!) really needs to be "category": {"id": 1}.
"summary":"summarysample". And after you fixed that, the mandantory 'category' (!) really needs to be "category": {"id": 1}.
- 03 Feb 2020, 10:18
- Forum: Help
- Topic: REST API- Summary not specified
- Replies: 11
- Views: 32200
Re: REST API- Summary not specified
Just to be sure that the send data is really valid json. Have you cross-checked that
with any JSON viewer? Please provide that part of the trace output.
with any JSON viewer? Please provide that part of the trace output.
- 31 Jan 2020, 19:51
- Forum: Help
- Topic: REST API- Summary not specified
- Replies: 11
- Views: 32200
Re: REST API- Summary not specified
Running the following from a cmd on Win10, local MantisBT 2.23.0 (personal information -> ?): curl --trace-ascii - --location --request POST "http://mantisbt/api/rest/issues/" ^ --header "Authorization: ?" ^ --header "Content-Type: application/json" ^ --data-raw "{...
- 31 Jan 2020, 09:19
- Forum: Help
- Topic: REST API- Summary not specified
- Replies: 11
- Views: 32200
Re: REST API- Summary not specified
I don't use curl myself, but I guess "--data-urlencode" is the problem here. You might have a look at the rest api documentation: https://documenter.getpostman.com/view/29959/mantis-bug-tracker-rest-api/7Lt6zkP The samples there use "--data-raw". And "category_id":"...
- 08 Jan 2020, 19:02
- Forum: General Discussion
- Topic: Problem REST API - adding issue
- Replies: 2
- Views: 3235
Re: Problem REST API - adding issue
Hello MiSu, your data-raw is not valid json. Strings need to be double quoted not single(... "summary" : "test", ...). As your are using IIS, some remarks about that: You need a web.config for url rewrites in api/rest. That was added in 2.20.0, if I remember correctly. If you lik...
- 05 Apr 2019, 08:53
- Forum: General Discussion
- Topic: Connection to SQL Server 2017 Express
- Replies: 9
- Views: 19447
Re: Connection to SQL Server 2017 Express
As I said in my previous post, login to SSMS with 'Windows Authentication' to manage/configure your instance. Users are under 'Security->Logins'. You can change any property (including pwd) of a user from there. And before you come back with the next basic question how to configure/manage your datab...
- 02 Apr 2019, 15:55
- Forum: General Discussion
- Topic: Connection to SQL Server 2017 Express
- Replies: 9
- Views: 19447
Re: Connection to SQL Server 2017 Express
Are you sure - your SQL Server Instance is running in mixed mode? - that user 'SA_Mantis' exists? - the password is correct? Try to connect with this credentials in SSMS. Make sure, that in the authentication dropdown 'Sql Server Authentication' is selected. This is just for testing. Switch back to ...
- 14 Mar 2019, 10:08
- Forum: General Discussion
- Topic: Connection to SQL Server 2017 Express
- Replies: 9
- Views: 19447
Re: Connection to SQL Server 2017 Express
I didn't talk about PHP versions, but the version of the php extension to access a specific database (SQL Server in your case). I only warned you to not use the latest release (5.6.0) there, but to take an older (5.3.0) one. All prerequisites, installation instructions and appropriate links are on h...