Gitlab CI Pipeline status using url - gitlab-ci

I am trying to get the status information for the latest gitlab pipeline using the url
https://gitlab.test-server.ag/qs/e2e/pipelines
I have used somthing like
https://gitlab.test-server.ag/qs/e2e/pipelines/latest/status
But it is deprecated. Any ideas how to get this using the url or even using rest api?
thanks a lot

This is not currently possible. There is an issue open asking this feature but still in the backlog.

Related

How to call Bitrix24's API using Postman?

I researched on google and I'm stuck while I try to find out Bitrix24 API docs for users using PostMan. Is there an available resource that could help me solve my trouble? , I hope I could retrieve a document or some things like this. Thanks for reading <3
Try this endpoint on your postman
https://example.bitrix24.id/rest/crm.product.list
This is for the CRM Product List
https://training.bitrix24.com/rest_help/crm/products/crm_product_list.php
if this dosent work you can put .json
https://example.bitrix24.id/rest/crm.product.list.json
for the authentication you can go to Developer Resources - Other - Local Application
and put Postman callback on the Handler (https://oauth.pstmn.io/v1/callback).
dont forget to click the Script Only.

Try it out functionality of tmdb api not working

When I tried to see data through try it out functionality then it is showing the following error
Error: Network Error
Check the developer tools console, it might have more information on the error.
If you are using an Adblocker, it is possible your Adblocker is blocking the request.
I also tried after disabling adblocker but it also does not work
console showing like this
Why this is happening and what is the solution for this?
Thanks in advance
Try the url in your browser with the API key. You can see the response.
Example :
https://api.themoviedb.org/3/movie/popular?api_key=your_api_key
Found out this is due to extension 'stoplight' in their site. Site Manager has said
"I believe Stoplight has temporarily blocked the "Try it out" feature for our account because too many people were using it as the source
for their apps, and not using api.themoviedb.org for some reason. No
timeline on getting it restored, but that's the problem. - Travis Bell"
follow this thread, In case it gets sorted in future.
https://www.themoviedb.org/talk/600184fc6aa8e0004077e364?page=1#6001bbacbe4b36003d514ac3
Apparently it depends on the way you try to access the data.
In my React application I was using Axios.Which ended up with ReferenceError: response is not defined. (got no response)
Afterwards I tried using the javascript fetch API. It worked good for me
So if you are trying to use it in an app you might want to use the fetch API. If you just encounter network error while using Try it out function on site - then you can copy the link and paste it directly, it should work fine.
Currently, I am using it in my dashboard and I have JWT authentication for the API that I'm using. I have implemented the interceptor to update HTTP HEADERS so I saw I'm passing a header name 'token' and checked there if any unnecessary headers were given or not with not accepting the TMDB API server. So I have sent a clean HTTP request and it's working fine.
All you have to just remove the unnecessary HTTP HEADERS

How to know if the deployment on Netlify is done via API?

I successfully deployed a site from my web app using Netlify API, but I don’t know how to get the info that if the deployment is done or not.
I thought the response from get-deploy can be the answer, especially the summary.status of that response.
I tried to keep calling the /api/v1/sites/:site_id/deploys/:deploy_id endpoint every 5 sec and watching summary.status, however, the value of summary.status has never changed from building even after the deployment has been done.
How can I get this kind of data?
Thank you.
Calling the /api/v1/sites/:site_id/deploys/:deploy_id endpoint is the right way to do it, they say.

Getting 403 Forbidden error when creating onlineMeetings

I tried posting to /app/onlineMeetings but I always get 403 Forbidden error (both on NodeJS and C#) samples. I already set the API permissions on the app registration and on the scope. Is there anything else that I need to setup before this will work on my end?
Any help is appreciated. Thanks!
The API /app/onlinemeetings is beta API that has been deprecated and is replaced by /communications/onlinemeetings. I recommend trying that instead.
I was able to make it work. I didn't realize on the first try that I need to have the application permission level to able to use onlineMeetings endpoint. I was just following their NodeJS tutorial that doesn't cover endpoints that need application permissions.
Your problem probably is when you are going to get the access token for your application. If you are using common as tenant id, first you have to do is use your tenant id instead of common word, as explain here.

Hitting API endpoint with GET verb and parameter value=40

I need to hit this endpoint as part of an assessment, I have tried having a looking online and I would ideally like to do this just by using the browser console.
This is my task:
Your task is to write some code (eg. console, html form, javascript, python etc.) to hit 2 API endpoints. You can use any language, framework, tool or library. The result of each endpoint will give you instructions on how to proceed. The first endpoint is /api/Step1 and requires a GET verb and a parameter value=40
I am really trying to understand how to do this but all of the things I have read have not worked.
Any help would be greatly appreciated.
[Postman]
http://i.stack.imgur.com/DA5Oq.png
You should make sure you get the idea of what an API is, and you can read this for the queries.
That said, you are looking to send a GET http request to the url /api/Step1?value=40. You can to this using a tool like Postman on Chrome, but there are other equivalents for other browsers.
If you are using osx/linux, you can look up the command curl on google to see how to do a GET request from the terminal, or check this SO question.
Sending a GET request is quite easy. You can use curl and php for example. If you google it, you can find examples.
Giving a parameter is easy like this: /api/Step1?value=40