Skip to content

Conversation

@orthagh
Copy link
Contributor

@orthagh orthagh commented Oct 8, 2018

Using API to add fields, we have some messages displayed in the response:

**$ curl -X POST \
http://localhost/glpi/9.3-git/apirest.php/PluginFieldsField \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Session-Token: njf99u23ddkp0qgrpap3podo3h' \
  -d ' {"input": {"default_value": "0", "is_active": 1, "label": "test_api", "plugin_fields_containers_id": 10, "type": "text"}}'
<script type='text/javascript'>document.getElementById('').innerHTML="<p class='center'>Changement de la structure de la base de données - glpi_plugin_fields_computertest1s (0 seconde)</p>";</script>
<script type='text/javascript'>document.getElementById('').innerHTML="<p class='center'>Changement de la structure de la base de données - glpi_plugin_fields_tickettest1s (0 seconde)</p>";</script>
{"id":21,"message":"Élément ajouté : testapifield2"}%   

@orthagh orthagh requested a review from cedric-anne October 8, 2018 14:44
@orthagh orthagh merged commit 9db449e into develop Feb 22, 2019
@cedric-anne cedric-anne deleted the fix/fields_add_api branch April 18, 2019 12:47
@cedric-anne cedric-anne added this to the 1.9.2 milestone Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants