Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

HTTP 405, Method Not Allowed, when listing badge instances #74

Open
tgs opened this issue Apr 22, 2014 · 11 comments
Open

HTTP 405, Method Not Allowed, when listing badge instances #74

tgs opened this issue Apr 22, 2014 · 11 comments
Assignees

Comments

@tgs
Copy link
Contributor

tgs commented Apr 22, 2014

According to the API documentation, the server should accept GET /systems/:slug/badges/:slug/instances - I assume this would get a list of instances of the badge. However, when I access that endpoint, I get HTTP 405 and a MethodNotAllowedError.

The specific request I'm making on my system is GET http://localhost:8080/systems/badgekit/badges/excellent-badge/instances; excellent-badge is a badge that exists.

@SueSmith
Copy link
Contributor

Hello, I can't help with the 405 error, hopefully one of the Open Badges devs will follow up on that..! Just to clarify and in case it helps, badge instances are instances of the badge that have been awarded to an earner, so this may be an empty data set (might be worth checking the badgeInstances table in your database). To retrieve the data for the badge itself, removing the /instances from your request should work..

@tgs
Copy link
Contributor Author

tgs commented Apr 22, 2014

Thanks! Yeah, I just checked and it still returns 405 whether there's any rows in the badgeInstances table or not.

@SueSmith
Copy link
Contributor

Ah thanks for following up, I'm not too familiar with what happens in the data when a badge is issued (and badgeInstances are created) so am not much help but I'm sure someone will get back to you on this soon!

@threeqube
Copy link

@cmcavoy can we look into this please?

@SueSmith
Copy link
Contributor

Hi @tgs - just a little more info. If you're using the openbadges-badgekit app it has now been updated to implement issuing, so you can issue badges in there (and create badgeInstances in the API). However, I'm still getting the "Method not allowed" error so am thinking this endpoint may just not have been implemented yet - will try to find out more today and give you an update!

@ghost
Copy link

ghost commented Apr 23, 2014

I can confirm @SueSmith's theory. That endpoint does not yet exist, I'm afraid.

@andrewhayward
Copy link
Contributor

Just to add to the confusion, I have a feeling it's a case of the docs being wrong. However, it's definitely an issue for @brianloveswords to weigh in on.

@cmcavoy
Copy link
Contributor

cmcavoy commented Apr 23, 2014

@tgs I know we talked about this IRL, but can you write up how you want to use that endpoint? I think there's some questions about whether or not the endpoint is a good idea.

@tcst
Copy link

tcst commented Apr 23, 2014

I share the same use cases as well.

As an earner, I would like to see the people that earn the same badge that I earned/or going to apply for, in order to network with them, asking them about the experience of getting this badge, or explore new opportunities. Since those people are interested in the same badge, they must have share the same habit/experience/skill set and will be more likely the type of people I want to network.

Also looking at the list of the earners, I can tell how valuable the badge is.

As an employer, I can look into the list of the earner for a badge (specific skills) and find the potential candidate for the position I'm trying to fill.

There's more, but I believe this API is very useful to have.

Thanks,
Vu

@cmcavoy
Copy link
Contributor

cmcavoy commented Apr 23, 2014

I think the most immediate need for it is to get aggregate issued counts into the BadgeKit front end. I'm going to give this one the 👍 and say we should implement it asap. We'll get on it.

@mbad0la
Copy link

mbad0la commented Nov 8, 2015

Is this error because of the fact that you're not listening for a 'GET' request on the mentioned endpoint?
Please confirm.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants