Integration problems
Answered
I followed this guide to perform integration via OAuth
https://www.jetbrains.com/help/hub/2.5/Resource-Owner-Password-Credentials.html
For my requirements, I need to create service programmatically. So, as in guide said I send second request:
POST https://gersaf.myjetbrains.com/hub/api/rest/services
with any attributes or without them at all it responds with:
Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@10a0693; line: 1, column: 3]
Please sign in to leave a comment.
Hello Rostislav, I'm very sorry for the delay.
If you'd like to create services, you should use this guide: https://www.jetbrains.com/help/hub/2.5/HUB-REST-API_Services_Create-New-Service.html
You need to add body with a json containing description of the service being created to the POST request. Only name field is required. In addition, the request should have Authorization header with `Basic Base64(username + ":" + password)` (username and password are from the user who creates the service)
Here is an example of a request that should create a service:
You will get something like this in response: