►
From YouTube: How to make GitLab API calls
Description
Referenced docs: https://docs.gitlab.com/ee/api/README.html#basic-usage
A
So
the
first
thing
you
need
is
an
application
for
making
the
calls.
I
suggest
using
postman.com,
it's
very
easy
to
use
and
you
can
download
the
application
for
free.
If
you
want
to
use
the
web
application
from
the
home
page,
you
would
just
click
on
launch
postman
and
it
opens
up
the
web
interface
or
you
can
from
the
home
page
of
postman.com
scroll
to
the
very
bottom
under
get
postman,
you
can
download
the
app
I
downloaded
the
app
so
I'll
be
demoing
it
from
the
desktop
application.
A
So
let
me
go
launch
it
now,
postman
all
right
when
postman,
when
the
application
opens,
it
usually
has
an
overview
tab
of
your
workspace.
If
you
created
one,
you
really
don't
need
to
fill
that
out
for
the
purpose
of
making
a
few
api
calls,
you
can
just
open
another
tab.
Let
me
close
this
panel,
all
right
so
now
we're
in
a
view
in
postman
when
we
can
start
sending
and
receiving
sending
api
calls
and
receiving
the
response.
The
response
is
going
to
be
in
this
bottom
panel
here.
A
A
A
So
now
we
have
the
beginnings
of
an
api
call.
But
what
do
we
really
want
to
do
for
a
test
I
would
like
to,
and
at
the
end
and
by
the
way
the
documentation
will
explain
to
you
that
the
anatomy
of
a
call
is
the
domain.
Is
here
slash
the
api,
slash
the
version
of
the
api
you
want
to
use,
in
which
case
here
we
have
version
four,
which
is
the
latest
version
that
gitlab
supports.
I
think
we
also
support
version
three
and
then
slash
project.
A
This
is
calling
out
the
resource,
and
a
resource
is
something
we
have
a
lot
of
in
our
documentation.
As
far
as
what
we
support,
if
you
in
the
left
navigation,
if
you
expand
resources,
you
can
see
scroll
through
them.
There's
a
lot
of
resources
that
get
lab
api
supports
I'm
going
to
go
to
project.
For
this
example,
I'm
going
to
demo
being
able
to
change
this
project,
setting
okay,
so
in
project
apis
in
the
right
table.
Contents.
You
can
see
you
can
list
user
projects,
you
can
create
a
project.
A
A
For
getting
a
project,
which
is
the
get
method,
is
just
retrieving
information,
so
back
in
postman,
you
can
see
there's
a
lot
of
different
methods.
You
can
use,
we'll
select,
get
which
is
usually
the
default,
and
then
it
tells
you
here
in
the
docs
that,
after
the
slash
project,
we
you
need
to
do
a
slash
id
meaning
the
id
of
the
project
you
want
to
retrieve
and
so
to
get
the
id
of
the
project
you
want
to
retrieve.
A
I
have
a
test
project
here
when
you
are
looking
at
the
project
repository
under
project
overview,
you
can
see
that
the
project
id
is
listed
below
the
project
name,
I'm
going
to
copy
this
project
id
and
paste
it
into
my
url
in
postman,
and
so
I
think
this
is
all
I
need,
based
on
our
documentation
to
go,
get
a
single
project
by
this
project
id
I'm
going
to
click,
send
you'll,
see
below
in
the
request
a
response
area.
This
is
the
body.
A
These
are
various
tabs
of
what
the
response
will
return
in
the
body
for
this
project.
It's
giving
me
29
lines,
27
lines
of
data,
but
29
lines,
oh
and
then,
if
you've
ever
heard
of
api
requests
status
code
in
post
minute
displacement
here,
200
means
successful
or
okay.
So
I
know
that
nothing
failed.
It
returned
what
it's
supposed
to,
but
I
expect
more
than
29
lines
of
data
for
a
project.
A
A
A
You
can
set
the
expiration
if
you
wish,
if
you
don't,
it
will
not
expire,
and
you
just
have
to
manually
revoke
it
I'll
just
set
the
30th
for
example,
then
you
have
to
select
a
scope
if
you
forget
to
select
a
scope
and
you
click
at
the
bottom
to
create
personal
access
token.
It
will
remind
you
to
select
a
scope
when
you
get
an
error
message
by
the
way
it
does
clear
out
your
expiration
date,
so
you
have
to
re-enter
it.
A
It
left
the
name
that
I
want
and
I'm
going
to
choose
the
just
one
scope:
the
api
scope,
because
that's
what
I'm
testing
and
I
try
to
limit
the
scopes
I
put
in
the
token
to
only
what
I
need
and
then
I'm
going
to
click
create
personal
access.
Token
it'll
confirm
that
one
was
created
and
it's
right
here.
A
You'll
and
it'll
tell
you
to
save
it
because
you
won't
be
able
to
access
it
again.
So
I'm
going
to
click
copy
personal
access
token.
It
confirmed
that
it's
copied
and
it's
ending
in
mxmx
in
postman,
I'm
just
gonna
paste
it
and
it's
the
same
ending.
So
I
know
it's
the
one
that
I
want
now.
A
One
thing
you'll
notice
is:
if
you
leave
the
page
or
you
refresh
it,
it
really
does
go
away
where
you
can't
see
it
anymore,
but
at
the
bottom,
you'll
see
that
this
new
access,
token
that
I
created
with
the
name
of
test
token,
has
not
been
used
yet
will
expire
in
two
days
and
the
only
scope
it
has
is
api.
And
then
this
revoke
button
is
important
where,
when
you're
done,
with
the
token
you
just
revoke
it,
so
that
there's
no
risk
that
it
could
be
used
by
someone
else
all
right.
A
So
now
I
have
a
token,
and
one
thing
I
want
to
point
out
with
the
request
response
body
is
sometimes
when
you
send
another
request,
it
happens
so
fast
that
you
don't
know
if
it
returned
it,
but
if
you
scroll
somewhere
to
the
middle
of
the
bottom,
when
a
new
response
is
given
to
you,
it'll
bring
you
back
to
the
top
to
line
one.
So
this
time
I'm
expecting
with
the
owner
of
the
project
token,
I
should
get
more
information.
I'll
click
send.
A
A
A
Look
up
the
the
possible
attributes
of
a
project
by
going
to
in
the
documentation
going
to
edit
project
and
it'll,
show
you
in
the
table
here
for
all
the
attributes
and
and
description
and
the
type
of
value
that
is
accepted
for
that
attribute.
In
this
case,
if
I
copied.
A
Okay,
so
let's
go
edit
this
project,
so
we
did
a
get
to
retrieve
project
info,
and
now
we
want
to
change
this
value
so
for
the
edit
project,
api
call,
the
method
is
a
put
back
here
in
postman,
I'm
going
to
change,
get
to
put
and
the
rest
of
it
is
similar.
A
Slash,
project,
slash
id
slash
project,
slash
id
here,
so
you're
gonna
go
to
the
tab
for
parameter
and
what
you
can
enter
here
is
the
attribute
I'm
going
to
copy
it
and
paste
it.
Oh
one
thing:
I
want
you
to
note,
as
I
paste
it
here,
you'll
see,
it'll
be
dynamically
added
to
the
request.
Url
there
you'll
notice
that
that
question
mark
will
be
removed
and
everything
to
the
right
of
it.
A
If
I
uncheck
the
query,
parameter
and
I'll
check
it
again
and
then,
as
I
type
in
the
value
I
want
to
change
it
to
which
is
false,
you'll
see,
it
also
is
dynamically
added
up
here
all
right,
so
I'm
going
to
do
a
put
call
to
this
request.
Url
to
this
project
id
so
that
I
can
change
this
attribute
to
the
value
of
false.
A
A
there
it
is.
It's
been
changed
to
false
as
I
submitted
and
then
one
thing,
I'm
gonna
revoke
this
token
that
I
just
created-
and
I
scrolled
down
to
confirm
that
active
personal
tokens
are
zero.
This
user
has
no
access
to
a
personal
access
token.
A
So
now,
when
I
open
a
new
tab
and
I
go
to
authorization,
you
can
see
that
there's
nothing
populated
for
a
bearer
token,
but
I'd
already
revoked
the
token
so
would
wouldn't
have
been
useful
to
anyone
anyways.
Well.
I
hope
that
was
helpful
for
you
to
get
a
quick
overview
of
an
application
in
postman
that
you
can
use
to
make
api
calls
and
that
the
we
have
very
detailed
documentation
of
the
types
of
calls
you
can
make
and
the
type
of
resources
that
you
can
be
updating.