These are chat archives for fossasia/open-event-server

14th
Aug 2018
Mayank Vaidya
@mayank8318
Aug 14 2018 06:02
@srv-twry Please join the Open Event meeting
Saurav Tiwary
@srv-twry
Aug 14 2018 06:10
apologies. will join the call in 5 minutes.
Kreijstal
@Kreijstal
Aug 14 2018 07:31
@srv-twry Thank you, I needed this.
Supriyanta Poddar
@supriyanta
Aug 14 2018 10:57
alt
please tell me why the module is missing?
Bhavesh Anand
@bhaveshAn
Aug 14 2018 11:07
@supriyanta run pip install -r requirements.txt first
you haven't installed dependencies
Supriyanta Poddar
@supriyanta
Aug 14 2018 11:16
yes done
no error now
Bhavesh Anand
@bhaveshAn
Aug 14 2018 11:17
:+1:
Supriyanta Poddar
@supriyanta
Aug 14 2018 11:17
this app only provide json responses?
Bhavesh Anand
@bhaveshAn
Aug 14 2018 11:17
yes
Supriyanta Poddar
@supriyanta
Aug 14 2018 11:17
and the homepage is only for user guide?
Bhavesh Anand
@bhaveshAn
Aug 14 2018 11:18
yes
this app only provide json responses?
vnd.api+json
Supriyanta Poddar
@supriyanta
Aug 14 2018 11:18
okay
thank you
what is vnd.api?
Supriyanta Poddar
@supriyanta
Aug 14 2018 11:29
how do I authenticate?
Bhavesh Anand
@bhaveshAn
Aug 14 2018 11:31

what is vnd.api?

https://stackoverflow.com/questions/28055526/header-value-application-vnd-apijson

how do I authenticate?

at API /auth/session if created a user at POST /v1/usersotherwise create a user first

Supriyanta Poddar
@supriyanta
Aug 14 2018 11:39
how do i create an user/
?
Bhavesh Anand
@bhaveshAn
Aug 14 2018 18:25
Guys please LMK if event creation/publishing works fine with and without updating user-permissions, now. Just wanna confirm ??
Supriyanta Poddar
@supriyanta
Aug 14 2018 20:20
GET localhost:5000/v1/users
it shows
``
{ "errors": [ { "status": 403, "source": { "source": "" }, "title": "Access Forbidden", "detail": "Admin access is required" } ], "jsonapi": { "version": "1.0" } }
{
    "errors": [
        {
            "status": 403,
            "source": {
                "source": ""
            },
            "title": "Access Forbidden",
            "detail": "Admin access is required"
        }
    ],
    "jsonapi": {
        "version": "1.0"
    }
}
how to fix this?
anyone there?
Kreijstal
@Kreijstal
Aug 14 2018 20:46
very interesting
you need to use your login key
log in as admin
and then make the request
Supriyanta Poddar
@supriyanta
Aug 14 2018 21:00
which log in key?
Saurav Tiwary
@srv-twry
Aug 14 2018 21:52
@supriyanta Why are you making a GET request to /v1/users ?
It will list all the users that are present in the system which only the admin can see. You don't have the permissions to view it.
In case you're trying to register as a user, you have to make a POST request not the GET request.
Supriyanta Poddar
@supriyanta
Aug 14 2018 23:48
okay, thanks
but now also see all the users using log in key
thanks @Kreijstal @srv-twry
there is another problem
everytime when I run the server, I had to execute this sudo apt install redis-server before python3 manage.py runserver