Jump to content
  • 0

WebPage


cappd

Question

9 answers to this question

Recommended Posts

  • 2
6 hours ago, cappd said:

Only alittle guide to use rest api in a web application?

Please

REST APIs are CRUD services (Create, Read, Update, Delete) you use the API by making web requests. If you don't know how to make a REST request from a web application there are plenty of resources around the web to do so, how you make that request is entirely dependent on the technologies you're using in you're webapp. That will require your own research. On actually using the API, here is the documentation on the user registration end-point https://docs.freemmorpgmaker.com/api/v1/endpoints/users.html#register-user you have to figure out with your web technologies, and your application, how you're going to send a json request which looks similar to this:

{
  "username": "jcsnider",
  "password": "5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8",
  "email": "jcsnider@ascensiongamedev.com"
}

to the path <ROOT_API_DOMAIN (which is probably the ip of your server) >/api/v1/users/register

 

I don't know what technologies your using for your website, but as an example, this is how to make a POST web requests in NodeJS using the AXIOS library:
https://nodejs.dev/make-an-http-post-request-using-nodejs

Here is an example of accomplishing the same thing in PHP:
https://stackoverflow.com/questions/5647461/how-do-i-send-a-post-request-with-php

 

You're going to need to read up on CRUD and REST services if you want to use the API.

 

Edit: The sort of questions about the API you'll want to ask here are questions on implementation, like maybe you're confused on exactly what 1 parameter of a request does, or you're confused on what an endpoint does to your data. Those kind of questions people here can answer, but actually giving a guide on using REST is something that isn't limited to the use of this software, you're actually asking for someone to give you a guide on using a general web technology, not something limited to intersect itself. And the contents of that guide would have to depend entirely on the technologies of the user using the API

Link to comment
Share on other sites

  • 1
3 hours ago, cappd said:

Can you create for me an user registration panel in PHP if i pay you? Please i don't understand how to...

Not I. there's a board for hiring. Im sure someone on this forums knows about REST APIs who might wanna make an extra buck.

 

You can also learn about making php web forms here:

https://www.w3schools.com/php/php_intro.asp - introduction to php

https://www.w3schools.com/php/php_forms.asp - php forms

 

Dont start trying to make a registration page for your intersect game, start by learning how web forms work, and what the mechanics are behind making a web request, the different types of web requests, and what a web request even is. Google is your friend, you have to do your research. When you've put forth an effort to research your problem for yourself, and you have questions about code, then people may be more obliged to help you.

 

"How do I start a PHP server?" "How do I make a POST request in php?" "What is PHP?" "What is a POST request" "What is a web request", just a few google suggestions to get you started.

Link to comment
Share on other sites

  • 0
2 hours ago, cappd said:

Only alittle guide to use rest api in a web application?

Please

I'd say that's more a query for Google and some tutorials on web languages if you're unfamiliar with them. (For example this StackOverflow page https://stackoverflow.com/questions/9802788/call-a-rest-api-in-php )

 

We're not here to make your game for you. And I'm definitely not going to write it for you.

Link to comment
Share on other sites

  • -1
On 5/11/2020 at 4:31 PM, Oddly said:

REST APIs are CRUD services (Create, Read, Update, Delete) you use the API by making web requests. If you don't know how to make a REST request from a web application there are plenty of resources around the web to do so, how you make that request is entirely dependent on the technologies you're using in you're webapp. That will require your own research. On actually using the API, here is the documentation on the user registration end-point https://docs.freemmorpgmaker.com/api/v1/endpoints/users.html#register-user you have to figure out with your web technologies, and your application, how you're going to send a json request which looks similar to this:


{
  "username": "jcsnider",
  "password": "5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8",
  "email": "jcsnider@ascensiongamedev.com"
}

to the path <ROOT_API_DOMAIN (which is probably the ip of your server) >/api/v1/users/register

 

I don't know what technologies your using for your website, but as an example, this is how to make a POST web requests in NodeJS using the AXIOS library:
https://nodejs.dev/make-an-http-post-request-using-nodejs

Here is an example of accomplishing the same thing in PHP:
https://stackoverflow.com/questions/5647461/how-do-i-send-a-post-request-with-php

 

You're going to need to read up on CRUD and REST services if you want to use the API.

 

Edit: The sort of questions about the API you'll want to ask here are questions on implementation, like maybe you're confused on exactly what 1 parameter of a request does, or you're confused on what an endpoint does to your data. Those kind of questions people here can answer, but actually giving a guide on using REST is something that isn't limited to the use of this software, you're actually asking for someone to give you a guide on using a general web technology, not something limited to intersect itself. And the contents of that guide would have to depend entirely on the technologies of the user using the API

Can you create for me an user registration panel in PHP if i pay you? Please i don't understand how to...

Link to comment
Share on other sites

  • -3

I absolutely didn't ask to create the game, I asked for information. if it weighs you to give an answer nobody imposes you, thanks anyway

28 minutes ago, Joyce said:

I'd say that's more a query for Google and some tutorials on web languages if you're unfamiliar with them. (For example this StackOverflow page https://stackoverflow.com/questions/9802788/call-a-rest-api-in-php )

 

We're not here to make your game for you. And I'm definitely not going to write it for you.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...