Which Rally API is used for creating defect now? - rally

I tried all sample and getting error - It is no longer necessary to append ".js" to WSAPI resources. Please Help with example.

That is just a warning- it's not actually preventing anything from working. Can you give us some more info on how you're accessing the api? Are you writing an app? Are you using one of the REST toolkits? Are there other errors in your response?
That warning just means you can drop the .js from all of the ref urls. The proper defect creation endpoint in wsapi version 2 is this:
/slm/webservice/v2.0/defect/create

Related

Not able to access data from Rest API-JIRA

I have created a atlassin account for testing the Jira rest api and created a project and tickets under it.
I am able to access the projects but not the issues under it. Please find below for more info
Could someone please help me what permissions I am missing
We can access the issues using URL request for api as below
"https://site.atlassian.net/rest/api/2/search?jql=updated>-90d&startAt="
Not a permission issue, but you missed adding issueIdOrKey path parameter. JIRA attempts to identify the issue by the issueIdOrKey path parameter. This can be an issue id, or an issue key.
To get the issue details, you can use the following Jira Rest endpoint,
GET /rest/api/2/issue/{issueIdOrKey}
For your case it will be,
GET /rest/api/2/issue/BI-1

Endpoint with Google Flex env

There is bit of a confusion, wondering if somebody can help me with this.
Here is an example which is a year old and uses goapp with polymer and endpoint
https://github.com/googlesamples/cloud-polymer-go
Here is a recent example using gcloud
https://github.com/GoogleCloudPlatform/golang-samples/tree/master/appengine_flexible/endpoints
Both are different as google changed its approach.
As per second example, I am able to create endpoint functions which uses json for input and output. However there are 2 problems
1st. It is throwing error if I put functions in different file under same package. It works when I run go run .go. but then I dont understand how app.yaml come into picture. I think this url /_ah/spi/. should work
2nd. I am using postman app to check the request and response from endpoint. Is there a better way? I thought google does provide a platform to test endpoint.
Is there any example which implements examples similar to 1st one with new libraries?
looking forward for your help. Thanks.

Jira V6.0+ creating a project over REST API

I've got a problem: I'm working on an external webinterface for my company and we use Atlassians JIRA as a project issue and tracking method. I am trying to connect our webinterface over the REST API. After a short research I found out, that Atlassian never implemented the possibility to create a new JIRA Project over their REST API. Well, that isn't that true, they've implemented it in the actual version (7.0) because they migrated their other two APIs to one REST API. Now comes my problem: We are currently unable to upgrade from version 6.4.4 to version 7.0.0. After a second search I found a workaround for this problem. You can find it here:
The real problem is that this workaround isn't working or I'm doing it wrong.
I've already tried it with a GET request and the given arguments as parameters and over the normal POST method with a JSON body in it.
What's my problem?
Here some more informations: When I try it over GET, I always receive the normal response for the URL (it returns a list with all available templates). When I try it over POST with a JSON body (this is by the way the normal method for the normal functions of the REST API) I get back a HTTP-Error 415 Unsupported media type.
it would be nice if someone could test this workaround with a 6.0+ version of JIRA
So after some months I got it by myself. You have to make a POST request with the following header fields:
Content-Type=application/x-www-form-urlencoded; charset=UTF-8
Authorization=Basic {set your credentials as a Base64-String: "user:password"}
X-Atlassian-Token=nocheck
Once done you can set your POST-Parameters to the following:
name=Name of the Project
key=Key of the Project
lead=Leader of the Project
keyEdited=true (don't change it!)
projectTemplateWebItemKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
projectTemplateModuleKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
Hope that this helps someone, Jira is just weird in some cases :/

Magento Rest API Error missing media_gallery

I have completed setting up the Magento Rest API and been able to retrieve a list of product without any errors using the API Example code Magento provides. However when I try to use the create a simple product example provided at http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Overview
I get the below error.
{"messages":{"error":[{"code":400,"message":"Missing \"media_gallery\" in request."}
I have looked everywhere and can't seem to find out how to fix the error. I don't see any reference here http://www.magentocommerce.com/api/rest/Resources/Products/products.html#RESTAPI-Resource-Products-HTTPMethod-POST-products saying media_gallery is required in the request.
Can anyone shed some light on this error and how to fix it?
I've been looking that up as well, but you can always modify that attribute in magento's administration and just turn it off (catalog/attributes/manage attributes), as in make it NOT required.
Cheers

Is there any otherway to get configurable product and their options in Magento api

I'm using magento 1.7 and my problem is how to get configurable product and their options through a default api without creating a custom api. because my client wants to get the api's without modifying the actual source code on the server.
Now i can able to get the options like warranty & the screen protector but can't able to get a color and then a size. Please refer the attached screenshot below:
I have googled a lot more to find my solution without writing a custom api to get a configurable product. But so far no luck!
Is there any other way to get so? please let me know.
And please note, i'm a pure front end developer role. By referring the API reference documentation we are developing this application.
Referring the API document - http://www.magentocommerce.com/api/soap/introduction.html
Try to use $product->getOptions(), But make sure you load the product object $product = $observer->getEvent()->getProduct();